Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

vtkStringOps Class Reference

#include <vtkStringOps.h>

List of all members.


Detailed Description

Convert character encodings and perform common string operations.

Author:
Sean McInerney
Version:
Revision
1.4
Date:
Date
2004/08/10 07:37:21

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.

vtkUTF16ChTypeTranscode (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.

vtkUTF8ChTypeLatin1toUTF8 (const char *const &str) THROW_SPEC()
 Converts string from one encoding to another.

vtkUTF8ChTypeUTF16toUTF8 (const vtkUTF16ChType *const &str) THROW_SPEC()
 Converts string from one encoding to another.

vtkUTF16ChTypeLatin1toUTF16 (const char *const &str) THROW_SPEC()
 Converts string from one encoding to another.

vtkUTF16ChTypeUTF8toUTF16 (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.

vtkUCS2ChTypeUTF7toUCS2 (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)


Member Function Documentation

template<typename T>
vtkBoolType vtkStringOps::CanReadDirectory const T *const &  dirName  )  [inline, static]
 

Definition at line 4314 of file vtkStringOps.h.

References CanReadDirectory(), vtkStringOps::ToLatin1::data(), FileIsDirectory(), FileIsReadable(), IsEmpty(), VTK_FALSE, and VTK_TRUE.

Referenced by CanReadDirectory().

template<typename T>
vtkBoolType vtkStringOps::CanReadFile const T *const &  fileName  )  [inline, static]
 

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().

vtkBoolType vtkStringOps::CanStatFile const char *const &  aPathName  )  [static, protected]
 

Referenced by CanReadFile(), CanWriteFile(), and CheckFileExists().

template<typename T>
vtkBoolType vtkStringOps::CanWriteDirectory const T *const &  dirName  )  [inline, static]
 

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().

vtkBoolType vtkStringOps::CanWriteFile const char *const &  fileName  )  [inline, static]
 

Definition at line 4398 of file vtkStringOps.h.

References CanStatFile(), CanWriteDirectory(), CanWriteFile(), FileDirname(), FileExists(), FileIsDirectory(), FileIsWritable(), IsEmpty(), Release(), VTK_FALSE, VTK_TRUE, and vtkBoolType.

template<typename T>
vtkBoolType vtkStringOps::CanWriteFile const T *const &  fileName  )  [inline, static]
 

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().

template<typename T>
vtkBoolType vtkStringOps::CheckDirectoryExists const T *const &  dirName  )  [inline, static]
 

Definition at line 4430 of file vtkStringOps.h.

References CheckDirectoryExists(), vtkStringOps::ToLatin1::data(), FileExists(), FileIsDirectory(), IsEmpty(), VTK_FALSE, and VTK_TRUE.

Referenced by CheckDirectoryExists().

template<typename T>
vtkBoolType vtkStringOps::CheckFileExists const T *const &  fileName  )  [inline, static]
 

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().

template<typename T>
int vtkStringOps::Compare const T *const &  str1,
const T *const &  str2,
const vtkSizeType  length
[inline, static]
 

Lexicographically compares two strings, returning a value indicationg their relationship value.

Returns:
Return value indicates the relation of the two strings as follows: Less than 0 means first string is less than second string. Equal to 0 means first string is identical to second string. Greater than 0 means first string is more than second string.

Definition at line 2720 of file vtkStringOps.h.

References Compare(), and Memcmp().

template<typename T>
int vtkStringOps::Compare const T *const &  str1,
const T *const &  str2
[inline, static]
 

Lexicographically compares two strings, returning a value indicationg their relationship value.

Returns:
Return value indicates the relation of the two strings as follows: Less than 0 means first string is less than second string. Equal to 0 means first string is identical to second string. Greater than 0 means first string is more than second string.

Definition at line 2683 of file vtkStringOps.h.

References Compare(), IsNull(), and Length().

Referenced by Compare(), and IsPrefix().

template<typename T>
void vtkStringOps::Concatenate T *const &  dst,
T const &  ch,
const vtkSizeType  dstMax
[inline, static]
 

Concatenate a source string to the end of a destination string.

Parameters:
dst A nul-terminated character string (destination).
ch A character (source).
dstMax The maximum total length of the destination string.

Definition at line 2113 of file vtkStringOps.h.

References Concatenate(), IsNull(), Length(), and vtkSizeType.

template<typename T>
void vtkStringOps::Concatenate T *const &  dst,
T const &  ch
[inline, static]
 

Concatenate a source string to the end of a destination string.

Parameters:
dst A nul-terminated character string (destination).
ch A character (source).

Definition at line 2098 of file vtkStringOps.h.

References Concatenate(), IsNull(), Length(), and vtkSizeType.

template<typename T>
void vtkStringOps::Concatenate T *const &  dst,
const T *const &  src,
const vtkSizeType  dstMax,
const vtkSizeType  srcSize
[inline, static]
 

Concatenate a source string to the end of a destination string.

Parameters:
dst A nul-terminated character string (destination).
src A character string (source, may not be nul-terminated).
dstMax The maximum total length of the destination string.
srcSize The number of characters to copy from the source string.

Definition at line 2071 of file vtkStringOps.h.

References Concatenate(), IsEmpty(), IsNull(), Length(), and vtkSizeType.

template<typename T>
void vtkStringOps::Concatenate T *const &  dst,
const T *const &  src,
const vtkSizeType  dstMax
[inline, static]
 

