#include <vtkStringOps.h>
Definition at line 36 of file vtkStringOps.h.
Static Public Member Functions | |
template<typename T> vtkBoolType | IsSpace (T const &ch) THROW_SPEC() |
Test for a space. | |
template<typename T> vtkBoolType | IsWhiteSpace (T const &ch) THROW_SPEC() |
Test for white space. | |
template<typename T> vtkBoolType | IsMemberOf (T const &ch, const T *const &set) THROW_SPEC() |
Tests whether a character is a member of the specified string. | |
template<typename T> vtkBoolType | IsUpper (T const &ch) THROW_SPEC() |
Test for upper case character. | |
template<typename T> vtkBoolType | IsLower (T const &ch) THROW_SPEC() |
Test for lower case character. | |
template<typename T> vtkBoolType | IsAlpha (T const &ch) THROW_SPEC() |
Test for alphabetic character. | |
template<typename T> vtkBoolType | IsAlnum (T const &ch) THROW_SPEC() |
Test for alphabetic or numeric character. | |
template<typename T> vtkBoolType | IsLetter (T const &ch) THROW_SPEC() |
Test for letter character. | |
template<typename T> vtkBoolType | IsNameChar (T const &ch) THROW_SPEC() |
Test for valid XML Name character. | |
template<typename T> vtkBoolType | IsNCNameChar (T const &ch) THROW_SPEC() |
Test for valid XML NCName character. | |
template<typename T> vtkBoolType | IsPubidChar (T const &ch) THROW_SPEC() |
Test for valid XML Public ID character. | |
template<typename T> T * | CreateEmptyString (void) |
Returns a newly allocated empty string (a string array of length 1 containg a terminal nul character). | |
template<typename T> vtkBoolType | IsNull (const T *const &str) THROW_SPEC() |
Returns whether or not the specified string pointer is to NULL. | |
template<typename T> vtkBoolType | IsEmpty (const T *const &str) THROW_SPEC() |
Returns whether or not the specified string pointer is empty (or NULL). | |
template<typename T> T * | ToLower (const T *const &a) |
Returns a new string containing the original characters converted (where applicable) to lower case forms. | |
template<typename T> T * | ToUpper (const T *const &a) |
Returns a new string containing the original characters converted (where applicable) to upper case forms. | |
template<typename T> vtkSizeType | Length (const T *const &str) THROW_SPEC() |
Returns the length of the string. | |
template<typename T> vtkBoolType | IsAllWhiteSpace (const T *const &str) THROW_SPEC() |
Returns whether string is composed wholly of whitespace char. | |
template<typename T> vtkBoolType | IsAllWhiteSpace (const T *const &str, int len) THROW_SPEC() |
Returns whether string is composed wholly of whitespace char. | |
template<typename T> void | Concatenate (T *const &dst, const T *const &src) THROW_SPEC() |
Concatenate a source string to the end of a destination string. | |
template<typename T> void | Concatenate (T *const &dst, const T *const &src, const vtkSizeType dstMax) THROW_SPEC() |
Concatenate a source string to the end of a destination string. | |
template<typename T> void | Concatenate (T *const &dst, const T *const &src, const vtkSizeType dstMax, const vtkSizeType srcSize) THROW_SPEC() |
Concatenate a source string to the end of a destination string. | |
template<typename T> void | Concatenate (T *const &dst, T const &ch) THROW_SPEC() |
Concatenate a source string to the end of a destination string. | |
template<typename T> void | Concatenate (T *const &dst, T const &ch, const vtkSizeType dstMax) THROW_SPEC() |
Concatenate a source string to the end of a destination string. | |
template<typename T> void | Copy (T *const &dst, const T *const &src) THROW_SPEC() |
Copy a source string to a destination string buffer. | |
template<typename T> void | Copy (T *const &dst, const T *const &src, const vtkSizeType dstMax) THROW_SPEC() |
Copy a source string to a destination string buffer. | |
template<typename T> void | Trim (T *const &str) THROW_SPEC() |
Trims off extra space characters from the start and end of the string, moving the non-space string content back to the start. | |
template<typename T> T * | Duplicate (const T *const &src) |
Returns a copy of the given string. | |
template<typename T> int | IndexOf (const T *const &str, const T ch) THROW_SPEC() |
Returns index of the first occurance of a character within a string. | |
template<typename T> int | IndexOf (const T *const &str, const T ch, const vtkSizeType from) THROW_SPEC() |
Returns index of the first occurance of a character within a string starting at the given index. | |
template<typename T> int | LastIndexOf (const T *const &str, const T ch) THROW_SPEC() |
Returns index of the last occurance of a character within a string. | |
template<typename T> int | LastIndexOf (const T *const &str, const T ch, const vtkSizeType from) THROW_SPEC() |
Returns index of the last occurance of a character within a string starting at the given index. | |
template<typename T> int | IndexNotOf (const T *const &str, const T ch) THROW_SPEC() |
Returns index of the first occurance not of a character within string. | |
template<typename T> int | IndexNotOf (const T *const &str, const T ch, const vtkSizeType from) THROW_SPEC() |
Returns index of the first occurance not of a character within a string starting at the given index. | |
template<typename T> int | LastIndexNotOf (const T *const &str, const T ch) THROW_SPEC() |
Returns index of the last occurance not of a character within a string. | |
template<typename T> int | LastIndexNotOf (const T *const &str, const T ch, const vtkSizeType from) THROW_SPEC() |
Returns index of the last occurance not of a character within a string starting at the given index. | |
template<typename T> void | Move (T *const &dst, const T *const &src, const vtkSizeType length) |
Fixed size string movement. | |
vtkBoolType | Transcode (const vtkUTF8ChType *const &in, char **out, const int max) THROW_SPEC() |
vtkBoolType | Transcode (const vtkUTF16ChType *const &in, char **out, const int max) THROW_SPEC() |
vtkBoolType | Transcode (const char *const &in, vtkUTF8ChType **out, const int max) THROW_SPEC() |
vtkBoolType | Transcode (const vtkUTF16ChType *const &in, vtkUTF8ChType **out, const int max) THROW_SPEC() |
vtkBoolType | Transcode (const char *const &in, vtkUTF16ChType **out, const int max) THROW_SPEC() |
vtkBoolType | Transcode (const vtkUTF8ChType *const &in, vtkUTF16ChType **out, const int max) THROW_SPEC() |
template<typename T> T * | SubString (const T *const &src, const int start) |
Returns a substring of the given string. | |
template<typename T> T * | SubString (const T *const &src, const int start, const int end) |
Returns a substring of the given string. | |
template<typename T> void | SubString (T *const &dst, const T *const &src, const int start) THROW_SPEC() |
Create a substring of the given string. | |
template<typename T> void | SubString (T *const &dst, const T *const &src, const int start, const int end) THROW_SPEC() |
Create a substring of the given string. | |
template<typename T> vtkBoolType | ValidateRegion (const T *const &str1, const vtkSSizeType offset1, const T *const &str2, const vtkSSizeType offset2, const vtkSizeType length) THROW_SPEC() |
template<typename T> vtkBoolType | IsPrefix (const T *const &test, const T *const &prefix) |
Tests if the prefix appears at the beginning of the test string. | |
template<typename T> vtkBoolType | IsSuffix (const T *const &test, const T *const &suffix) |
Tests if the suffix appears at the end of the test string. | |
template<typename T> const T * | FindAny (const T *const &test, const T *const &searchList) |
Tests if a string has any occurance of the characters of another string within itself. | |
template<typename T> int | FindSubString (const T *const &test, const T *const &subStr) |
Tells if a string contains the specified sub-string pattern within itself. | |
template<typename T> vtkBoolType | TextToBin (const T *const &, unsigned int &) |
Converts a string of decimal chars to a binary value. | |
template<typename T> int | ParseIntVec (const T *const &str, unsigned int len, int *data) |
Parses a space-delimited series of int values. | |
template<typename T> int | ParseInt (const T *const &str) |
Converts a string of decimal chars to a signed long int. | |
template<typename T> int | ParseFloatVec (const T *const &str, unsigned int len, float *data) |
Parses a space-delimited series of float values. | |
template<typename T> float | ParseFloat (const T *const &str) |
Converts a string of decimal chars to a double-precision float. | |
template<typename T> int | ParseDoubleVec (const T *const &str, unsigned int len, double *data) |
Parses a space-delimited series of double values. | |
template<typename T> double | ParseDouble (const T *const &str) |
Converts a string of decimal chars to a double-precision float. | |
template<typename T> int | ParseUintVec (const T *const &str, unsigned int len, unsigned int *data) |
Parses a space-delimited series of unsigned int values. | |
template<typename T> unsigned int | ParseUint (const T *const &str) |
Converts a string of decimal chars to an unsigned long int. | |
template<typename T> vtkBoolType | ParseBoolean (const T *const &str) |
Converts a character string to a boolean value. | |
template<typename T> T ** | Tokenize (const T *const &src, unsigned int maxTokens=128) |
Break a string into tokens with whitespace as delimiter, and stored in an array of strings. | |
template<typename T> T ** | Tokenize (const T *const &src, const T *const &delimiters, unsigned int maxTokens=128) |
template<typename T> vtkBoolType | IsAbsoluteURI (const T *uri) THROW_SPEC() |
template<typename T> void | ParseURI (const T *uri, T *buffer, const vtkSizeType bufLen, T **scheme, T **authority, T **path, T **query, T **fragment) THROW_SPEC() |
Split a URI(-ref) into several string components. | |
template<typename T> void | ResolveURIReference (const T *baseURI, const T *referenceURI, T *buffer, const vtkSizeType bufLen) |
Resolve a URI to a base URI. | |
template<typename T> T * | FileRootname (const T *const &filename) |
Returns newly allocated string containing filename root. | |
template<typename T> const T * | FileTailPointer (const T *const &fileName) |
Returns a pointer to the tail start in the passed string. | |
template<typename T> const T * | FileExtensionPointer (const T *const &fileName) |
Returns a pointer to the extension start in the passed string. | |
template<typename T> T * | FileExtension (const T *const &filename) |
Returns newly allocated string containing filename extension. | |
template<typename T> T * | FileDirname (const T *const &filename) |
Returns newly allocated string containing filename directory part. | |
template<typename T> T * | FileJoin (const T *const &head, const T *const &tail) |
Returns newly allocated string containing joined pathnames. | |
template<typename T> T * | FileJoin (const T **const &list, vtkBoolType absolute=VTK_TRUE) |
Returns newly allocated string containing joined pathnames. | |
template<typename T> vtkBoolType | CanReadDirectory (const T *const &dirName) |
template<typename T> vtkBoolType | CanReadFile (const T *const &fileName) |
template<typename T> vtkBoolType | CanWriteDirectory (const T *const &dirName) |
template<typename T> vtkBoolType | CheckDirectoryExists (const T *const &dirName) |
template<typename T> vtkBoolType | CheckFileExists (const T *const &fileName) |
template<typename T> T * | GetRelativePrefix (const T *const &fileName, const T *const &rootPath) THROW_SPEC() |
Gets the file prefix of fileName relative to rootPath . | |
template<typename T> T * | GetRelativeDirPrefix (const T *const &dirName, const T *const &rootPath, T **const &pfxResult=(T **) 0) THROW_SPEC() |
Gets the file prefix of fileName relative to rootPath . | |
template<typename T> void | Release (T **const &) |
Release a string allocated by the implementation. | |
template<typename T> void | Release (T ***const &) |
Release an array of strings allocated by the implementation. | |
template<typename T> vtkBoolType | IsLatin1 (T const &ch) THROW_SPEC() |
Test for Latin-1 character. | |
vtkBoolType | IsLatin1 (char const &ch) THROW_SPEC() |
Test for Latin-1 character. | |
vtkBoolType | IsLatin1 (unsigned char const &ch) THROW_SPEC() |
Test for Latin-1 character. | |
template<typename T> vtkBoolType | IsChar (T const &ch) THROW_SPEC() |
Test for character. | |
vtkBoolType | IsChar (char const &ch) THROW_SPEC() |
Test for character. | |
vtkBoolType | IsChar (unsigned char const &ch) THROW_SPEC() |
Test for character. | |
template<typename T> vtkBoolType | IsDigit (T const &ch) THROW_SPEC() |
Test for decimal digit character. | |
vtkBoolType | IsDigit (char const &ch) THROW_SPEC() |
Test for decimal digit character. | |
vtkBoolType | IsDigit (unsigned char const &ch) THROW_SPEC() |
Test for decimal digit character. | |
template<typename T> vtkBoolType | IsHexDigit (T const &ch) THROW_SPEC() |
Test for hexidecimal digit character. | |
vtkBoolType | IsHexDigit (char const &ch) THROW_SPEC() |
Test for hexidecimal digit character. | |
vtkBoolType | IsHexDigit (unsigned char const &ch) THROW_SPEC() |
Test for hexidecimal digit character. | |
template<typename T> vtkBoolType | IsCombiningChar (T const &ch) THROW_SPEC() |
Test for combining character. | |
vtkBoolType | IsCombiningChar (char const &ch) THROW_SPEC() |
Test for combining character. | |
vtkBoolType | IsCombiningChar (unsigned char const &ch) THROW_SPEC() |
Test for combining character. | |
template<typename T> vtkBoolType | IsBaseChar (T const &ch) THROW_SPEC() |
Test for base character. | |
vtkBoolType | IsBaseChar (char const &ch) THROW_SPEC() |
Test for base character. | |
vtkBoolType | IsBaseChar (unsigned char const &ch) THROW_SPEC() |
Test for base character. | |
template<typename T> vtkBoolType | IsIdeographic (T const &ch) THROW_SPEC() |
Test for ideographic character. | |
vtkBoolType | IsIdeographic (char const &ch) THROW_SPEC() |
Test for ideographic character. | |
vtkBoolType | IsIdeographic (unsigned char const &ch) THROW_SPEC() |
Test for ideographic character. | |
template<typename T> vtkBoolType | IsExtender (T const &ch) THROW_SPEC() |
Test for extender character. | |
vtkBoolType | IsExtender (char const &ch) THROW_SPEC() |
Test for extender character. | |
vtkBoolType | IsExtender (unsigned char const &ch) THROW_SPEC() |
Test for extender character. | |
char * | Transcode (const vtkUTF8ChType *const) |
Transcodes a string to/from the Latin-1 code-page. | |
char * | Transcode (const vtkUTF16ChType *const) |
Transcodes a string to/from the Latin-1 code-page. | |
vtkUTF16ChType * | Transcode (const char *const) |
Transcodes a string to/from the Latin-1 code-page. | |
template<typename T> vtkBoolType | Equals (const T *const &str1, const T *const &str2) THROW_SPEC() |
Compares two strings, returning true if equal or false if not. | |
template<typename T> vtkBoolType | Equals (const T *const &str1, const T *const &str2, const vtkSizeType length) THROW_SPEC() |
Compares two strings, returning true if equal or false if not. | |
template<typename T> vtkBoolType | Equals (const T *const &str1, const vtkSSizeType offset1, const T *const &str2, const vtkSSizeType offset2, const vtkSizeType length) THROW_SPEC() |
Compares two strings, returning true if equal or false if not. | |
template<typename T> vtkBoolType | Equals (const T *const &str, T const &ch) THROW_SPEC() |
Compares two strings, returning true if equal or false if not. | |
template<typename T> vtkBoolType | EqualsI (const T *const &str1, const T *const &str2) THROW_SPEC() |
Compares two strings, ignoring case, returning true if equal or false if not. | |
template<typename T> vtkBoolType | EqualsI (const T *const &str1, const T *const &str2, const vtkSizeType length) THROW_SPEC() |
Compares two strings, ignoring case, returning true if equal or false if not. | |
template<typename T> vtkBoolType | EqualsI (const T *const &str1, const vtkSSizeType offset1, const T *const &str2, const vtkSSizeType offset2, const vtkSizeType length) THROW_SPEC() |
Compares two strings, ignoring case, returning true if equal or false if not. | |
template<typename T> vtkBoolType | EqualsI (const T *const &str, T const &ch) THROW_SPEC() |
Compares two strings, ignoring case, returning true if equal or false if not. | |
template<typename T> int | Compare (const T *const &str1, const T *const &str2) THROW_SPEC() |
Lexicographically compares two strings, returning a value indicationg their relationship value. | |
template<typename T> int | Compare (const T *const &str1, const T *const &str2, const vtkSizeType length) |
Lexicographically compares two strings, returning a value indicationg their relationship value. | |
template<typename T> vtkUint32Type | Hash (const T *const &a) THROW_SPEC() |
An excellent string hashing function. | |
template<typename T> vtkUint32Type | HashN (const T *const &a, const vtkSizeType n) THROW_SPEC() |
An excellent string hashing function. | |
template<typename T> vtkUint32Type | Hash (const T *const &str, const vtkSizeType modulus) THROW_SPEC() |
Hashes a string. | |
template<typename T> vtkUint32Type | HashN (const T *const &str, const vtkSizeType n, const vtkSizeType modulus) THROW_SPEC() |
Hashes a substring of a specified length from the beginning. | |
char * | UTF8toLatin1 (const vtkUTF8ChType *const &str) THROW_SPEC() |
Converts string from one encoding to another. | |
char * | UTF16toLatin1 (const vtkUTF16ChType *const &str) THROW_SPEC() |
Converts string from one encoding to another. | |
vtkUTF8ChType * | Latin1toUTF8 (const char *const &str) THROW_SPEC() |
Converts string from one encoding to another. | |
vtkUTF8ChType * | UTF16toUTF8 (const vtkUTF16ChType *const &str) THROW_SPEC() |
Converts string from one encoding to another. | |
vtkUTF16ChType * | Latin1toUTF16 (const char *const &str) THROW_SPEC() |
Converts string from one encoding to another. | |
vtkUTF16ChType * | UTF8toUTF16 (const vtkUTF8ChType *const &str) THROW_SPEC() |
Converts string from one encoding to another. | |
char * | UCS2toUTF7 (const vtkUCS2ChType *const &str) THROW_SPEC() |
Converts between UCS-2 and UTF-7 string encodings. | |
vtkUCS2ChType * | UTF7toUCS2 (const char *const &str) THROW_SPEC() |
Converts between UCS-2 and UTF-7 string encodings. | |
template<typename T> vtkBoolType | CreateDirectory (const T *const &dirName, mode_t mode) |
vtkBoolType | CreateDirectory (const char *const &dirName, mode_t mode) |
vtkBoolType | GetCWD (char *buffer, vtkSizeType size) |
Get the current working directory. | |
vtkBoolType | GetCWD (char **buffer) |
Get the current working directory. | |
char * | GetCWD (void) |
Get the current working directory. | |
template<typename T> vtkBoolType | CanWriteFile (const T *const &fileName) |
vtkBoolType | CanWriteFile (const char *const &fileName) |
Static Protected Member Functions | |
long | Strtol (const char *str, char **end, int base=10) |
double | Strtod (const char *str, char **end) |
unsigned long | Strtoul (const char *str, char **end, int base=10) |
void * | Memccpy (void *const dstPtr, const void *const srcPtr, int endValue, vtkSizeType numBytes) |
void * | Memchr (void *const ptr, int value, vtkSizeType numBytes) |
int | Memcmp (const void *const ptr1, const void *const ptr2, vtkSizeType numBytes) |
void * | Memcpy (void *const dstPtr, const void *const srcPtr, vtkSizeType numBytes) |
void * | Memmove (void *const dstPtr, const void *const srcPtr, vtkSizeType numBytes) |
void * | Memset (void *const ptr, int value, vtkSizeType numBytes) |
vtkBoolType | Mkdir (const char *const &dirName, mode_t mode) |
vtkBoolType | CanStatFile (const char *const &aPathName) |
vtkBoolType | FileIsDirectory (const char *const &aPathName) |
vtkBoolType | FileIsReadable (const char *const &aPathName) |
vtkBoolType | FileIsWritable (const char *const &aPathName) |
vtkBoolType | FileExists (const char *const &aPathName) |
|
Definition at line 4314 of file vtkStringOps.h. References CanReadDirectory(), vtkStringOps::ToLatin1::data(), FileIsDirectory(), FileIsReadable(), IsEmpty(), VTK_FALSE, and VTK_TRUE. Referenced by CanReadDirectory(). |
|
Definition at line 4331 of file vtkStringOps.h. References CanReadFile(), CanStatFile(), vtkStringOps::ToLatin1::data(), FileIsDirectory(), FileIsReadable(), IsEmpty(), VTK_FALSE, and VTK_TRUE. Referenced by CanReadFile(). |
|
Referenced by CanReadFile(), CanWriteFile(), and CheckFileExists(). |
|
Definition at line 4349 of file vtkStringOps.h. References CanWriteDirectory(), vtkStringOps::ToLatin1::data(), FileIsDirectory(), FileIsWritable(), IsEmpty(), VTK_FALSE, and VTK_TRUE. Referenced by CanWriteDirectory(), and CanWriteFile(). |
|
Definition at line 4398 of file vtkStringOps.h. References CanStatFile(), CanWriteDirectory(), CanWriteFile(), FileDirname(), FileExists(), FileIsDirectory(), FileIsWritable(), IsEmpty(), Release(), VTK_FALSE, VTK_TRUE, and vtkBoolType. |
|
Definition at line 4366 of file vtkStringOps.h. References CanStatFile(), CanWriteDirectory(), CanWriteFile(), vtkStringOps::ToLatin1::data(), FileDirname(), FileExists(), FileIsDirectory(), FileIsWritable(), IsEmpty(), Release(), VTK_FALSE, VTK_TRUE, and vtkBoolType. Referenced by CanWriteFile(). |
|
Definition at line 4430 of file vtkStringOps.h. References CheckDirectoryExists(), vtkStringOps::ToLatin1::data(), FileExists(), FileIsDirectory(), IsEmpty(), VTK_FALSE, and VTK_TRUE. Referenced by CheckDirectoryExists(). |
|
Definition at line 4447 of file vtkStringOps.h. References CanStatFile(), CheckFileExists(), vtkStringOps::ToLatin1::data(), FileExists(), FileIsDirectory(), IsEmpty(), VTK_FALSE, and VTK_TRUE. Referenced by CheckFileExists(). |
|
Lexicographically compares two strings, returning a value indicationg their relationship value.
Definition at line 2720 of file vtkStringOps.h. |
|
Lexicographically compares two strings, returning a value indicationg their relationship value.
Definition at line 2683 of file vtkStringOps.h. References Compare(), IsNull(), and Length(). Referenced by Compare(), and IsPrefix(). |
|
Concatenate a source string to the end of a destination string.
Definition at line 2113 of file vtkStringOps.h. References Concatenate(), IsNull(), Length(), and vtkSizeType. |
|
Concatenate a source string to the end of a destination string.
Definition at line 2098 of file vtkStringOps.h. References Concatenate(), IsNull(), Length(), and vtkSizeType. |
|
Concatenate a source string to the end of a destination string.
Definition at line 2071 of file vtkStringOps.h. References Concatenate(), IsEmpty(), IsNull(), Length(), and vtkSizeType. |
|
Concatenate a source string to the end of a destination string.
Definition at line 2046 of file vtkStringOps.h. References Concatenate(), IsEmpty(), IsNull(), Length(), and vtkSizeType. |
|
Concatenate a source string to the end of a destination string.
Definition at line 2026 of file vtkStringOps.h. References Concatenate(), IsEmpty(), IsNull(), Length(), and vtkSizeType. Referenced by Concatenate(), FileJoin(), and ResolveURIReference(). |
|
Copy a source string to a destination string buffer.
Definition at line 2156 of file vtkStringOps.h. References Copy(), IsEmpty(), and vtkSizeType. |
|
Copy a source string to a destination string buffer.
Definition at line 2133 of file vtkStringOps.h. References Copy(), IsEmpty(), and vtkSizeType. Referenced by Copy(), and ResolveURIReference(). |
|
Definition at line 4247 of file vtkStringOps.h. References CreateDirectory(), FileDirname(), IsEmpty(), Mkdir(), Release(), VTK_FALSE, and vtkBoolType. |
|
Definition at line 4222 of file vtkStringOps.h. References CreateDirectory(), FileDirname(), IsEmpty(), Mkdir(), Release(), VTK_FALSE, and vtkBoolType. Referenced by CreateDirectory(). |
|
Returns a newly allocated empty string (a string array of length 1 containg a terminal
Definition at line 1874 of file vtkStringOps.h. |
|
Returns a copy of the given string.
Definition at line 2214 of file vtkStringOps.h. References Duplicate(), IsNull(), Length(), Memcpy(), VTK_FALSE, and vtkSizeType. Referenced by Duplicate(), FileDirname(), FileJoin(), FileRootname(), GetRelativeDirPrefix(), ParseBoolean(), ParseDoubleVec(), ParseFloatVec(), ParseIntVec(), ParseUintVec(), TextToBin(), Tokenize(), ToLower(), and ToUpper(). |
|
Compares two strings, returning true if equal or false if not.
Definition at line 2562 of file vtkStringOps.h. |
|
Compares two strings, returning true if equal or false if not.
Definition at line 2546 of file vtkStringOps.h. References Equals(), ValidateRegion(), and VTK_FALSE. |
|
Compares two strings, returning true if equal or false if not.
Definition at line 2520 of file vtkStringOps.h. References Equals(), IsEmpty(), IsNull(), VTK_FALSE, VTK_TRUE, and vtkSizeType. |
|
Compares two strings, returning true if equal or false if not.
Definition at line 2489 of file vtkStringOps.h. References Equals(), IsEmpty(), IsNull(), VTK_FALSE, and VTK_TRUE. Referenced by Equals(), GetRelativeDirPrefix(), and IsSuffix(). |
|
Compares two strings, ignoring case, returning true if equal or false if not.
Definition at line 2663 of file vtkStringOps.h. |
|
Compares two strings, ignoring case, returning true if equal or false if not.
Definition at line 2647 of file vtkStringOps.h. References EqualsI(), ValidateRegion(), and VTK_FALSE. |
|
Compares two strings, ignoring case, returning true if equal or false if not.
Definition at line 2621 of file vtkStringOps.h. References EqualsI(), IsEmpty(), IsNull(), VTK_FALSE, VTK_TRUE, and vtkSizeType. |
|
Compares two strings, ignoring case, returning true if equal or false if not.
Definition at line 2582 of file vtkStringOps.h. References EqualsI(), IsEmpty(), IsNull(), Length(), VTK_FALSE, and VTK_TRUE. Referenced by EqualsI(). |
|
Returns newly allocated string containing
Definition at line 4044 of file vtkStringOps.h. References Duplicate(), FileDirname(), IsEmpty(), LastIndexOf(), and SubString(). Referenced by CanWriteFile(), CreateDirectory(), and FileDirname(). |
|
Referenced by CanWriteFile(), CheckDirectoryExists(), and CheckFileExists(). |
|
Returns newly allocated string containing
Definition at line 4026 of file vtkStringOps.h. References FileExtension(), FileTailPointer(), IsEmpty(), LastIndexOf(), and SubString(). Referenced by FileExtension(). |
|
Returns a pointer to the extension start in the passed string.
Definition at line 4007 of file vtkStringOps.h. References FileExtensionPointer(), FileTailPointer(), and LastIndexOf(). Referenced by FileExtensionPointer(). |
|
Referenced by CanReadDirectory(), CanReadFile(), CanWriteDirectory(), CanWriteFile(), CheckDirectoryExists(), and CheckFileExists(). |
|
Referenced by CanReadDirectory(), and CanReadFile(). |
|
Referenced by CanWriteDirectory(), and CanWriteFile(). |
|
Returns newly allocated string containing joined pathnames.
Definition at line 4135 of file vtkStringOps.h. References FileJoin(), IsWhiteSpace(), Release(), VTK_FALSE, VTK_TRUE, and vtkSizeType. |
|
Returns newly allocated string containing joined pathnames.
Definition at line 4069 of file vtkStringOps.h. References Concatenate(), Duplicate(), FileJoin(), IsEmpty(), Length(), Release(), Trim(), VTK_FALSE, VTK_TRUE, vtkBoolType, and vtkSizeType. Referenced by FileJoin(), and GetRelativeDirPrefix(). |
|
Returns newly allocated string containing
Definition at line 3970 of file vtkStringOps.h. References Duplicate(), FileRootname(), IsEmpty(), LastIndexOf(), Length(), SubString(), and vtkSizeType. Referenced by FileRootname(), and GetRelativePrefix(). |
|
Returns a pointer to the tail start in the passed string.
Definition at line 3993 of file vtkStringOps.h. References FileTailPointer(), IsEmpty(), and LastIndexOf(). Referenced by FileExtension(), FileExtensionPointer(), and FileTailPointer(). |
|
Tests if a string has any occurance of the characters of another string within itself.
Definition at line 2754 of file vtkStringOps.h. References FindAny(). Referenced by FindAny(). |
|
Tells if a string contains the specified sub-string pattern within itself.
Definition at line 2777 of file vtkStringOps.h. References FindSubString(), IsEmpty(), Length(), and vtkSizeType. Referenced by FindSubString(). |
|
Get the current working directory.
Definition at line 4301 of file vtkStringOps.h. Referenced by GetCWD(). |
|
Get the current working directory.
Definition at line 4271 of file vtkStringOps.h. References GetCWD(), Release(), VTK_FALSE, and vtkSizeType. |
|
Get the current working directory.
|
|
Gets the file prefix of
Definition at line 4498 of file vtkStringOps.h. References Duplicate(), Equals(), FileJoin(), GetRelativeDirPrefix(), IsEmpty(), IsNull(), Release(), Tokenize(), ToLower(), VTK_FALSE, and vtkSizeType. Referenced by GetRelativeDirPrefix(). |
|
Gets the file prefix of
Definition at line 4466 of file vtkStringOps.h. References FileRootname(), GetRelativePrefix(), IsPrefix(), Length(), Move(), Release(), and vtkSSizeType. Referenced by GetRelativePrefix(). |
|
Hashes a string.
Definition at line 3923 of file vtkStringOps.h. |
|
An excellent string hashing function. Adapted from glib's g_str_hash(). Investigation by Karl Nelson <kenelson@ece.ucdavis.edu>. Do a web search for "g_str_hash X31_HASH" if you want to know more. Definition at line 3866 of file vtkStringOps.h. References Hash(), IsNull(), and VTK_FALSE. Referenced by Hash(). |
|
Hashes a substring of a specified length from the beginning.
Definition at line 3945 of file vtkStringOps.h. |
|
An excellent string hashing function. Adapted from glib's g_str_hash(). Investigation by Karl Nelson <kenelson@ece.ucdavis.edu>. Do a web search for "g_str_hash X31_HASH" if you want to know more. Definition at line 3879 of file vtkStringOps.h. References HashN(), IsNull(), VTK_FALSE, and vtkSSizeType. Referenced by HashN(). |
|
Returns index of the first occurance not of a character within a string starting at the given index.
Definition at line 2316 of file vtkStringOps.h. References IndexNotOf(), Length(), and vtkSizeType. |
|
Returns index of the first occurance not of a character within string.
Definition at line 2302 of file vtkStringOps.h. References IndexNotOf(), Length(), and vtkSizeType. Referenced by IndexNotOf(). |
|
Returns index of the first occurance of a character within a string starting at the given index.
Definition at line 2248 of file vtkStringOps.h. References IndexOf(), Length(), and vtkSizeType. |
|
Returns index of the first occurance of a character within a string.
Definition at line 2234 of file vtkStringOps.h. References IndexOf(), Length(), and vtkSizeType. Referenced by IndexOf(), and TextToBin(). |
|
Definition at line 3399 of file vtkStringOps.h. References IsAbsoluteURI(), IsAlnum(), IsAlpha(), VTK_FALSE, and vtkBoolType. Referenced by IsAbsoluteURI(), and ParseURI(). |
|
Returns whether string is composed wholly of whitespace char.
Definition at line 1988 of file vtkStringOps.h. References IsAllWhiteSpace(), IsWhiteSpace(), VTK_FALSE, and VTK_TRUE. |
|
Returns whether string is composed wholly of whitespace char.
Definition at line 1951 of file vtkStringOps.h. References IsAllWhiteSpace(), IsWhiteSpace(), Length(), VTK_FALSE, VTK_TRUE, and vtkSizeType. Referenced by IsAllWhiteSpace(). |
|
Test for alphabetic or numeric character.
Definition at line 1402 of file vtkStringOps.h. References IsAlnum(), IsAlpha(), and IsDigit(). Referenced by IsAbsoluteURI(), and IsAlnum(). |
|
Test for alphabetic character.
Definition at line 1309 of file vtkStringOps.h. References IsAlpha(), IsLower(), and IsUpper(). Referenced by IsAbsoluteURI(), IsAlnum(), and IsAlpha(). |
|
Test for base character.
Definition at line 1744 of file vtkStringOps.h. References IsBaseChar(), VTK_FALSE, and VTK_TRUE. |
|
Test for base character.
Definition at line 1735 of file vtkStringOps.h. References IsBaseChar(), VTK_FALSE, and VTK_TRUE. |
|
Test for base character.
Definition at line 1526 of file vtkStringOps.h. References IsBaseChar(), VTK_FALSE, and VTK_TRUE. Referenced by IsBaseChar(), and IsLetter(). |
|
Test for character. As per W3C XML 1.0 REC. Definition at line 1269 of file vtkStringOps.h. References IsChar(), and IsLatin1(). |
|
Test for character. As per W3C XML 1.0 REC. Definition at line 1263 of file vtkStringOps.h. References IsChar(), and IsLatin1(). |
|
Test for character. As per W3C XML 1.0 REC. Definition at line 1253 of file vtkStringOps.h. References IsChar(), IsLatin1(), VTK_FALSE, and VTK_TRUE. Referenced by IsChar(). |
|
Test for combining character.
Definition at line 1518 of file vtkStringOps.h. References IsCombiningChar(), and VTK_FALSE. |
|
Test for combining character.
Definition at line 1512 of file vtkStringOps.h. References IsCombiningChar(), and VTK_FALSE. |
|
Test for combining character.
Definition at line 1410 of file vtkStringOps.h. References IsCombiningChar(), VTK_FALSE, and VTK_TRUE. Referenced by IsCombiningChar(), IsNameChar(), and IsNCNameChar(). |
|
Test for decimal digit character.
Definition at line 1346 of file vtkStringOps.h. |
|
Test for decimal digit character.
Definition at line 1339 of file vtkStringOps.h. |
|
Test for decimal digit character.
Definition at line 1317 of file vtkStringOps.h. References IsDigit(), VTK_FALSE, and VTK_TRUE. Referenced by IsAlnum(), IsDigit(), IsNameChar(), and IsNCNameChar(). |
|
Returns whether or not the specified string pointer is empty (or NULL).
Definition at line 1895 of file vtkStringOps.h. References IsEmpty(), IsNull(), VTK_FALSE, and VTK_TRUE. Referenced by CanReadDirectory(), CanReadFile(), CanWriteDirectory(), CanWriteFile(), CheckDirectoryExists(), CheckFileExists(), Concatenate(), Copy(), CreateDirectory(), Equals(), EqualsI(), FileDirname(), FileExtension(), FileJoin(), FileRootname(), FileTailPointer(), FindSubString(), GetRelativeDirPrefix(), IsEmpty(), Length(), ParseBoolean(), ParseDoubleVec(), ParseFloatVec(), ParseIntVec(), ParseUintVec(), TextToBin(), ToLower(), and ToUpper(). |
|
Test for extender character.
Definition at line 1814 of file vtkStringOps.h. References IsExtender(). |
|
Test for extender character.
Definition at line 1808 of file vtkStringOps.h. References IsExtender(), and VTK_FALSE. |
|
Test for extender character.
Definition at line 1790 of file vtkStringOps.h. References IsExtender(), VTK_FALSE, and VTK_TRUE. Referenced by IsExtender(), IsNameChar(), and IsNCNameChar(). |
|
Test for hexidecimal digit character.
Definition at line 1387 of file vtkStringOps.h. References IsHexDigit(), VTK_FALSE, and VTK_TRUE. |
|
Test for hexidecimal digit character.
Definition at line 1374 of file vtkStringOps.h. References IsHexDigit(), VTK_FALSE, and VTK_TRUE. |
|
Test for hexidecimal digit character.
Definition at line 1355 of file vtkStringOps.h. References IsHexDigit(), VTK_FALSE, and VTK_TRUE. Referenced by IsHexDigit(), and ParseBoolean(). |
|
Test for ideographic character.
Definition at line 1774 of file vtkStringOps.h. References IsIdeographic(), and VTK_FALSE. |
|
Test for ideographic character.
Definition at line 1768 of file vtkStringOps.h. References IsIdeographic(), and VTK_FALSE. |
|
Test for ideographic character.
Definition at line 1758 of file vtkStringOps.h. References IsIdeographic(), VTK_FALSE, and VTK_TRUE. Referenced by IsIdeographic(), and IsLetter(). |
|
Test for Latin-1 character. As per W3C XML 1.0 REC. Definition at line 1243 of file vtkStringOps.h. References IsLatin1(), IsWhiteSpace(), VTK_FALSE, and VTK_TRUE. |
|
Test for Latin-1 character. As per W3C XML 1.0 REC. Definition at line 1235 of file vtkStringOps.h. References IsLatin1(), IsWhiteSpace(), VTK_FALSE, and VTK_TRUE. |
|
Test for Latin-1 character. As per W3C XML 1.0 REC. Definition at line 1227 of file vtkStringOps.h. References IsLatin1(), IsWhiteSpace(), VTK_FALSE, and VTK_TRUE. Referenced by IsChar(), and IsLatin1(). |
|
Test for letter character.
Definition at line 1782 of file vtkStringOps.h. References IsBaseChar(), IsIdeographic(), and IsLetter(). Referenced by IsLetter(), IsNameChar(), and IsNCNameChar(). |
|
Test for lower case character.
Definition at line 1300 of file vtkStringOps.h. |
|
Tests whether a character is a member of the specified string.
Definition at line 1277 of file vtkStringOps.h. References IsMemberOf(), VTK_FALSE, and VTK_TRUE. Referenced by IsMemberOf(), and Tokenize(). |
|
Test for valid XML Name character.
Definition at line 1822 of file vtkStringOps.h. References IsCombiningChar(), IsDigit(), IsExtender(), IsLetter(), IsNameChar(), VTK_FALSE, and VTK_TRUE. Referenced by IsNameChar(). |
|
Test for valid XML NCName character.
Definition at line 1839 of file vtkStringOps.h. References IsCombiningChar(), IsDigit(), IsExtender(), IsLetter(), IsNCNameChar(), VTK_FALSE, and VTK_TRUE. Referenced by IsNCNameChar(). |
|
Returns whether or not the specified string pointer is to NULL.
Definition at line 1886 of file vtkStringOps.h. References IsNull(), VTK_FALSE, and VTK_TRUE. Referenced by Compare(), Concatenate(), Duplicate(), Equals(), EqualsI(), GetRelativeDirPrefix(), Hash(), HashN(), IsEmpty(), IsNull(), Release(), ResolveURIReference(), and SubString(). |
|
Tests if the
Definition at line 2732 of file vtkStringOps.h. References Compare(), IsPrefix(), and Length(). Referenced by GetRelativePrefix(), and IsPrefix(). |
|
Test for valid XML Public ID character.
Definition at line 1855 of file vtkStringOps.h. References IsPubidChar(), VTK_FALSE, and VTK_TRUE. Referenced by IsPubidChar(). |
|
Test for a space.
Definition at line 1209 of file vtkStringOps.h. References IsSpace(), VTK_FALSE, and VTK_TRUE. Referenced by IsSpace(). |
|
Tests if the
Definition at line 2741 of file vtkStringOps.h. References Equals(), IsSuffix(), Length(), and vtkSizeType. Referenced by IsSuffix(). |
|
Test for upper case character.
Definition at line 1291 of file vtkStringOps.h. |
|
Test for white space. As per W3C XML 1.0 REC. Definition at line 1218 of file vtkStringOps.h. References IsWhiteSpace(), VTK_FALSE, and VTK_TRUE. Referenced by FileJoin(), IsAllWhiteSpace(), IsLatin1(), IsWhiteSpace(), ParseDoubleVec(), ParseFloatVec(), ParseIntVec(), ParseUintVec(), Tokenize(), and Trim(). |
|
Returns index of the last occurance not of a character within a string starting at the given index.
Definition at line 2350 of file vtkStringOps.h. References LastIndexNotOf(), Length(), and vtkSSizeType. |
|
Returns index of the last occurance not of a character within a string.
Definition at line 2336 of file vtkStringOps.h. References LastIndexNotOf(), Length(), and vtkSSizeType. Referenced by LastIndexNotOf(). |
|
Returns index of the last occurance of a character within a string starting at the given index.
Definition at line 2282 of file vtkStringOps.h. References LastIndexOf(), Length(), and vtkSSizeType. |
|
Returns index of the last occurance of a character within a string.
Definition at line 2268 of file vtkStringOps.h. References LastIndexOf(), Length(), and vtkSSizeType. Referenced by FileDirname(), FileExtension(), FileExtensionPointer(), FileRootname(), FileTailPointer(), LastIndexOf(), and ResolveURIReference(). |
|
Converts string from one encoding to another.
Referenced by Transcode(). |
|
Converts string from one encoding to another.
|
|
Returns the length of the string.
Definition at line 1936 of file vtkStringOps.h. References IsEmpty(), Length(), and vtkSizeType. Referenced by Compare(), Concatenate(), Duplicate(), EqualsI(), FileJoin(), FileRootname(), FindSubString(), GetRelativePrefix(), IndexNotOf(), IndexOf(), IsAllWhiteSpace(), IsPrefix(), IsSuffix(), LastIndexNotOf(), LastIndexOf(), Length(), ParseBoolean(), ParseDoubleVec(), ParseFloatVec(), ParseIntVec(), ParseUintVec(), ResolveURIReference(), SubString(), TextToBin(), Tokenize(), Trim(), and ValidateRegion(). |
|
|
|
|
|
Referenced by Compare(). |
|
Referenced by Duplicate(). |
|
Referenced by Move(). |
|
|
|
Referenced by CreateDirectory(). |
|
Fixed size string movement.
Definition at line 2370 of file vtkStringOps.h. References Memmove(), and Move(). Referenced by GetRelativePrefix(), and Move(). |
|
Converts a character string to a boolean value.
Definition at line 3138 of file vtkStringOps.h. References Duplicate(), IsEmpty(), IsHexDigit(), Length(), ParseBoolean(), Trim(), VTK_FALSE, VTK_TRUE, and vtkSizeType. Referenced by ParseBoolean(). |
|
Converts a string of decimal chars to a double-precision float.
Definition at line 3059 of file vtkStringOps.h. References ParseDouble(), and ParseDoubleVec(). Referenced by ParseDouble(). |
|
Parses a space-delimited series of
Definition at line 3001 of file vtkStringOps.h. References vtkStringOps::ToLatin1::data(), Duplicate(), IsEmpty(), IsWhiteSpace(), Length(), ParseDoubleVec(), Strtod(), Trim(), and vtkSizeType. Referenced by ParseDouble(), and ParseDoubleVec(). |
|
Converts a string of decimal chars to a double-precision float.
Definition at line 2991 of file vtkStringOps.h. References ParseFloat(), and ParseFloatVec(). Referenced by ParseFloat(). |
|
Parses a space-delimited series of
Definition at line 2933 of file vtkStringOps.h. References vtkStringOps::ToLatin1::data(), Duplicate(), IsEmpty(), IsWhiteSpace(), Length(), ParseFloatVec(), Strtod(), Trim(), and vtkSizeType. Referenced by ParseFloat(), and ParseFloatVec(). |
|
Converts a string of decimal chars to a signed long int.
Definition at line 2923 of file vtkStringOps.h. References ParseInt(), and ParseIntVec(). Referenced by ParseInt(). |
|
Parses a space-delimited series of
Definition at line 2865 of file vtkStringOps.h. References vtkStringOps::ToLatin1::data(), Duplicate(), IsEmpty(), IsWhiteSpace(), Length(), ParseIntVec(), Strtol(), Trim(), and vtkSizeType. Referenced by ParseInt(), and ParseIntVec(). |
|
Converts a string of decimal chars to an unsigned long int.
Definition at line 3128 of file vtkStringOps.h. References ParseUint(), and ParseUintVec(). Referenced by ParseUint(). |
|
Parses a space-delimited series of
Definition at line 3069 of file vtkStringOps.h. References vtkStringOps::ToLatin1::data(), Duplicate(), IsEmpty(), IsWhiteSpace(), Length(), ParseUintVec(), Strtoul(), Trim(), and vtkSizeType. Referenced by ParseUint(), and ParseUintVec(). |
|
Split a URI(-ref) into several string components.
Definition at line 3427 of file vtkStringOps.h. References IsAbsoluteURI(), and ParseURI(). Referenced by ParseURI(), and ResolveURIReference(). |
|
Release an array of strings allocated by the implementation.
Definition at line 4594 of file vtkStringOps.h. References Release(). |
|
Release a string allocated by the implementation.
Definition at line 4583 of file vtkStringOps.h. References IsNull(), Release(), and VTK_FALSE. Referenced by CanWriteFile(), CreateDirectory(), FileJoin(), GetCWD(), GetRelativeDirPrefix(), GetRelativePrefix(), Release(), vtkStringOps::Janitor< T >::~Janitor(), vtkStringOps::ToLatin1::~ToLatin1(), vtkStringOps::ToUTF16::~ToUTF16(), and vtkStringOps::ToUTF8::~ToUTF8(). |
|
Resolve a URI to a base URI.
Definition at line 3533 of file vtkStringOps.h. References Concatenate(), Copy(), IsNull(), LastIndexOf(), Length(), ParseURI(), ResolveURIReference(), and VTK_FALSE. Referenced by ResolveURIReference(). |
|
Referenced by ParseDoubleVec(), and ParseFloatVec(). |
|
Referenced by ParseIntVec(). |
|
Referenced by ParseUintVec(), and TextToBin(). |
|
Create a substring of the given string.
Definition at line 2448 of file vtkStringOps.h. References IsNull(), Length(), and SubString(). |
|
Create a substring of the given string.
Definition at line 2426 of file vtkStringOps.h. References IsNull(), Length(), and SubString(). |
|
Returns a substring of the given string.
Definition at line 2402 of file vtkStringOps.h. References Length(), and SubString(). |
|
Returns a substring of the given string.
Definition at line 2380 of file vtkStringOps.h. References Length(), and SubString(). Referenced by FileDirname(), FileExtension(), FileRootname(), SubString(), and Tokenize(). |
|
Converts a string of decimal chars to a binary value.
Definition at line 2812 of file vtkStringOps.h. References vtkStringOps::ToLatin1::data(), Duplicate(), IndexOf(), IsEmpty(), Length(), Strtoul(), TextToBin(), Trim(), VTK_FALSE, and VTK_TRUE. Referenced by TextToBin(). |
|
Definition at line 3344 of file vtkStringOps.h. References Duplicate(), IsMemberOf(), Length(), SubString(), Tokenize(), and VTK_FALSE. |
|
Break a string into tokens with whitespace as delimiter, and stored in an array of strings.
Definition at line 3292 of file vtkStringOps.h. References Duplicate(), IsWhiteSpace(), Length(), SubString(), Tokenize(), and VTK_FALSE. Referenced by GetRelativeDirPrefix(), and Tokenize(). |
|
Returns a new string containing the original characters converted (where applicable) to lower case forms.
Definition at line 1905 of file vtkStringOps.h. References Duplicate(), IsEmpty(), and ToLower(). Referenced by GetRelativeDirPrefix(), and ToLower(). |
|
Returns a new string containing the original characters converted (where applicable) to upper case forms.
Definition at line 1920 of file vtkStringOps.h. References Duplicate(), IsEmpty(), and ToUpper(). Referenced by ToUpper(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
Transcodes a string to/from the Latin-1 code-page.
Definition at line 1203 of file vtkStringOps.h. References Latin1toUTF16(), and Transcode(). |
|
Transcodes a string to/from the Latin-1 code-page.
Definition at line 1199 of file vtkStringOps.h. References Transcode(), and UTF16toLatin1(). |
|
Transcodes a string to/from the Latin-1 code-page.
Definition at line 1195 of file vtkStringOps.h. References Transcode(), and UTF8toLatin1(). Referenced by Transcode(). |
|
Trims off extra space characters from the start and end of the string, moving the non-space string content back to the start.
Definition at line 2181 of file vtkStringOps.h. References IsWhiteSpace(), Length(), Trim(), VTK_FALSE, and vtkSizeType. Referenced by FileJoin(), ParseBoolean(), ParseDoubleVec(), ParseFloatVec(), ParseIntVec(), ParseUintVec(), TextToBin(), and Trim(). |
|
Converts between UCS-2 and UTF-7 string encodings.
|
|
Converts string from one encoding to another.
Referenced by Transcode(). |
|
Converts string from one encoding to another.
|
|
Converts between UCS-2 and UTF-7 string encodings.
|
|
Converts string from one encoding to another.
Referenced by Transcode(). |
|
Converts string from one encoding to another.
|
|
Definition at line 2472 of file vtkStringOps.h. References Length(), ValidateRegion(), VTK_FALSE, and VTK_TRUE. Referenced by Equals(), EqualsI(), and ValidateRegion(). |