llmessagetemplateparser.cpp File Reference

LLMessageTemplateParser implementation. More...

#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)


Detailed Description

LLMessageTemplateParser implementation.

LicenseInfo
firstyear=2007&license=viewergpl

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 Documentation

typedef boost::tokenizer< boost::char_separator<char> > tokenizer

Definition at line 243 of file llmessagetemplateparser.cpp.


Function Documentation

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  ) 

Definition at line 50 of file llmessagetemplateparser.cpp.

References FALSE, and TRUE.

BOOL b_return_character_ok ( char  c  ) 

Definition at line 65 of file llmessagetemplateparser.cpp.

References FALSE, and TRUE.

BOOL b_return_first_variable_ok ( char  c  ) 

Definition at line 78 of file llmessagetemplateparser.cpp.

References FALSE, and TRUE.

BOOL b_return_integer_ok ( char  c  ) 

Definition at line 120 of file llmessagetemplateparser.cpp.

References FALSE, and TRUE.

BOOL b_return_signed_integer_ok ( char  c  ) 

Definition at line 108 of file llmessagetemplateparser.cpp.

References FALSE, and TRUE.

BOOL b_return_variable_ok ( char  c  ) 

Definition at line 92 of file llmessagetemplateparser.cpp.

References FALSE, and TRUE.

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  ) 

Definition at line 140 of file llmessagetemplateparser.cpp.

Referenced by b_check_token().


Variable Documentation

BOOL(*[]) gParseCheckCharacters(char c)

Initial value:

Definition at line 130 of file llmessagetemplateparser.cpp.

Referenced by b_check_token().


Generated on Thu Jul 1 06:10:33 2010 for Second Life Viewer by  doxygen 1.4.7