Concatenate a source string to the end of a destination string.

Parameters:
dst A nul-terminated character string (destination).
src A character string (source, may not be nul-terminated).
dstMax The maximum total length of the destination string.

Definition at line 2046 of file vtkStringOps.h.

References Concatenate(), IsEmpty(), IsNull(), Length(), and vtkSizeType.

template<typename T>
void vtkStringOps::Concatenate T *const &  dst,
const T *const &  src
[inline, static]
 

Concatenate a source string to the end of a destination string.

Parameters:
dst A nul-terminated character string (destination).
src A nul-terminated character string (source).

Definition at line 2026 of file vtkStringOps.h.

References Concatenate(), IsEmpty(), IsNull(), Length(), and vtkSizeType.

Referenced by Concatenate(), FileJoin(), and ResolveURIReference().

template<typename T>
void vtkStringOps::Copy T *const &  dst,
const T *const &  src,
const vtkSizeType  dstMax
[inline, static]
 

Copy a source string to a destination string buffer.

Parameters:
dst A pointer to a pre-allocated character buffer (destination).
src A character string (source, may not be nul-terminated).
dstMax The maximum length of the destination string.

Definition at line 2156 of file vtkStringOps.h.

References Copy(), IsEmpty(), and vtkSizeType.

template<typename T>
void vtkStringOps::Copy T *const &  dst,
const T *const &  src
[inline, static]
 

Copy a source string to a destination string buffer.

Parameters:
dst A pointer to a pre-allocated character buffer (destination).
src A nul-terminated character string (source).

Definition at line 2133 of file vtkStringOps.h.

References Copy(), IsEmpty(), and vtkSizeType.

Referenced by Copy(), and ResolveURIReference().

vtkBoolType vtkStringOps::CreateDirectory const char *const &  dirName,
mode_t  mode
[inline, static]
 

Definition at line 4247 of file vtkStringOps.h.

References CreateDirectory(), FileDirname(), IsEmpty(), Mkdir(), Release(), VTK_FALSE, and vtkBoolType.

template<typename T>
vtkBoolType vtkStringOps::CreateDirectory const T *const &  dirName,
mode_t  mode
[inline, static]
 

Definition at line 4222 of file vtkStringOps.h.

References CreateDirectory(), FileDirname(), IsEmpty(), Mkdir(), Release(), VTK_FALSE, and vtkBoolType.

Referenced by CreateDirectory().

template<typename T>
T * vtkStringOps::CreateEmptyString void   )  [inline, static]
 

Returns a newly allocated empty string (a string array of length 1 containg a terminal nul character).

Exceptions:
bad_alloc Allocation of new string could throw.
Note:
The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed. You can call vtkStringOps::Release to release this returned buffer.

Definition at line 1874 of file vtkStringOps.h.

template<typename T>
T * vtkStringOps::Duplicate const T *const &  src  )  [inline, static]
 

Returns a copy of the given string.

Exceptions:
bad_alloc Allocation of new string could throw.
Note:
The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed. You can call vtkStringOps::Release to release this returned buffer.

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().

template<typename T>
vtkBoolType vtkStringOps::Equals const T *const &  str,
T const &  ch
[inline, static]
 

Compares two strings, returning true if equal or false if not.

Definition at line 2562 of file vtkStringOps.h.

References Equals(), IsEmpty(), VTK_FALSE, and VTK_TRUE.

template<typename T>
vtkBoolType vtkStringOps::Equals const T *const &  str1,
const vtkSSizeType  offset1,
const T *const &  str2,
const vtkSSizeType  offset2,
const vtkSizeType  length
[inline, static]
 

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.

template<typename T>
vtkBoolType vtkStringOps::Equals const T *const &  str1,
const T *const &  str2,
const vtkSizeType  length
[inline, static]
 

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.

template<typename T>
vtkBoolType vtkStringOps::Equals const T *const &  str1,
const T *const &  str2
[inline, static]
 

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().

template<typename T>
vtkBoolType vtkStringOps::EqualsI const T *const &  str,
T const &  ch
[inline, static]
 

Compares two strings, ignoring case, returning true if equal or false if not.

Definition at line 2663 of file vtkStringOps.h.

References EqualsI(), IsEmpty(), VTK_FALSE, and VTK_TRUE.

template<typename T>
vtkBoolType vtkStringOps::EqualsI const T *const &  str1,
const vtkSSizeType  offset1,
const T *const &  str2,
const vtkSSizeType  offset2,
const vtkSizeType  length
[inline, static]
 

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.

template<typename T>
vtkBoolType vtkStringOps::EqualsI const T *const &  str1,
const T *const &  str2,
const vtkSizeType  length
[inline, static]
 

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.

template<typename T>
vtkBoolType vtkStringOps::EqualsI const T *const &  str1,
const T *const &  str2
[inline, static]
 

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().

template<typename T>
T * vtkStringOps::FileDirname const T *const &  filename  )  [inline, static]
 

Returns newly allocated string containing filename directory part.

Definition at line 4044 of file vtkStringOps.h.

References Duplicate(), FileDirname(), IsEmpty(), LastIndexOf(), and SubString().

Referenced by CanWriteFile(), CreateDirectory(), and FileDirname().

vtkBoolType vtkStringOps::FileExists const char *const &  aPathName  )  [static, protected]
 

Referenced by CanWriteFile(), CheckDirectoryExists(), and CheckFileExists().

