Functions41
SymbolDescription
BreakStringFinds the first "argument" in a string; either a set of space terminated characters, or a fully quoted string. After the argument is found, whitespace is read until the next portion of the string is reached. If nothing remains, -1 is returned. Otherwise, the index to the first character is returned.
CharToLowerConverts an uppercase character to its lowercase counterpart.
CharToUpperConverts a lowercase character to its uppercase counterpart.
ExplodeStringBreaks a string into pieces and stores each piece into an array of buffers.
FindCharInStringFinds the first occurrence of a character in a string.
FloatToStringConverts a floating point number to a string.
FormatFormats a string according to the SourceMod format rules (see documentation).
FormatExFormats a string according to the SourceMod format rules (see documentation).
GetCharBytesReturns the number of bytes a character is using. This is for multi-byte characters (UTF-8). For normal ASCII characters, this will return 1.
ImplodeStringsJoins an array of strings into one string, with a "join" string inserted in between each given string. This function complements ExplodeString.
Int64ToStringConverts a 64-bit integer in the legacy 2-cell representation to a string.
Int64ToStringExConverts an int64 value to a string.
IntToStringConverts an integer to a string.
IsCharAlphaReturns whether a character is an ASCII alphabet character.
IsCharLowerReturns whether an alphabetic character is lowercase.
IsCharMBReturns if a character is multi-byte or not.
IsCharNumericReturns whether a character is numeric.
IsCharSpaceReturns whether a character is whitespace.
IsCharUpperReturns whether an alphabetic character is uppercase.
ReplaceStringGiven a string, replaces all occurrences of a search string with a replacement string.
ReplaceStringExGiven a string, replaces the first occurrence of a search string with a replacement string.
SplitStringReturns text in a string up until a certain character sequence is reached.
StrBreak
StrCatConcatenates one string onto another.
strcmpCompares two strings lexographically.
StrCompare
StrContainsTests whether a string is found inside another string.
strcopyCopies one string to another string.
StrCopy
StrEqualReturns whether two strings are equal.
StringToFloatConverts a string to a floating point number.
StringToFloatExConverts a string to a floating point number with some more options.
StringToI64Converts a string to an int64 type value.
StringToIntConverts a string to an integer.
StringToInt64Converts a string to a 64-bit integer.
StringToIntExConverts a string to an integer with some more options.
StripQuotesStrips a quote pair off a string if it exists. That is, the following replace rule is applied once: ^"(.*)"$ -> ^\1$ Note that the leading and trailing quotes will only be removed if both exist. Otherwise, the string is left unmodified. This function should be considered O(k) (all characters get shifted down).
strlenCalculates the length of a string.
strncmpCompares two strings parts lexographically.
TrimStringRemoves whitespace characters from the beginning and end of a string.
VFormatFormats a string according to the SourceMod format rules (see documentation).