Shared parsing functions. More...
#include "ufotypes.h"
Go to the source code of this file.
Functions | |
const char * | Com_Parse (const char **data_p) |
void | Com_UnParseLastToken (void) |
Put back the last token into the parser The next call of Com_Parse will return the same token again. | |
qboolean | Com_ParsedTokenIsQuoted (void) |
Check if the last read token is quoted. | |
void | Com_EnableFunctionScriptToken (qboolean enable) |
Enable parsing of token '(', ')' and ','. |
Shared parsing functions.
Definition in file parse.h.
void Com_EnableFunctionScriptToken | ( | qboolean | enable | ) |
Enable parsing of token '(', ')' and ','.
enable | If true, enable parsing of extra tokens |
Definition at line 63 of file parse.c.
References functionScriptTokenEnabled.
Referenced by testParserWithFunctionScriptToken(), UFO_InitSuiteParser(), UI_ParseEventProperty(), and UI_ParseFunction().
const char* Com_Parse | ( | const char ** | data_p | ) |
qboolean Com_ParsedTokenIsQuoted | ( | void | ) |
Check if the last read token is quoted.
Definition at line 53 of file parse.c.
References isQuotedToken.
Referenced by testParser(), testParserWithEntity(), testParserWithFunctionScriptToken(), testParserWithUnParse(), UI_ParseNode(), UI_ParseProperty(), UI_ParseValueExpression(), and UI_ParseWindow().
void Com_UnParseLastToken | ( | void | ) |
Put back the last token into the parser The next call of Com_Parse will return the same token again.
Definition at line 43 of file parse.c.
References isUnparsedToken, and qtrue.
Referenced by testParserWithUnParse(), UI_ParseCallAction(), UI_ParseComponent(), UI_ParseExpression(), and UI_ParseSetAction().