template<typename T>
T * vtkStringOps::FileExtension const T *const &  filename  )  [inline, static]
 

Returns newly allocated string containing filename extension.

Definition at line 4026 of file vtkStringOps.h.

References FileExtension(), FileTailPointer(), IsEmpty(), LastIndexOf(), and SubString().

Referenced by FileExtension().

template<typename T>
const T * vtkStringOps::FileExtensionPointer const T *const &  fileName  )  [inline, static]
 

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().

vtkBoolType vtkStringOps::FileIsDirectory const char *const &  aPathName  )  [static, protected]
 

Referenced by CanReadDirectory(), CanReadFile(), CanWriteDirectory(), CanWriteFile(), CheckDirectoryExists(), and CheckFileExists().

vtkBoolType vtkStringOps::FileIsReadable const char *const &  aPathName  )  [static, protected]
 

Referenced by CanReadDirectory(), and CanReadFile().

vtkBoolType vtkStringOps::FileIsWritable const char *const &  aPathName  )  [static, protected]
 

Referenced by CanWriteDirectory(), and CanWriteFile().

template<typename T>
T * vtkStringOps::FileJoin const T **const &  list,
vtkBoolType  absolute = VTK_TRUE
[inline, static]
 

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.

template<typename T>
T * vtkStringOps::FileJoin const T *const &  head,
const T *const &  tail
[inline, static]
 

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().

template<typename T>
T * vtkStringOps::FileRootname const T *const &  filename  )  [inline, static]
 

Returns newly allocated string containing filename root.

Definition at line 3970 of file vtkStringOps.h.

References Duplicate(), FileRootname(), IsEmpty(), LastIndexOf(), Length(), SubString(), and vtkSizeType.

Referenced by FileRootname(), and GetRelativePrefix().

template<typename T>
const T * vtkStringOps::FileTailPointer const T *const &  fileName  )  [inline, static]
 

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().

template<typename T>
const T * vtkStringOps::FindAny const T *const &  test,
const T *const &  searchList
[inline, static]
 

Tests if a string has any occurance of the characters of another string within itself.

Parameters:
test The string to be searched.
searchList The sub-string containing characters to be sought within the string.
Returns:
Pointer to the location where the sub-string component was found on success, otherwise NULL.

Definition at line 2754 of file vtkStringOps.h.

References FindAny().

Referenced by FindAny().

template<typename T>
int vtkStringOps::FindSubString const T *const &  test,
const T *const &  subStr
[inline, static]
 

Tells if a string contains the specified sub-string pattern within itself.

Parameters:
test The string to be searched
subStr The sub-string sought within the string
Returns:
Index to the location where the first occurance of the sub-string was found on success, otherwise -1.

Definition at line 2777 of file vtkStringOps.h.

References FindSubString(), IsEmpty(), Length(), and vtkSizeType.

Referenced by FindSubString().

char * vtkStringOps::GetCWD void   )  [inline, static]
 

Get the current working directory.

Definition at line 4301 of file vtkStringOps.h.

Referenced by GetCWD().

vtkBoolType vtkStringOps::GetCWD char **  buffer  )  [inline, static]
 

Get the current working directory.

Definition at line 4271 of file vtkStringOps.h.

References GetCWD(), Release(), VTK_FALSE, and vtkSizeType.

vtkBoolType vtkStringOps::GetCWD char *  buffer,
vtkSizeType  size
[static]
 

Get the current working directory.

template<typename T>
T * vtkStringOps::GetRelativeDirPrefix const T *const &  dirName,
const T *const &  rootPath,
T **const &  pfxResult = (T **) 0
[inline, static]
 

Gets the file prefix of fileName relative to rootPath.

Returns:
The relative file prefix or, if there is no way to make a relative path, the absolute path or, if an exception occurs internally, null.

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().

template<typename T>
T * vtkStringOps::GetRelativePrefix const T *const &  fileName,
const T *const &  rootPath
[inline, static]
 

Gets the file prefix of fileName relative to rootPath.

Returns:
The relative file prefix or, if there is no way to make a relative path, the absolute path or, if an exception occurs internally, null.

Definition at line 4466 of file vtkStringOps.h.

References FileRootname(), GetRelativePrefix(), IsPrefix(), Length(), Move(), Release(), and vtkSSizeType.

Referenced by GetRelativePrefix().

template<typename T>
vtkUint32Type vtkStringOps::Hash const T *const &  str,
const vtkSizeType  modulus
[inline, static]
 

Hashes a string.

Definition at line 3923 of file vtkStringOps.h.

References Hash(), IsNull(), and VTK_FALSE.

template<typename T>
vtkUint32Type vtkStringOps::Hash const T *const &  a  )  [inline, static]
 

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().

template<typename T>
vtkUint32Type vtkStringOps::HashN const T *const &  str,
const vtkSizeType  n,
const vtkSizeType  modulus
[inline, static]
 

Hashes a substring of a specified length from the beginning.

Definition at line 3945 of file vtkStringOps.h.

References HashN(), IsNull(), and VTK_FALSE.

template<typename T>
vtkUint32Type vtkStringOps::HashN const T *const &  a,
const vtkSizeType  n
[inline, static]
 

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().

template<typename T>
int vtkStringOps::IndexNotOf const T *const &  str,
const T  ch,
const vtkSizeType  from
[inline, static]
 

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.

