#include "linden_common.h"
#include "llmessagetemplateparser.h"
#include <boost/tokenizer.hpp>
Include dependency graph for llmessagetemplateparser.cpp:
Go to the source code of this file.
Typedefs | |
typedef boost::tokenizer< boost::char_separator< char > > | tokenizer |
Functions | |
BOOL | b_return_alphanumeric_ok (char c) |
BOOL | b_return_character_ok (char c) |
BOOL | b_return_first_variable_ok (char c) |
BOOL | b_return_variable_ok (char c) |
BOOL | b_return_signed_integer_ok (char c) |
BOOL | b_return_integer_ok (char c) |
S32 | get_checker_number (char checker) |
BOOL | b_check_token (const char *token, char *regexp) |
BOOL | b_variable_ok (const char *token) |
BOOL | b_integer_ok (const char *token) |
BOOL | b_positive_integer_ok (const char *token) |
Variables | |
BOOL(*[]) | gParseCheckCharacters (char c) |
Copyright (c) 2007, Linden Research, Inc.
Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2
There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception
By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.
ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$
Definition in file llmessagetemplateparser.cpp.
typedef boost::tokenizer< boost::char_separator<char> > tokenizer |
Definition at line 243 of file llmessagetemplateparser.cpp.
BOOL b_check_token | ( | const char * | token, | |
char * | regexp | |||
) |
Definition at line 164 of file llmessagetemplateparser.cpp.
References FALSE, get_checker_number(), gParseCheckCharacters, llendl, llerrs, S32, and TRUE.
Referenced by b_integer_ok(), b_positive_integer_ok(), and b_variable_ok().
BOOL b_integer_ok | ( | const char * | token | ) |
Definition at line 219 of file llmessagetemplateparser.cpp.
References b_check_token(), FALSE, llendl, llwarns, and TRUE.
BOOL b_positive_integer_ok | ( | const char * | token | ) |
Definition at line 230 of file llmessagetemplateparser.cpp.
References b_check_token(), FALSE, llendl, llwarns, and TRUE.
Referenced by LLTemplateParser::parseBlock(), and LLTemplateParser::parseVariable().
BOOL b_return_alphanumeric_ok | ( | char | c | ) |
BOOL b_return_character_ok | ( | char | c | ) |
BOOL b_return_first_variable_ok | ( | char | c | ) |
BOOL b_return_integer_ok | ( | char | c | ) |
BOOL b_return_signed_integer_ok | ( | char | c | ) |
BOOL b_return_variable_ok | ( | char | c | ) |
BOOL b_variable_ok | ( | const char * | token | ) |
Definition at line 208 of file llmessagetemplateparser.cpp.
References b_check_token(), FALSE, llendl, llwarns, and TRUE.
Referenced by LLTemplateParser::parseBlock(), LLTemplateParser::parseMessage(), and LLTemplateParser::parseVariable().
S32 get_checker_number | ( | char | checker | ) |
BOOL(*[]) gParseCheckCharacters(char c) |
Initial value:
{ b_return_alphanumeric_ok, b_return_character_ok, b_return_first_variable_ok, b_return_variable_ok, b_return_signed_integer_ok, b_return_integer_ok }
Definition at line 130 of file llmessagetemplateparser.cpp.
Referenced by b_check_token().