50 const char*
Com_Parse(
const char** data_p,
char* target =
nullptr,
size_t size = 0,
bool replaceWhitespaces =
true);
int Com_GetBlock(const char **text, const char **start)
Get the start and end point of a block in the given text.
const char * Com_Parse(const char **data_p, char *target=nullptr, size_t size=0, bool replaceWhitespaces=true)
int Com_CountTokensInBuffer(const char *buffer)
Counts the tokens in the given buffer that the Com_Parse function would extract.
Com_TokenType_t Com_NextToken(const char **data_p)
Compute the next token.
void Com_SkipBlock(const char **text)
Skips a block of {} in our script files.
void Com_UnParseLastToken(void)
Put back the last token into the parser The next call of Com_Parse will return the same token again...
Com_TokenType_t Com_GetType(const char **data_p)
Get the current token type.
const char * Com_GetToken(const char **data_p)
Get the current token value.
Cross-platform type definitions.