template<typename T>
int vtkStringOps::IndexNotOf const T *const &  str,
const T  ch
[inline, static]
 

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().

template<typename T>
int vtkStringOps::IndexOf const T *const &  str,
const T  ch,
const vtkSizeType  from
[inline, static]
 

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.

template<typename T>
int vtkStringOps::IndexOf const T *const &  str,
const T  ch
[inline, static]
 

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().

template<typename T>
vtkBoolType vtkStringOps::IsAbsoluteURI const T *  uri  )  [inline, static]
 

Definition at line 3399 of file vtkStringOps.h.

References IsAbsoluteURI(), IsAlnum(), IsAlpha(), VTK_FALSE, and vtkBoolType.

Referenced by IsAbsoluteURI(), and ParseURI().

template<typename T>
vtkBoolType vtkStringOps::IsAllWhiteSpace const T *const &  str,
int  len
[inline, static]
 

Returns whether string is composed wholly of whitespace char.

Parameters:
str A character string (may not be nul-terminated).
len The maximum length of the character string to test.

Definition at line 1988 of file vtkStringOps.h.

References IsAllWhiteSpace(), IsWhiteSpace(), VTK_FALSE, and VTK_TRUE.

template<typename T>
vtkBoolType vtkStringOps::IsAllWhiteSpace const T *const &  str  )  [inline, static]
 

Returns whether string is composed wholly of whitespace char.

Parameters:
str A nul-terminated character string.

Definition at line 1951 of file vtkStringOps.h.

References IsAllWhiteSpace(), IsWhiteSpace(), Length(), VTK_FALSE, VTK_TRUE, and vtkSizeType.

Referenced by IsAllWhiteSpace().

template<typename T>
vtkBoolType vtkStringOps::IsAlnum T const &  ch  )  [inline, static]
 

Test for alphabetic or numeric character.

Definition at line 1402 of file vtkStringOps.h.

References IsAlnum(), IsAlpha(), and IsDigit().

Referenced by IsAbsoluteURI(), and IsAlnum().

template<typename T>
vtkBoolType vtkStringOps::IsAlpha T const &  ch  )  [inline, static]
 

Test for alphabetic character.

Definition at line 1309 of file vtkStringOps.h.

References IsAlpha(), IsLower(), and IsUpper().

Referenced by IsAbsoluteURI(), IsAlnum(), and IsAlpha().

vtkBoolType vtkStringOps::IsBaseChar unsigned char const &  ch  )  [inline, static]
 

Test for base character.

Definition at line 1744 of file vtkStringOps.h.

References IsBaseChar(), VTK_FALSE, and VTK_TRUE.

vtkBoolType vtkStringOps::IsBaseChar char const &  ch  )  [inline, static]
 

Test for base character.

Definition at line 1735 of file vtkStringOps.h.

References IsBaseChar(), VTK_FALSE, and VTK_TRUE.

template<typename T>
vtkBoolType vtkStringOps::IsBaseChar T const &  ch  )  [inline, static]
 

Test for base character.

Definition at line 1526 of file vtkStringOps.h.

References IsBaseChar(), VTK_FALSE, and VTK_TRUE.

Referenced by IsBaseChar(), and IsLetter().

vtkBoolType vtkStringOps::IsChar unsigned char const &  ch  )  [inline, static]
 

Test for character.

As per W3C XML 1.0 REC.

Definition at line 1269 of file vtkStringOps.h.

References IsChar(), and IsLatin1().

vtkBoolType vtkStringOps::IsChar char const &  ch  )  [inline, static]
 

Test for character.

As per W3C XML 1.0 REC.

Definition at line 1263 of file vtkStringOps.h.

References IsChar(), and IsLatin1().

template<typename T>
vtkBoolType vtkStringOps::IsChar T const &  ch  )  [inline, static]
 

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().

vtkBoolType vtkStringOps::IsCombiningChar unsigned char const &  ch  )  [inline, static]
 

Test for combining character.

Definition at line 1518 of file vtkStringOps.h.

References IsCombiningChar(), and VTK_FALSE.

vtkBoolType vtkStringOps::IsCombiningChar char const &  ch  )  [inline, static]
 

Test for combining character.

Definition at line 1512 of file vtkStringOps.h.

References IsCombiningChar(), and VTK_FALSE.

template<typename T>
vtkBoolType vtkStringOps::IsCombiningChar T const &  ch  )  [inline, static]
 

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().

vtkBoolType vtkStringOps::IsDigit unsigned char const &  ch  )  [inline, static]
 

Test for decimal digit character.

Definition at line 1346 of file vtkStringOps.h.

References IsDigit(), VTK_FALSE, and VTK_TRUE.

vtkBoolType vtkStringOps::IsDigit char const &  ch  )  [inline, static]
 

Test for decimal digit character.

Definition at line 1339 of file vtkStringOps.h.

References IsDigit(), VTK_FALSE, and VTK_TRUE.

template<typename T>
vtkBoolType vtkStringOps::IsDigit T const &  ch  )  [inline, static]
 

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().

template<typename T>
vtkBoolType vtkStringOps::IsEmpty const T *const &  str  )  [inline, static]
 

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().

vtkBoolType vtkStringOps::IsExtender unsigned char const &  ch  )  [inline, static]
 

Test for extender character.

Definition at line 1814 of file vtkStringOps.h.

References IsExtender().

vtkBoolType vtkStringOps::IsExtender char const &  ch  )  [inline, static]
 

