String Function Category

Functions that deal with string manipulation.



Functions

NameBrief Description
AdvanceToNextTokenAdvance the tokenizer to the next token.
FindSubStringReturns the position of sSubstring in sString.
Get2DAStringRetrieves a string value from a *.2da file on a server.
GetNextTokenReturn the next token as determined by AdvanceToNextToken.
GetNumberTokensReturn the number of tokens in the string for the specified delimiter.
GetStringByStrRefDetermines translated string by string reference.
GetStringLeftGets a substring from within a string.
GetStringLengthDetermines the length of a string.
GetStringLowerCaseConvert a string to lower case.
GetStringRightGets a substring from within a string.
GetStringTokenizerCreate and return a string tokenizer for a given string with a specified delimiter.
GetStringUpperCaseConvert string to upper case.
GetSubStringGet a substring from within a string.
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.
InsertStringThis function will insert a string into the destination string at the position indicated by nPosition.
PrintStringRecords a message to the log file.
SendMessageToAllDMsSends a message to all Dungeon Masters on server.
SendMessageToPCSends a message to the PC.
SendMessageToPCByStrRefSend a message to a player
SpeakQuickChatSends a line of text overhead the henchman.
StringParseGiven a source string and a delimiter string, this function searches the source string for the delimiter string and returns the portion of the source string that appears either left of the first occurrence of the delimiter, or right of the last occurrence of the delimiter.
StringRemoveParsedGiven a source string, a parse string, and a delimiter string, this function returns the result of removing the leftmost (or rightmost) characters from the source string equaling the length of the parse string to include any trailing (or leading) delimiters found beyond (or before) that point.
StringReplaceGiven a source string, search string, and replacement string, this function returns the result of replacing every occurrence of the search string found in the source string with the replacement string.
StringToRGBStringGiven a string and an RGB color encoded string, this function returns an equivalent string that will display in the specified color.
TestStringAgainstPatternReturns whether or not the given text matches the pattern.

See Also

Function Categories