x0_i0_stringlib

Library of general string-manipulation functions for convenience.

Constants

NameValueBrief Description
DELIM_NOT_FOUND-1

Structures

NameVariablesBrief Description
sStringTokenizerint nRemainingLen

string sOrig

string sRemaining

string sDelim

string sLastTok
INTERNAL: Length of the remaining part of the string to be tokenized.

Original string that is being tokenized.

INTERNAL: Remaining substring to be tokenized.

Delimiter used to split the string up into tokens.

INTERNAL: Last token determined by AdvanceToNextToken.

Functions

NameBrief Description
AdvanceToNextTokenAdvance the tokenizer to the next token.
GetNextTokenReturn the next token as determined by AdvanceToNextToken.
GetNumberTokensReturn the number of tokens in the string for the specified delimiter.
GetStringTokenizerCreate and return a string tokenizer for a given string with a specified delimiter.
GetTokenByPositionReturn the i'th token in the string for the specified delimiter. The first token is at position i=0, the second at i=1, etc.
HasMoreTokensCheck to see if any more tokens remain. Returns FALSE if not, TRUE if so.


  authors: Mistress, motu99, editor: Kolyana