Test for extender character.

Definition at line 1808 of file vtkStringOps.h.

References IsExtender(), and VTK_FALSE.

template<typename T>
vtkBoolType vtkStringOps::IsExtender T const &  ch  )  [inline, static]
 

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().

vtkBoolType vtkStringOps::IsHexDigit unsigned char const &  ch  )  [inline, static]
 

Test for hexidecimal digit character.

Definition at line 1387 of file vtkStringOps.h.

References IsHexDigit(), VTK_FALSE, and VTK_TRUE.

vtkBoolType vtkStringOps::IsHexDigit char const &  ch  )  [inline, static]
 

Test for hexidecimal digit character.

Definition at line 1374 of file vtkStringOps.h.

References IsHexDigit(), VTK_FALSE, and VTK_TRUE.

template<typename T>
vtkBoolType vtkStringOps::IsHexDigit T const &  ch  )  [inline, static]
 

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().

vtkBoolType vtkStringOps::IsIdeographic unsigned char const &  ch  )  [inline, static]
 

Test for ideographic character.

Definition at line 1774 of file vtkStringOps.h.

References IsIdeographic(), and VTK_FALSE.

vtkBoolType vtkStringOps::IsIdeographic char const &  ch  )  [inline, static]
 

Test for ideographic character.

Definition at line 1768 of file vtkStringOps.h.

References IsIdeographic(), and VTK_FALSE.

template<typename T>
vtkBoolType vtkStringOps::IsIdeographic T const &  ch  )  [inline, static]
 

Test for ideographic character.

Definition at line 1758 of file vtkStringOps.h.

References IsIdeographic(), VTK_FALSE, and VTK_TRUE.

Referenced by IsIdeographic(), and IsLetter().

vtkBoolType vtkStringOps::IsLatin1 unsigned char const &  ch  )  [inline, static]
 

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.

vtkBoolType vtkStringOps::IsLatin1 char const &  ch  )  [inline, static]
 

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.

template<typename T>
vtkBoolType vtkStringOps::IsLatin1 T const &  ch  )  [inline, static]
 

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().

template<typename T>
vtkBoolType vtkStringOps::IsLetter T const &  ch  )  [inline, static]
 

Test for letter character.

Definition at line 1782 of file vtkStringOps.h.

References IsBaseChar(), IsIdeographic(), and IsLetter().

Referenced by IsLetter(), IsNameChar(), and IsNCNameChar().

template<typename T>
vtkBoolType vtkStringOps::IsLower T const &  ch  )  [inline, static]
 

Test for lower case character.

Definition at line 1300 of file vtkStringOps.h.

References IsLower(), VTK_FALSE, and VTK_TRUE.

Referenced by IsAlpha(), and IsLower().

template<typename T>
vtkBoolType vtkStringOps::IsMemberOf T const &  ch,
const T *const &  set
[inline, static]
 

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().

template<typename T>
vtkBoolType vtkStringOps::IsNameChar T const &  ch  )  [inline, static]
 

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().

template<typename T>
vtkBoolType vtkStringOps::IsNCNameChar T const &  ch  )  [inline, static]
 

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().

template<typename T>
vtkBoolType vtkStringOps::IsNull const T *const &  str  )  [inline, static]
 

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().

template<typename T>
vtkBoolType vtkStringOps::IsPrefix const T *const &  test,
const T *const &  prefix
[inline, static]
 

Tests if the prefix appears at the beginning of the test string.

Parameters:
test The string to test
prefix The sub-string that needs to be checked.
Returns:
true if the sub-string was found at the beginning of test, otherwise false.

Definition at line 2732 of file vtkStringOps.h.

References Compare(), IsPrefix(), and Length().

Referenced by GetRelativePrefix(), and IsPrefix().

template<typename T>
vtkBoolType vtkStringOps::IsPubidChar T const &  ch  )  [inline, static]
 

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().

template<typename T>
vtkBoolType vtkStringOps::IsSpace T const &  ch  )  [inline, static]
 

Test for a space.

Definition at line 1209 of file vtkStringOps.h.

References IsSpace(), VTK_FALSE, and VTK_TRUE.

Referenced by IsSpace().

template<typename T>
vtkBoolType vtkStringOps::IsSuffix const T *const &  test,
const T *const &  suffix
[inline, static]
 

Tests if the suffix appears at the end of the test string.

Parameters:
test The string to test.
suffix The sub-string that needs to be checked.
Returns:
true if the sub-string was found at the end of test, otherwise false.

Definition at line 2741 of file vtkStringOps.h.

References Equals(), IsSuffix(), Length(), and vtkSizeType.

Referenced by IsSuffix().

template<typename T>
vtkBoolType vtkStringOps::IsUpper T const &  ch  )  [inline, static]
 

Test for upper case character.

Definition at line 1291 of file vtkStringOps.h.

References IsUpper(), VTK_FALSE, and VTK_TRUE.

Referenced by IsAlpha(), and IsUpper().

template<typename T>
vtkBoolType vtkStringOps::IsWhiteSpace T const &  ch  )  [inline, static]
 

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().

template<typename T>
int vtkStringOps::LastIndexNotOf const T *const &  str,
const T  ch,
const vtkSizeType  from
[inline, static]
 

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.

template<typename T>
int vtkStringOps::LastIndexNotOf const T *const &  str,
const T  ch
[inline, static]
 

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().

