Static Public Member Functions | |
XFCIMPORT INT32 | format (CHAR *aTarget, const CHAR *aFormat,...) |
Formats string using standard printf-like format string. | |
XFCIMPORT INT32 | formatVarArgs (CHAR *aTarget, const CHAR *aFormat, va_list aVaList) |
va_list version of format() | |
XFCIMPORT INT32 | format (CHAR *aTarget, INT32 aBufferLength, const CHAR *aFormat,...) |
Format() call that also makes sure target buffer is not overrun. | |
XFCIMPORT INT32 | formatVarArgs (CHAR *aTarget, INT32 aBufferLength, const CHAR *aFormat, va_list aVaList) |
Format() call that also makes sure target buffer is not overrun (va_list version). | |
XFCIMPORT CHAR * | allocatedFormat (const CHAR *aFormat,...) |
Format() call that also allocates the target buffer. | |
XFCIMPORT CHAR * | allocatedFormatVarArgs (const CHAR *aFormat, va_list aVaList) |
Format() call that also allocates the target buffer (va_list version). | |
XFCIMPORT UINT32 | match (const CHAR *aMask, const CHAR *aData) |
Calculates the amount of matches of a mask in a string. | |
XFCIMPORT UINT32 | matchIgnoreCase (const CHAR *aMask, const CHAR *aData) |
Calculates the amount of matches of a mask in a string, ignore case -version. | |
XFCIMPORT INT | matchWildcard (const CHAR *aMask, const CHAR *aData) |
Matches wildcards (? and * supported). | |
XFCIMPORT INT | matchWildcardIgnoreCase (const CHAR *aMask, const CHAR *aData) |
Matches wildcards (? and * supported), ignore case -version. | |
XFCIMPORT CHAR * | copy (const CHAR8 *aString) |
Duplicates string from 8-bit characters to internal format. | |
XFCIMPORT CHAR * | copy (const CHAR16 *aString) |
Duplicates string from 16-bit characters to internal format. | |
XFCIMPORT CHAR8 * | copyToCHAR8 (const CHAR *aString) |
Duplicates string from internal format to 8-bit format. | |
XFCIMPORT CHAR16 * | copyToCHAR16 (const CHAR *aString) |
Duplicates string from internal format to 16-bit format. | |
XFCIMPORT INT | compare (const CHAR *aString1, const CHAR *aString2) |
Compares two strings (0 = equal). | |
XFCIMPORT INT | compareIgnoreCase (const CHAR *aString1, const CHAR *aString2) |
Compares two strings in a case-insensitive way (0 = equal). | |
XFCIMPORT const CHAR * | find (const CHAR *aStringSrc, const CHAR *aStringToFind) |
Finds string in string, returns NULL if not found. | |
XFCIMPORT INT32 | getLength (const CHAR *aString) |
Returns length of string, in characters. | |
XFCIMPORT INT32 | getLengthInBytes (const CHAR *aString) |
Returns length of string, in bytes. | |
XFCIMPORT CHAR * | findLast (const CHAR *aString, const CHAR aChar) |
Returns a pointer to the last occurrence of a character, or NULL if not found. | |
XFCIMPORT CHAR * | concat (const CHAR *aString1, const CHAR *aString2, CHAR aDelimiter=0) |
Joins two strings, allocating new buffer. | |
XFCIMPORT INT32 | toINT32 (const CHAR *aString) |
Converts string to an integer. | |
XFCIMPORT FLOAT32 | toFLOAT32 (const CHAR *aString) |
Converts string to a float. | |
XFCIMPORT void | toLowerCase (CHAR *aString) |
Converts a string to lower case. | |
XFCIMPORT void | toUpperCase (CHAR *aString) |
Converts a string to upper case. | |
XFCIMPORT CHAR * | unescape (const CHAR *aStr) |
Converts escaped character string to literal one. |
|
Format() call that also allocates the target buffer.
|
|
Format() call that also allocates the target buffer (va_list version).
|
|
Compares two strings (0 = equal). This method can also be used to sort strings, as the result can be negative or positive depending on the characters compared.
|
|
Compares two strings in a case-insensitive way (0 = equal).
|
|
Joins two strings, allocating new buffer.
|
|
Duplicates string from 16-bit characters to internal format.
|
|
Duplicates string from 8-bit characters to internal format.
|
|
Duplicates string from internal format to 16-bit format.
|
|
Duplicates string from internal format to 8-bit format.
|
|
Finds string in string, returns NULL if not found. Returned pointer points at the beginning of the found string, not a newly-allocated one. |
|
Returns a pointer to the last occurrence of a character, or NULL if not found.
|
|
Format() call that also makes sure target buffer is not overrun.
|
|
Formats string using standard printf-like format string.
|
|
Format() call that also makes sure target buffer is not overrun (va_list version).
|
|
va_list version of format()
|
|
Returns length of string, in characters. String must be zero-terminated.
|
|
Returns length of string, in bytes. Returns the byte size of the character string regardless of the internal character format.
|
|
Calculates the amount of matches of a mask in a string. Checks how many times the given mask string is found in another string.
|
|
Calculates the amount of matches of a mask in a string, ignore case -version. Checks how many times the given mask string is found in another string.
|
|
Matches wildcards (? and * supported). Checks whether the given string matches a wildcard mask. ? (question mark) is a single-character wildcard while * (asterisk) matches zero or more characters. "foo?ar" matches "foobar" but not "foobaar"; "f*r" matches all strings that start with f and end with r, including "fr" and "foobar".
|
|
Matches wildcards (? and * supported), ignore case -version.
|
|
Converts string to a float. String to be converted must contain a string representation of numerical value in range of FLOAT32. The string can contain only characters '0' to '9' with optionally '-' sign on the front, '.' as decimal separator and the exponent symbol 'e' or 'E' possibly suffixed with the '+' or '-' sign.
|
|
Converts string to an integer. String to be converted must contain a string representation of numerical value in range of INT32. String format may be in decimal, octal, binary or hexadecimal. There may be an optional '-' sign prefix. Values that have prefix 0o are considered octal, and values prefixed by 0x or # are considered hexadecimal, and values prefixed by 0b are considered binary.
|
|
Converts a string to lower case. Character conversion supports only characters from A to Z. All other characters are to be considered as non-convertable.
|
|
Converts a string to upper case. Character conversion supports only characters from A to Z. All other characters are to be considered as non-convertable.
|
|
Converts escaped character string to literal one.
|
![]() | ||||
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch |