Static Public Methods | |
Conversion functions | |
void | binToText (const unsigned int toFormat, char *const toFill, const unsigned int maxChars, const unsigned int radix) |
void | binToText (const unsigned int toFormat, XMLCh *const toFill, const unsigned int maxChars, const unsigned int radix) |
void | binToText (const unsigned long toFormat, char *const toFill, const unsigned int maxChars, const unsigned int radix) |
void | binToText (const unsigned long toFormat, XMLCh *const toFill, const unsigned int maxChars, const unsigned int radix) |
void | binToText (const long toFormat, char *const toFill, const unsigned int maxChars, const unsigned int radix) |
void | binToText (const long toFormat, XMLCh *const toFill, const unsigned int maxChars, const unsigned int radix) |
void | binToText (const int toFormat, char *const toFill, const unsigned int maxChars, const unsigned int radix) |
void | binToText (const int toFormat, XMLCh *const toFill, const unsigned int maxChars, const unsigned int radix) |
bool | textToBin (const XMLCh *const toConvert, unsigned int &toFill) |
int | parseInt (const XMLCh *const toConvert) |
String concatenation functions | |
void | catString (char *const target, const char *const src) |
void | catString (XMLCh *const target, const XMLCh *const src) |
String comparison functions | |
int | compareIString (const char *const str1, const char *const str2) |
int | compareIString (const XMLCh *const str1, const XMLCh *const str2) |
int | compareNString (const char *const str1, const char *const str2, const unsigned int count) |
int | compareNString (const XMLCh *const str1, const XMLCh *const str2, const unsigned int count) |
int | compareNIString (const char *const str1, const char *const str2, const unsigned int count) |
int | compareNIString (const XMLCh *const str1, const XMLCh *const str2, const unsigned int count) |
int | compareString (const char *const str1, const char *const str2) |
int | compareString (const XMLCh *const str1, const XMLCh *const str2) |
bool | regionMatches (const XMLCh *const str1, const int offset1, const XMLCh *const str2, const int offset2, const unsigned int charCount) |
bool | regionIMatches (const XMLCh *const str1, const int offset1, const XMLCh *const str2, const int offset2, const unsigned int charCount) |
String copy functions | |
void | copyString (char *const target, const char *const src) |
void | copyString (XMLCh *const target, const XMLCh *const src) |
bool | copyNString (XMLCh *const target, const XMLCh *const src, const unsigned int maxChars) |
Hash functions | |
unsigned int | hash (const char *const toHash, const unsigned int hashModulus) |
unsigned int | hash (const XMLCh *const toHash, const unsigned int hashModulus) |
unsigned int | hashN (const XMLCh *const toHash, const unsigned int numChars, const unsigned int hashModulus) |
Search functions | |
int | indexOf (const char *const toSearch, const char ch) |
int | indexOf (const XMLCh *const toSearch, const XMLCh ch) |
int | indexOf (const char *const toSearch, const char chToFind, const unsigned int fromIndex) |
int | indexOf (const XMLCh *const toSearch, const XMLCh chToFind, const unsigned int fromIndex) |
int | lastIndexOf (const char *const toSearch, const char ch) |
int | lastIndexOf (const XMLCh *const toSearch, const XMLCh ch) |
int | lastIndexOf (const char *const toSearch, const char chToFind, const unsigned int fromIndex) |
int | lastIndexOf (const XMLCh *const toSearch, const XMLCh ch, const unsigned int fromIndex) |
Fixed size string movement | |
void | moveChars (XMLCh *const targetStr, const XMLCh *const srcStr, const unsigned int count) |
Substring function | |
void | subString (char *const targetStr, const char *const srcStr, const int startIndex, const int endIndex) |
void | subString (XMLCh *const targetStr, const XMLCh *const srcStr, const int startIndex, const int endIndex) |
Replication function | |
char * | replicate (const char *const toRep) |
XMLCh * | replicate (const XMLCh *const toRep) |
String query function | |
bool | startsWith (const char *const toTest, const char *const prefix) |
bool | startsWith (const XMLCh *const toTest, const XMLCh *const prefix) |
bool | startsWithI (const char *const toTest, const char *const prefix) |
bool | startsWithI (const XMLCh *const toTest, const XMLCh *const prefix) |
bool | endsWith (const XMLCh *const toTest, const XMLCh *const suffix) |
const XMLCh * | findAny (const XMLCh *const toSearch, const XMLCh *const searchList) |
XMLCh * | findAny (XMLCh *const toSearch, const XMLCh *const searchList) |
int | patternMatch (XMLCh *const toSearch, const XMLCh *const pattern) |
unsigned int | stringLen (const char *const src) |
unsigned int | stringLen (const XMLCh *const src) |
bool | isValidNCName (const XMLCh *const name) |
bool | isValidName (const XMLCh *const name) |
bool | isValidEncName (const XMLCh *const name) |
bool | isValidQName (const XMLCh *const name) |
bool | isAlpha (XMLCh const theChar) |
bool | isDigit (XMLCh const theChar) |
bool | isAlphaNum (XMLCh const theChar) |
bool | isHex (XMLCh const theChar) |
bool | isAllWhiteSpace (const XMLCh *const toCheck) |
Conversion functions | |
void | cut (XMLCh *const toCutFrom, const unsigned int count) |
char * | transcode (const XMLCh *const toTranscode) |
bool | transcode (const XMLCh *const toTranscode, char *const toFill, const unsigned int maxChars) |
XMLCh * | transcode (const char *const toTranscode) |
bool | transcode (const char *const toTranscode, XMLCh *const toFill, const unsigned int maxChars) |
void | trim (char *const toTrim) |
void | trim (XMLCh *const toTrim) |
RefVectorOf< XMLCh > * | tokenizeString (const XMLCh *const tokenizeSrc) |
bool | isInList (const XMLCh *const toFind, const XMLCh *const enumList) |
Formatting functions | |
XMLCh * | makeUName (const XMLCh *const pszURI, const XMLCh *const pszName) |
unsigned int | replaceTokens (XMLCh *const errText, const unsigned int maxChars, const XMLCh *const text1, const XMLCh *const text2, const XMLCh *const text3, const XMLCh *const text4) |
void | upperCase (XMLCh *const toUpperCase) |
void | lowerCase (XMLCh *const toLowerCase) |
bool | isWSReplaced (const XMLCh *const toCheck) |
bool | isWSCollapsed (const XMLCh *const toCheck) |
void | replaceWS (XMLCh *const toConvert) |
void | collapseWS (XMLCh *const toConvert) |
Friends | |
class | XMLPlatformUtils |
This class is Unicode compliant. This class is designed primarily for internal use, but due to popular demand, it is being made publicly available. Users of this class must understand that this is not an officially supported class. All public methods of this class are static functions.
|
Converts binary data to a text string based a given radix
|
|
Converts binary data to a text string based a given radix
|
|
Converts binary data to a text string based a given radix
|
|
Converts binary data to a text string based a given radix
|
|
Converts binary data to a text string based a given radix
|
|
Converts binary data to a text string based a given radix
|
|
Converts binary data to a text string based a given radix
|
|
Converts binary data to a text string based a given radix
|
|
Concatenates two strings.
|
|
Concatenates two strings.
No overflow checking is performed when strings are copied or appended. The behavior of
|
|
Collapse whitespace
|
|
Lexicographically compares lowercase versions of
|
|
Lexicographically compares lowercase versions of
|
|
Lexicographically compares, at most, the first count characters in
|
|
Lexicographically compares, at most, the first count characters in
|
|
Lexicographically compares, at most, the first count characters in
|
|
Lexicographically compares, at most, the first count characters in
|
|
Lexicographically compares
|
|
Lexicographically compares
|
|
Copies
No overflow checking is performed when strings are copied or appended. The behavior of
|
|
Copies
No overflow checking is performed when strings are copied or appended. The behavior of
|
|
Copies No overflow checking is performed when strings are copied or appended. The behavior of strcpy is undefined if the source and destination strings overlap.
|
|
Cut leading chars from a string
|
|
Tells if the sub-string appears within a string at the end.
|
|
Tells if a string has any occurance of another string within itself
|
|
Tells if a string has any occurance of another string within itself
|
|
Hashes a string given a modulus
|
|
Hashes a string given a modulus
|
|
Hashes a string given a modulus taking a maximum number of characters as the limit
|
|
Provides the index of the first occurance of a character within a string starting from a given index
|
|
Provides the index of the first occurance of a character within a string starting from a given index
|
|
Provides the index of the first occurance of a character within a string
|
|
Provides the index of the first occurance of a character within a string
|
|
Checks whether a string contains only whitespace.
|
|
Checks whether a character is within [a-zA-Z].
|
|
Checks whether a character is within [0-9a-zA-Z].
|
|
Checks whether a character is within [0-9].
|
|
Checks whether a character is within [0-9a-fA-F].
|
|
Find is the string appears in the enum list
|
|
Checks whether an name is a valid EncName.
|
|
Checks whether an name is a valid Name.
|
|
Checks whether an name is a valid NCName.
|
|
Checks whether an name is a valid QName.
|
|
Check if string is WhiteSpace:collapse
|
|
Check if string is WhiteSpace:replace
|
|
Provides the index of the last occurance of a character within a string starting backward from a given index
|
|
Provides the index of the last occurance of a character within a string starting backward from a given index
|
|
Provides the index of the last occurance of a character within a string
|
|
Provides the index of the last occurance of a character within a string
|
|
Converts a string to lowercase
|
|
Creates a UName from a URI and base name. It is in the form {url}name, and is commonly used internally to represent fully qualified names when namespaces are enabled.
|
|
Moves X number of chars
|
|
Converts a string of decimal chars to a binary value Note that leading and trailng whitespace is legal and will be ignored, Only one and either of (+,-) after the leading whitespace, before any other characters are allowed. but the remainder must be all decimal digits.
|
|
Tells if a string has pattern within itself
|
|
Lexicographically compares
A substring of
|
|
Lexicographically compares
A substring of
|
|
Internal function to perform token replacement for strings.
|
|
Replace whitespace
|
|
Replicates a string
|
|
Replicates a string
|
|
Tells if the sub-string appears within a string at the beginning
|
|
Tells if the sub-string appears within a string at the beginning
|
|
Tells if the sub-string appears within a string at the beginning without regard to case
|
|
Tells if the sub-string appears within a string at the beginning without regard to case
|
|
Get the length of the string
|
|
Get the length of the string
|
|
Create a substring of a givend string. The substring begins at the specified beginIndex and extends to the character at index endIndex - 1.
|
|
Create a substring of a givend string. The substring begins at the specified beginIndex and extends to the character at index endIndex - 1.
|
|
Converts a string of decimal chars to a binary value Note that leading and trailng whitespace is legal and will be ignored but the remainder must be all decimal digits.
|
|
Break a string into tokens with space as delimiter, and stored in a string vector. The caller owns the string vector that is returned, and is responsible for deleting it.
|
|
Transcodes a string to native code-page
|
|
Transcodes a string to native code-page NOTE: The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed.
|
|
Transcodes a string to native code-page Be aware that when transcoding to an external encoding, that each Unicode char can create multiple output bytes. So you cannot assume a one to one correspondence of input chars to output bytes.
|
|
Transcodes a string to native code-page NOTE: The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed.
|
|
Trims off extra space characters from the start and end of the string, moving the non-space string content back to the start.
|
|
Trims off extra space characters from the start and end of the string, moving the non-space string content back to the start.
|
|
Converts a string to uppercase
|