template<typename T>
int vtkStringOps::LastIndexOf const T *const &  str,
const T  ch,
const vtkSizeType  from
[inline, static]
 

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.

template<typename T>
int vtkStringOps::LastIndexOf const T *const &  str,
const T  ch
[inline, static]
 

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().

vtkUTF16ChType* vtkStringOps::Latin1toUTF16 const char *const &  str  )  [static]
 

Converts string from one encoding to another.

Note:
The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when no longer needed. You can call vtkStringOps::Release to release this returned buffer.

Referenced by Transcode().

vtkUTF8ChType* vtkStringOps::Latin1toUTF8 const char *const &  str  )  [static]
 

Converts string from one encoding to another.

Note:
The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when no longer needed. You can call vtkStringOps::Release to release this returned buffer.

template<typename T>
vtkSizeType vtkStringOps::Length const T *const &  str  )  [inline, static]
 

Returns the length of the string.

Parameters:
str A nul-terminated character 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().

void* vtkStringOps::Memccpy void *const  dstPtr,
const void *const  srcPtr,
int  endValue,
vtkSizeType  numBytes
[static, protected]
 

void* vtkStringOps::Memchr void *const  ptr,
int  value,
vtkSizeType  numBytes
[static, protected]
 

int vtkStringOps::Memcmp const void *const  ptr1,
const void *const  ptr2,
vtkSizeType  numBytes
[static, protected]
 

Referenced by Compare().

void* vtkStringOps::Memcpy void *const  dstPtr,
const void *const  srcPtr,
vtkSizeType  numBytes
[static, protected]
 

Referenced by Duplicate().

void* vtkStringOps::Memmove void *const  dstPtr,
const void *const  srcPtr,
vtkSizeType  numBytes
[static, protected]
 

Referenced by Move().

void* vtkStringOps::Memset void *const  ptr,
int  value,
vtkSizeType  numBytes
[static, protected]
 

vtkBoolType vtkStringOps::Mkdir const char *const &  dirName,
mode_t  mode
[static, protected]
 

Referenced by CreateDirectory().

template<typename T>
void vtkStringOps::Move T *const &  dst,
const T *const &  src,
const vtkSizeType  length
[inline, static]
 

Fixed size string movement.

Parameters:
dst The string to copy the chars to
src The string to copy the chars from
length The number of chars to move

Definition at line 2370 of file vtkStringOps.h.

References Memmove(), and Move().

Referenced by GetRelativePrefix(), and Move().

template<typename T>
vtkBoolType vtkStringOps::ParseBoolean const T *const &  str  )  [inline, static]
 

Converts a character string to a boolean value.

Exceptions:
bad_alloc Internal use of Duplicate could throw.

Definition at line 3138 of file vtkStringOps.h.

References Duplicate(), IsEmpty(), IsHexDigit(), Length(), ParseBoolean(), Trim(), VTK_FALSE, VTK_TRUE, and vtkSizeType.

Referenced by ParseBoolean().

template<typename T>
double vtkStringOps::ParseDouble const T *const &  str  )  [inline, static]
 

Converts a string of decimal chars to a double-precision float.

Exceptions:
bad_alloc Internal use of Duplicate could throw.

Definition at line 3059 of file vtkStringOps.h.

References ParseDouble(), and ParseDoubleVec().

Referenced by ParseDouble().

template<typename T>
int vtkStringOps::ParseDoubleVec const T *const &  str,
unsigned int  len,
double *  data
[inline, static]
 

Parses a space-delimited series of double values.

Parameters:
str Pointer to the character string to be parsed.
len Number of values that the passed data buffer can contain.
data Pointer to a buffer to hold the parsed values.
Returns:
The number of values parsed or 0 on failure.
Exceptions:
bad_alloc Internal use of Duplicate could throw.

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().

template<typename T>
float vtkStringOps::ParseFloat const T *const &  str  )  [inline, static]
 

Converts a string of decimal chars to a double-precision float.

Exceptions:
bad_alloc Internal use of Duplicate could throw.

Definition at line 2991 of file vtkStringOps.h.

References ParseFloat(), and ParseFloatVec().

Referenced by ParseFloat().

template<typename T>
int vtkStringOps::ParseFloatVec const T *const &  str,
unsigned int  len,
float *  data
[inline, static]
 

Parses a space-delimited series of float values.

Parameters:
str Pointer to the character string to be parsed.
len Number of values that the passed data buffer can contain.
data Pointer to a buffer to hold the parsed values.
Returns:
The number of values parsed or 0 on failure.
Exceptions:
bad_alloc Internal use of Duplicate could throw.

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().

template<typename T>
int vtkStringOps::ParseInt const T *const &  str  )  [inline, static]
 

Converts a string of decimal chars to a signed long int.

Exceptions:
bad_alloc Internal use of Duplicate could throw.

Definition at line 2923 of file vtkStringOps.h.

References ParseInt(), and ParseIntVec().

Referenced by ParseInt().

template<typename T>
int vtkStringOps::ParseIntVec const T *const &  str,
unsigned int  len,
int *  data
[inline, static]
 

Parses a space-delimited series of int values.

Parameters:
str Pointer to the character string to be parsed.
len Number of values that the passed data buffer can contain.
data Pointer to a buffer to hold the parsed values.
Returns:
The number of values parsed or 0 on failure.
Exceptions:
bad_alloc Internal use of Duplicate could throw.

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().

template<typename T>
unsigned int vtkStringOps::ParseUint const T *const &  str  )  [inline, static]
 

Converts a string of decimal chars to an unsigned long int.

Exceptions:
bad_alloc Internal use of Duplicate could throw.

Definition at line 3128 of file vtkStringOps.h.

References ParseUint(), and ParseUintVec().

Referenced by ParseUint().

template<typename T>
int vtkStringOps::ParseUintVec const T *const &  str,
unsigned int  len,
unsigned int *  data
[inline, static]
 

Parses a space-delimited series of unsigned int values.

Parameters:
str Pointer to the character string to be parsed.
len Number of values that the passed data buffer can contain.
data Pointer to a buffer to hold the parsed values.
Returns:
The number of values parsed or 0 on failure.
Exceptions:
bad_alloc Internal use of Duplicate could throw.

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().

template<typename T>
void vtkStringOps::ParseURI const T *  uri,
T *  buffer,
const vtkSizeType  bufLen,
T **  scheme,
T **  authority,
T **  path,
T **  query,
T **  fragment
[inline, static]
 

Split a URI(-ref) into several string components.

Parameters:
uri: The URI string to split
buffer: Destination buffer
bufLen: Destination buffer length
scheme: Pointer to buffer for scheme component
authority: Pointer to buffer for URI authority (such as hostname)
path: Pointer to buffer for path component
query: Pointer to buffer for query string
fragment: Pointer to buffer for URI-reference fragment

Definition at line 3427 of file vtkStringOps.h.

References IsAbsoluteURI(), and ParseURI().

Referenced by ParseURI(), and ResolveURIReference().

template<typename T>
void vtkStringOps::Release T ***const &   )  [inline, static]
 

Release an array of strings allocated by the implementation.

Definition at line 4594 of file vtkStringOps.h.

References Release().

template<typename T>
void vtkStringOps::Release T **const &   )  [inline, static]
 

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().

template<typename T>
void vtkStringOps::ResolveURIReference const T *  baseURI,
const T *  referenceURI,
T *  buffer,
const vtkSizeType  bufLen
[inline, static]
 

Resolve a URI to a base URI.

Parameters:
baseURI: Base URI string
referenceURI: Reference URI string
buffer: Destination buffer URI
bufLen: Length of destination buffer
Exceptions:
bad_alloc Internal uses of new could throw.

Definition at line 3533 of file vtkStringOps.h.

References Concatenate(), Copy(), IsNull(), LastIndexOf(), Length(), ParseURI(), ResolveURIReference(), and VTK_FALSE.

Referenced by ResolveURIReference().

double vtkStringOps::Strtod const char *  str,
char **  end
[static, protected]
 

Referenced by ParseDoubleVec(), and ParseFloatVec().

long vtkStringOps::Strtol const char *  str,
char **  end,
int  base = 10
[static, protected]
 

Referenced by ParseIntVec().

unsigned long vtkStringOps::Strtoul const char *  str,
char **  end,
int  base = 10
[static, protected]
 

Referenced by ParseUintVec(), and TextToBin().

template<typename T>
void vtkStringOps::SubString T *const &  dst,
const T *const &  src,
const int  start,
const int  end
[inline, static]
 

Create a substring of the given string.

Parameters:
dst Destination buffer for the substring.
src Source buffer from which the substring is to be extracted.
start Index into the source buffer beginning the substring.
end Index into the source buffer one past the last character to be extracted into the substring.

Definition at line 2448 of file vtkStringOps.h.

References IsNull(), Length(), and SubString().

template<typename T>
void vtkStringOps::SubString T *const &  dst,
const T *const &  src,
const int  start
[inline, static]
 

Create a substring of the given string.

Parameters:
dst Destination buffer for the substring.
src Source buffer from which the substring is to be extracted.
start Index into the source buffer beginning the substring.
Note:
The substring will contain those characters starting from the start index to the end of the src buffer.

Definition at line 2426 of file vtkStringOps.h.

References IsNull(), Length(), and SubString().

template<typename T>
T * vtkStringOps::SubString const T *const &  src,
const int  start,
const int  end
[inline, static]
 

Returns a substring of the given string.

Parameters:
src Source buffer from which the substring is to be extracted.
start Index into the source buffer beginning the substring.
end Index into the source buffer one past the last character to be extracted into the substring.
Exceptions:
bad_alloc Allocation of new string could throw.
Note:
The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed. You can call vtkStringOps::Release to release this returned buffer.

Definition at line 2402 of file vtkStringOps.h.

References Length(), and SubString().

template<typename T>
T * vtkStringOps::SubString const T *const &  src,
const int  start
[inline, static]
 

Returns a substring of the given string.

Parameters:
src Source buffer from which the substring is to be extracted.
start Index into the source buffer beginning the substring.
Exceptions:
bad_alloc Allocation of new string could throw.
Note:
The substring will contain those characters starting from the start index to the end of the src buffer.

The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed. You can call vtkStringOps::Release to release this returned buffer.

Definition at line 2380 of file vtkStringOps.h.

References Length(), and SubString().

Referenced by FileDirname(), FileExtension(), FileRootname(), SubString(), and Tokenize().

template<typename T>
vtkBoolType vtkStringOps::TextToBin const T *const &  ,
unsigned int & 
[inline, static]
 

Converts a string of decimal chars to a binary value.

Exceptions:
bad_alloc Internal use of Duplicate could throw.
Note:
Leading and trailng whitespace is legal and will be ignored but the remainder must be all decimal digits.

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().

template<typename T>
T ** vtkStringOps::Tokenize const T *const &  src,
const T *const &  delimiters,
unsigned int  maxTokens = 128
[inline, static]
 

Definition at line 3344 of file vtkStringOps.h.

References Duplicate(), IsMemberOf(), Length(), SubString(), Tokenize(), and VTK_FALSE.

template<typename T>
T ** vtkStringOps::Tokenize const T *const &  src,
unsigned int  maxTokens = 128
[inline, static]
 

Break a string into tokens with whitespace as delimiter, and stored in an array of strings.

Exceptions:
bad_alloc Internal use of Duplicate could throw.
Note:
The caller is responsible for deleting the array of strings as well as the strings themselves.

Definition at line 3292 of file vtkStringOps.h.

References Duplicate(), IsWhiteSpace(), Length(), SubString(), Tokenize(), and VTK_FALSE.

Referenced by GetRelativeDirPrefix(), and Tokenize().

template<typename T>
T * vtkStringOps::ToLower const T *const &  a  )  [inline, static]
 

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().

template<typename T>
T * vtkStringOps::ToUpper const T *const &  a  )  [inline, static]
 

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().

vtkBoolType vtkStringOps::Transcode const vtkUTF8ChType *const &  in,
vtkUTF16ChType **  out,
const int  max
[static]
 

vtkBoolType vtkStringOps::Transcode const char *const &  in,
vtkUTF16ChType **  out,
const int  max
[static]
 

vtkBoolType vtkStringOps::Transcode const vtkUTF16ChType *const &  in,
vtkUTF8ChType **  out,
const int  max
[static]
 

vtkBoolType vtkStringOps::Transcode const char *const &  in,
vtkUTF8ChType **  out,
const int  max
[static]
 

vtkBoolType vtkStringOps::Transcode const vtkUTF16ChType *const &  in,
char **  out,
const int  max
[static]
 

vtkBoolType vtkStringOps::Transcode const vtkUTF8ChType *const &  in,
char **  out,
const int  max
[static]
 

vtkUTF16ChType * vtkStringOps::Transcode const char *  const  )  [inline, static]
 

Transcodes a string to/from the Latin-1 code-page.

Note:
The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed. You can call vtkStringOps::Release to release this returned buffer.

Definition at line 1203 of file vtkStringOps.h.

References Latin1toUTF16(), and Transcode().

char * vtkStringOps::Transcode const vtkUTF16ChType const  )  [inline, static]
 

Transcodes a string to/from the Latin-1 code-page.

Note:
The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed. You can call vtkStringOps::Release to release this returned buffer.

Definition at line 1199 of file vtkStringOps.h.

References Transcode(), and UTF16toLatin1().

char * vtkStringOps::Transcode const vtkUTF8ChType const  )  [inline, static]
 

Transcodes a string to/from the Latin-1 code-page.

Note:
The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed. You can call vtkStringOps::Release to release this returned buffer.

Definition at line 1195 of file vtkStringOps.h.

References Transcode(), and UTF8toLatin1().

Referenced by Transcode().

template<typename T>
void vtkStringOps::Trim T *const &  str  )  [inline, static]
 

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().

char* vtkStringOps::UCS2toUTF7 const vtkUCS2ChType *const &  str  )  [static]
 

Converts between UCS-2 and UTF-7 string encodings.

Note:
The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed. You can call vtkStringOps::Release to release the returned buffer.

char* vtkStringOps::UTF16toLatin1 const vtkUTF16ChType *const &  str  )  [static]
 

Converts string from one encoding to another.

Note:
The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when no longer needed. You can call vtkStringOps::Release to release this returned buffer.

Referenced by Transcode().

vtkUTF8ChType* vtkStringOps::UTF16toUTF8 const vtkUTF16ChType *const &  str  )  [static]
 

Converts string from one encoding to another.

Note:
The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when no longer needed. You can call vtkStringOps::Release to release this returned buffer.

vtkUCS2ChType* vtkStringOps::UTF7toUCS2 const char *const &  str  )  [static]
 

Converts between UCS-2 and UTF-7 string encodings.

Note:
The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed. You can call vtkStringOps::Release to release the returned buffer.

char* vtkStringOps::UTF8toLatin1 const vtkUTF8ChType *const &  str  )  [static]
 

Converts string from one encoding to another.

Note:
The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when no longer needed. You can call vtkStringOps::Release to release this returned buffer.

Referenced by Transcode().

vtkUTF16ChType* vtkStringOps::UTF8toUTF16 const vtkUTF8ChType *const &  str  )  [static]
 

Converts string from one encoding to another.

Note:
The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when no longer needed. You can call vtkStringOps::Release to release this returned buffer.

template<typename T>
vtkBoolType vtkStringOps::ValidateRegion const T *const &  str1,
const vtkSSizeType  offset1,
const T *const &  str2,
const vtkSSizeType  offset2,
const vtkSizeType  length
[inline, static]
 

Definition at line 2472 of file vtkStringOps.h.

References Length(), ValidateRegion(), VTK_FALSE, and VTK_TRUE.

Referenced by Equals(), EqualsI(), and ValidateRegion().


The documentation for this class was generated from the following file:
Generated on Tue Aug 10 03:44:51 2004 for vtkExtensions by doxygen 1.3.7