#include <UT_String.h>

Public Types | |
| enum | UT_AlwaysDeepType { ALWAYS_DEEP } |
Public Member Functions | |
| UT_String (const char *str=0, int deepCopy=0, int len=-1) | |
| UT_String (UT_AlwaysDeepType, const char *str=0) | |
| UT_String (const UT_String &str) | |
| ~UT_String () | |
| void | setAlwaysDeep (bool deep) |
| bool | isAlwaysDeep () const |
| void | swap (UT_String &other) |
| void | harden () |
| void | harden (const char *s, int len=-1) |
| void | hardenIfNeeded () |
| void | hardenIfNeeded (const char *s) |
| bool | isHard () const |
| char * | steal (void) |
| void | adopt (char *s) |
| void | adopt (UT_String &str) |
| void | saveBinary (ostream &os) const |
| void | saveAscii (ostream &os) const |
| bool | load (UT_IStream &is) |
| void | save (ostream &os, int binary) const |
| void | clear () |
| void | prepend (const char *prefix) |
| void | prepend (char ch) |
| void | append (char ch) |
| UT_String & | operator= (const UT_String &str) |
| UT_String & | operator= (const char *str) |
| UT_String & | operator+= (const char *str) |
| UT_String & | operator+= (const UT_String &str) |
| unsigned | operator== (const char *str) const |
| unsigned | operator== (const UT_String &str) const |
| unsigned | operator!= (const char *str) const |
| unsigned | operator!= (const UT_String &str) const |
| unsigned | operator< (const char *str) const |
| unsigned | operator< (const UT_String &str) const |
| unsigned | operator<= (const char *str) const |
| unsigned | operator<= (const UT_String &str) const |
| unsigned | operator> (const char *str) const |
| unsigned | operator> (const UT_String &str) const |
| unsigned | operator>= (const char *str) const |
| unsigned | operator>= (const UT_String &str) const |
| operator const char * () const | |
| operator char * () | |
| const char * | buffer () const |
| const char * | nonNullBuffer () const |
| char | operator() (unsigned i) const |
| char & | operator() (unsigned i) |
| int | toInt () const |
| fpreal | toFloat () const |
| std::string | toStdString () const |
| unsigned | length (void) const |
| int64 | getMemoryUsage () const |
| char * | findChar (int c) const |
| char * | findChar (const char *str) const |
| char * | findChar (const UT_String &str) const |
| char * | lastChar (int c) const |
| int | countChar (int c) const |
| char * | findNonSpace () const |
| const char * | findWord (const char *word) const |
| bool | findString (const char *str, bool fullword, bool usewildcards) const |
| int | changeWord (const char *from, const char *to, int all=1) |
| int | changeString (const char *from, const char *to, bool fullword) |
| int | changeQuotedWord (const char *from, const char *to, int quote= '`', int all=1) |
| int | findLongestCommonSuffix (const char *with) |
| int | substr (UT_String &buf, int index, int len=0) const |
| unsigned | isFloat (int skip_spaces=0, int loose=0) const |
| unsigned | isInteger (int skip_spaces=0) const |
| void | toUpper () |
| void | toLower () |
| const char * | fileName () const |
| const char * | fileExtension () const |
| UT_String | pathUpToExtension () const |
| void | splitPath (UT_String &dir_name, UT_String &file_name) const |
| int | parseNumberedFilename (UT_String &prefix, UT_String &frame, UT_String &suff, bool negative=true, bool fractional=false) const |
| int | isstring () const |
| int | trimSpace (bool leaveSingleSpaceBetweenWords=false) |
| int | trimBoundingSpace () |
| int | strip (const char *chars) |
| void | protectString () |
| bool | isQuotedString (char delimiter='\'') const |
| UT_String | makeQuotedString (char delimiter='\'') const |
| UT_String | makeSmartQuotedString (char default_delimiter='\'') const |
| void | expandControlSequences () |
| bool | hasWhiteSpace () const |
| void | removeTrailingSpace () |
| void | removeTrailingDigits () |
| int | cshParse (char *argv[], int maxArgs, void(*vlookup)(const char *, UT_String &)=UTvarLookup, void(*elookup)(const char *, UT_String &)=UTexprLookup, int *error=0, UT_StringCshIO *io=0) |
| int | cshParse (UT_WorkArgs &argv, void(*vlookup)(const char *, UT_String &)=UTvarLookup, void(*elookup)(const char *, UT_String &)=UTexprLookup, int *error=0, UT_StringCshIO *io=0) |
| int | dosParse (UT_WorkArgs &argv) |
| int | dosParse (char *argv[], int maxArgs) |
| int | parse (char *argv[], int maxArgs) |
| int | parseInPlace (char *argv[], int maxArgs) |
| int | parse (UT_WorkArgs &argv) |
| int | parseInPlace (UT_WorkArgs &argv) |
| int | tokenize (char *argv[], int maxArgs, char separator) |
| int | tokenizeInPlace (char *argv[], int maxArgs, char separator) |
| int | tokenize (UT_WorkArgs &argv, char separator) |
| int | tokenizeInPlace (UT_WorkArgs &argv, char separator) |
| int | tokenize (char *argv[], int maxArgs, const char *separators=" \t\n") |
| int | tokenizeInPlace (char *argv[], int maxArgs, const char *separators=" \t\n") |
| int | tokenize (UT_WorkArgs &argv, const char *separators=" \t\n") |
| int | tokenizeInPlace (UT_WorkArgs &argv, const char *separators=" \t\n") |
| void | expandVariables () |
| unsigned | hash () const |
| unsigned | match (const char *pattern, int caseSensitive=1) const |
| unsigned | multiMatch (const char *pattern, int caseSensitive, char separator) const |
| unsigned | multiMatch (const char *pattern, int caseSensitive=1, const char *separators=", ", bool *explicitlyExcluded=0, int *matchIndex=0) const |
| unsigned | multiMatchRecord (const char *pattern, int maxpatterns, char *singles, int &nsingles, char **words, int &nwords, int case_sensitive=1, const char *separators=", ") const |
| bool | matchPattern (const UT_WorkArgs &pattern_args, bool assume_match=false) |
| unsigned | contains (const char *pattern, int caseSensitive=1) const |
| bool | startsWith (const char *prefix) const |
| bool | endsWith (const char *suffix) const |
| bool | endsWith (const char *suffix, bool case_sensitive) const |
| int | traversePattern (int max, void *data, int(*func)(int num, int sec, void *data), unsigned int(*secfunc)(int num, void *data)=0, int offset=0) const |
| const char * | fcontain (const char *pattern) const |
| bool | patternRename (const char *match_pattern, const char *replace) |
| UT_String * | base (void) const |
| const char * | suffix (void) const |
| void | incrementNumberedName () |
| ostream & | setFormat (ostream &os) |
| int | replacePrefix (const char *oldpref, const char *newpref) |
| int | replaceSuffix (const char *oldsuffix, const char *newsuffix) |
| int | expandArrays (char *names[], int max) |
| int | format (int cols) |
| int | substitute (const char *find, const char *replacement, bool all=true) |
| int | replace (int pos, int len, const char *str) |
| int | insert (int pos, const char *str) |
| void | itoa (int i) |
| void | utoa (int i) |
| void | itoa_pretty (int64 val) |
| int | sprintf (const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2 |
| int int | forceValidVariableName (const char *safechars=NULL) |
| bool | forceAlphaNumeric () |
| void | getRelativePath (const char *src_fullpath, const char *dest_fullpath) |
| bool | isAbsolutePath (bool file_path=false) const |
| bool | collapseAbsolutePath (bool file_path=false) |
| bool | truncateMiddle (int max_length) |
| void | extractModifiers (UT_String &modifiers) |
| bool | applyModifiers (const UT_String &modifiers) |
| bool | applyNextModifier (const char *mod, bool all) |
| UT_String | removeRange () |
Static Public Member Functions | |
| static unsigned | hash (const char *str, unsigned code=0) |
| static int | multiMatchCheck (const char *pattern) |
| static int | wildcardMatchCheck (const char *pattern) |
| static ostream & | setFormat (ostream &os, const char *fmt) |
| static int | compareNumberedString (const char *s1, const char *s2, bool case_sensitive=true) |
| static int | qsortCmpNumberedString (const void *v1, const void *v2) |
| static int | qsortCmpNumberedString (char *const *v1, char *const *v2) |
| static int | compareNumberedFilename (const char *s1, const char *s2, bool case_sensitive=false) |
| static int | qsortCmpNumberedFilename (const void *v1, const void *v2) |
| static int | qsortCmpNumberedFilename (char *const *v1, char *const *v2) |
| static int | itoa (char *str, int i) |
| static int | utoa (char *str, unsigned i) |
| static int | findLongestCommonPathPrefix (const char *fullpath1, int len1, const char *fullpath2, int len2) |
| static const UT_String & | getEmptyString () |
| static bool | isValidModifier (const char c, bool have_subst) |
| static int | findModifiers (const char *src) |
Friends | |
| UT_API ostream & | operator<< (ostream &os, const UT_String &d) |
CHOP/CHOP_Stair.C, CHOP/CHOP_Stair.h, DOP/DOP_GroupAndApply.C, DOP/DOP_GroupAndApply.h, FS/FS_Background.C, FS/FS_HomeHelper.C, OBJ/OBJ_WorldAlign.C, POP/POP_LocalForce.C, POP/POP_LocalForce.h, POP/POP_RadialBirth.C, POP/POP_RadialBirth.h, POP/POP_SpotLight.C, POP/POP_SpotLight.h, ROP/ROP_Dumper.C, ROP/ROP_Dumper.h, SIM/SIM_SolverSNOW.C, SOP/MSS_BrushHairLen.C, SOP/MSS_BrushHairLen.h, SOP/MSS_CustomBrushState.C, SOP/SOP_BlindData.C, SOP/SOP_BrushHairLen.h, SOP/SOP_CopRaster.C, SOP/SOP_CopRaster.h, SOP/SOP_DetailAttrib.C, SOP/SOP_DetailAttrib.h, SOP/SOP_Flatten.C, SOP/SOP_Flatten.h, SOP/SOP_GroupRename.C, SOP/SOP_GroupRename.h, SOP/SOP_HDKObject.C, SOP/SOP_HDKObject.h, SOP/SOP_PointWave.h, SOP/SOP_TimeCompare.C, SOP/SOP_TimeCompare.h, standalone/geo2voxel.C, VOP/VOP_Switch.C, VOP/VOP_Switch.h, and VRAY/VRAY_DemoFile.h.
Definition at line 52 of file UT_String.h.
| UT_String::UT_String | ( | const char * | str = 0, |
|
| int | deepCopy = 0, |
|||
| int | len = -1 | |||
| ) |
| UT_String::UT_String | ( | UT_AlwaysDeepType | , | |
| const char * | str = 0 | |||
| ) | [inline] |
Definition at line 64 of file UT_String.h.
| UT_String::UT_String | ( | const UT_String & | str | ) |
| UT_String::~UT_String | ( | ) |
| void UT_String::adopt | ( | UT_String & | str | ) | [inline] |
Definition at line 143 of file UT_String.h.
| void UT_String::adopt | ( | char * | s | ) | [inline] |
Definition at line 133 of file UT_String.h.
| void UT_String::append | ( | char | ch | ) |
| bool UT_String::applyModifiers | ( | const UT_String & | modifiers | ) |
loops through a modifier string created by extractModifiers
| [in] | modifiers | The modifiers to apply to this string; must start with a colon |
| bool UT_String::applyNextModifier | ( | const char * | mod, | |
| bool | all | |||
| ) |
implements a few csh-style modifiers.
| mod | pointer to a string starting with the modifier to apply. so, to apply a global substitute modifier :gs/l/r/ mod should be: s/l/r | |
| all | True if all possible modifications should be (recursively) performed. Otherwise, at most one modification is applied. |
| UT_String* UT_String::base | ( | void | ) | const |
| const char* UT_String::buffer | ( | ) | const [inline] |
Definition at line 327 of file UT_String.h.
| int UT_String::changeQuotedWord | ( | const char * | from, | |
| const char * | to, | |||
| int | quote = '`', |
|||
| int | all = 1 | |||
| ) |
| int UT_String::changeString | ( | const char * | from, | |
| const char * | to, | |||
| bool | fullword | |||
| ) |
| int UT_String::changeWord | ( | const char * | from, | |
| const char * | to, | |||
| int | all = 1 | |||
| ) |
| void UT_String::clear | ( | void | ) | [inline] |
Definition at line 159 of file UT_String.h.
| bool UT_String::collapseAbsolutePath | ( | bool | file_path = false |
) |
| static int UT_String::compareNumberedFilename | ( | const char * | s1, | |
| const char * | s2, | |||
| bool | case_sensitive = false | |||
| ) | [static] |
| static int UT_String::compareNumberedString | ( | const char * | s1, | |
| const char * | s2, | |||
| bool | case_sensitive = true | |||
| ) | [static] |
| unsigned UT_String::contains | ( | const char * | pattern, | |
| int | caseSensitive = 1 | |||
| ) | const |
| int UT_String::countChar | ( | int | c | ) | const |
| int UT_String::cshParse | ( | UT_WorkArgs & | argv, | |
| void(*)(const char *, UT_String &) | vlookup = UTvarLookup, |
|||
| void(*)(const char *, UT_String &) | elookup = UTexprLookup, |
|||
| int * | error = 0, |
|||
| UT_StringCshIO * | io = 0 | |||
| ) |
| int UT_String::cshParse | ( | char * | argv[], | |
| int | maxArgs, | |||
| void(*)(const char *, UT_String &) | vlookup = UTvarLookup, |
|||
| void(*)(const char *, UT_String &) | elookup = UTexprLookup, |
|||
| int * | error = 0, |
|||
| UT_StringCshIO * | io = 0 | |||
| ) |
| int UT_String::dosParse | ( | char * | argv[], | |
| int | maxArgs | |||
| ) |
| int UT_String::dosParse | ( | UT_WorkArgs & | argv | ) |
| bool UT_String::endsWith | ( | const char * | suffix, | |
| bool | case_sensitive | |||
| ) | const |
| bool UT_String::endsWith | ( | const char * | suffix | ) | const |
| int UT_String::expandArrays | ( | char * | names[], | |
| int | max | |||
| ) |
| void UT_String::expandControlSequences | ( | ) |
| void UT_String::expandVariables | ( | ) |
| void UT_String::extractModifiers | ( | UT_String & | modifiers | ) |
Finds the first colon and extracts the modifier string. this string is truncated at the first colon.
| [out] | modifiers | Filled with the modifier string, which is everything after the first colon. |
| const char* UT_String::fcontain | ( | const char * | pattern | ) | const [inline] |
Definition at line 690 of file UT_String.h.
| const char* UT_String::fileExtension | ( | ) | const [inline] |
| const char* UT_String::fileName | ( | ) | const [inline] |
Definition at line 420 of file UT_String.h.
| char* UT_String::findChar | ( | const UT_String & | str | ) | const [inline] |
Definition at line 372 of file UT_String.h.
| char* UT_String::findChar | ( | const char * | str | ) | const [inline] |
Definition at line 370 of file UT_String.h.
| char* UT_String::findChar | ( | int | c | ) | const [inline] |
Definition at line 363 of file UT_String.h.
| static int UT_String::findLongestCommonPathPrefix | ( | const char * | fullpath1, | |
| int | len1, | |||
| const char * | fullpath2, | |||
| int | len2 | |||
| ) | [static] |
| int UT_String::findLongestCommonSuffix | ( | const char * | with | ) |
| static int UT_String::findModifiers | ( | const char * | src | ) | [static] |
will find all valid characters including modifiers and their preceding text
| char* UT_String::findNonSpace | ( | ) | const |
| bool UT_String::findString | ( | const char * | str, | |
| bool | fullword, | |||
| bool | usewildcards | |||
| ) | const |
| const char* UT_String::findWord | ( | const char * | word | ) | const |
| bool UT_String::forceAlphaNumeric | ( | ) |
| int int UT_String::forceValidVariableName | ( | const char * | safechars = NULL |
) |
| int UT_String::format | ( | int | cols | ) |
| static const UT_String& UT_String::getEmptyString | ( | ) | [static] |
| int64 UT_String::getMemoryUsage | ( | void | ) | const [inline] |
Definition at line 356 of file UT_String.h.
| void UT_String::getRelativePath | ( | const char * | src_fullpath, | |
| const char * | dest_fullpath | |||
| ) |
| void UT_String::harden | ( | const char * | s, | |
| int | len = -1 | |||
| ) |
| void UT_String::harden | ( | ) |
| void UT_String::hardenIfNeeded | ( | const char * | s | ) |
| void UT_String::hardenIfNeeded | ( | ) |
| static unsigned UT_String::hash | ( | const char * | str, | |
| unsigned | code = 0 | |||
| ) | [inline, static] |
Definition at line 602 of file UT_String.h.
| unsigned UT_String::hash | ( | ) | const [inline] |
Definition at line 597 of file UT_String.h.
| bool UT_String::hasWhiteSpace | ( | ) | const |
| void UT_String::incrementNumberedName | ( | ) |
| int UT_String::insert | ( | int | pos, | |
| const char * | str | |||
| ) | [inline] |
Definition at line 763 of file UT_String.h.
| bool UT_String::isAbsolutePath | ( | bool | file_path = false |
) | const |
| bool UT_String::isAlwaysDeep | ( | ) | const [inline] |
Definition at line 93 of file UT_String.h.
| unsigned UT_String::isFloat | ( | int | skip_spaces = 0, |
|
| int | loose = 0 | |||
| ) | const |
| bool UT_String::isHard | ( | ) | const [inline] |
Definition at line 106 of file UT_String.h.
| unsigned UT_String::isInteger | ( | int | skip_spaces = 0 |
) | const |
| bool UT_String::isQuotedString | ( | char | delimiter = '\'' |
) | const |
returns true if the string begins and ends with a (non-escaped) quote 'delimiter'.
| int UT_String::isstring | ( | ) | const [inline] |
Definition at line 470 of file UT_String.h.
| static bool UT_String::isValidModifier | ( | const char | c, | |
| bool | have_subst | |||
| ) | [static] |
| void UT_String::itoa | ( | int | i | ) |
| static int UT_String::itoa | ( | char * | str, | |
| int | i | |||
| ) | [static] |
| void UT_String::itoa_pretty | ( | int64 | val | ) |
| char* UT_String::lastChar | ( | int | c | ) | const [inline] |
Definition at line 374 of file UT_String.h.
| unsigned UT_String::length | ( | void | ) | const [inline] |
Definition at line 354 of file UT_String.h.
| bool UT_String::load | ( | UT_IStream & | is | ) |
| UT_String UT_String::makeQuotedString | ( | char | delimiter = '\'' |
) | const |
| UT_String UT_String::makeSmartQuotedString | ( | char | default_delimiter = '\'' |
) | const |
| unsigned UT_String::match | ( | const char * | pattern, | |
| int | caseSensitive = 1 | |||
| ) | const |
| bool UT_String::matchPattern | ( | const UT_WorkArgs & | pattern_args, | |
| bool | assume_match = false | |||
| ) |
matchPattern(UT_WorkArgs &) assumes that the arguments contain the components of a pattern to be matched against. The method returns true if the pattern matches, false if it doesn't. This matching process handles ^ expansion properly (and efficiently). If the string doesn't match any components of the pattern, then the assumed value is returned.
| unsigned UT_String::multiMatch | ( | const char * | pattern, | |
| int | caseSensitive = 1, |
|||
| const char * | separators = ", ", |
|||
| bool * | explicitlyExcluded = 0, |
|||
| int * | matchIndex = 0 | |||
| ) | const |
| unsigned UT_String::multiMatch | ( | const char * | pattern, | |
| int | caseSensitive, | |||
| char | separator | |||
| ) | const |
| static int UT_String::multiMatchCheck | ( | const char * | pattern | ) | [static] |
| unsigned UT_String::multiMatchRecord | ( | const char * | pattern, | |
| int | maxpatterns, | |||
| char * | singles, | |||
| int & | nsingles, | |||
| char ** | words, | |||
| int & | nwords, | |||
| int | case_sensitive = 1, |
|||
| const char * | separators = ", " | |||
| ) | const |
| const char* UT_String::nonNullBuffer | ( | ) | const [inline] |
Definition at line 329 of file UT_String.h.
| UT_String::operator char * | ( | ) | [inline] |
Definition at line 324 of file UT_String.h.
| UT_String::operator const char * | ( | ) | const [inline] |
Definition at line 322 of file UT_String.h.
| unsigned UT_String::operator!= | ( | const UT_String & | str | ) | const [inline] |
| unsigned UT_String::operator!= | ( | const char * | str | ) | const [inline] |
| char& UT_String::operator() | ( | unsigned | i | ) | [inline] |
Definition at line 337 of file UT_String.h.
| char UT_String::operator() | ( | unsigned | i | ) | const [inline] |
Definition at line 331 of file UT_String.h.
Definition at line 203 of file UT_String.h.
| UT_String& UT_String::operator+= | ( | const char * | str | ) | [inline] |
Definition at line 171 of file UT_String.h.
| unsigned UT_String::operator< | ( | const UT_String & | str | ) | const [inline] |
| unsigned UT_String::operator< | ( | const char * | str | ) | const [inline] |
| unsigned UT_String::operator<= | ( | const UT_String & | str | ) | const [inline] |
| unsigned UT_String::operator<= | ( | const char * | str | ) | const [inline] |
| UT_String& UT_String::operator= | ( | const char * | str | ) |
Reimplemented in UT_DeepString.
Reimplemented in UT_DeepString.
| unsigned UT_String::operator== | ( | const UT_String & | str | ) | const [inline] |
| unsigned UT_String::operator== | ( | const char * | str | ) | const [inline] |
| unsigned UT_String::operator> | ( | const UT_String & | str | ) | const [inline] |
| unsigned UT_String::operator> | ( | const char * | str | ) | const [inline] |
| unsigned UT_String::operator>= | ( | const UT_String & | str | ) | const [inline] |
| unsigned UT_String::operator>= | ( | const char * | str | ) | const [inline] |
| int UT_String::parse | ( | UT_WorkArgs & | argv | ) | [inline] |
Definition at line 558 of file UT_String.h.
| int UT_String::parse | ( | char * | argv[], | |
| int | maxArgs | |||
| ) | [inline] |
Definition at line 550 of file UT_String.h.
| int UT_String::parseInPlace | ( | UT_WorkArgs & | argv | ) |
| int UT_String::parseInPlace | ( | char * | argv[], | |
| int | maxArgs | |||
| ) |
| int UT_String::parseNumberedFilename | ( | UT_String & | prefix, | |
| UT_String & | frame, | |||
| UT_String & | suff, | |||
| bool | negative = true, |
|||
| bool | fractional = false | |||
| ) | const |
| UT_String UT_String::pathUpToExtension | ( | ) | const |
| bool UT_String::patternRename | ( | const char * | match_pattern, | |
| const char * | replace | |||
| ) |
| void UT_String::prepend | ( | char | ch | ) |
| void UT_String::prepend | ( | const char * | prefix | ) |
| void UT_String::protectString | ( | ) |
| static int UT_String::qsortCmpNumberedFilename | ( | char *const * | v1, | |
| char *const * | v2 | |||
| ) | [static] |
| static int UT_String::qsortCmpNumberedFilename | ( | const void * | v1, | |
| const void * | v2 | |||
| ) | [static] |
| static int UT_String::qsortCmpNumberedString | ( | char *const * | v1, | |
| char *const * | v2 | |||
| ) | [static] |
| static int UT_String::qsortCmpNumberedString | ( | const void * | v1, | |
| const void * | v2 | |||
| ) | [static] |
| UT_String UT_String::removeRange | ( | ) |
This will remove the range from a string of the form foo$Fbar.ext (#-#) and return the first number from the range. If there is only 1 range number, it will be returned. If there is no range, 0 is returned. The returned string is hardened.
| void UT_String::removeTrailingDigits | ( | ) |
| void UT_String::removeTrailingSpace | ( | ) |
| int UT_String::replace | ( | int | pos, | |
| int | len, | |||
| const char * | str | |||
| ) |
| int UT_String::replacePrefix | ( | const char * | oldpref, | |
| const char * | newpref | |||
| ) |
| int UT_String::replaceSuffix | ( | const char * | oldsuffix, | |
| const char * | newsuffix | |||
| ) |
| void UT_String::save | ( | ostream & | os, | |
| int | binary | |||
| ) | const |
| void UT_String::saveAscii | ( | ostream & | os | ) | const [inline] |
Definition at line 152 of file UT_String.h.
| void UT_String::saveBinary | ( | ostream & | os | ) | const [inline] |
Definition at line 151 of file UT_String.h.
| void UT_String::setAlwaysDeep | ( | bool | deep | ) | [inline] |
Definition at line 77 of file UT_String.h.
| ostream& UT_String::setFormat | ( | ostream & | os | ) |
| static ostream& UT_String::setFormat | ( | ostream & | os, | |
| const char * | fmt | |||
| ) | [static] |
| int UT_String::sprintf | ( | const char * | fmt, | |
| ... | ||||
| ) |
| bool UT_String::startsWith | ( | const char * | prefix | ) | const |
| char* UT_String::steal | ( | void | ) | [inline] |
Definition at line 112 of file UT_String.h.
| int UT_String::strip | ( | const char * | chars | ) |
| int UT_String::substitute | ( | const char * | find, | |
| const char * | replacement, | |||
| bool | all = true | |||
| ) |
| int UT_String::substr | ( | UT_String & | buf, | |
| int | index, | |||
| int | len = 0 | |||
| ) | const |
| const char* UT_String::suffix | ( | void | ) | const |
| void UT_String::swap | ( | UT_String & | other | ) |
| fpreal UT_String::toFloat | ( | ) | const |
| int UT_String::toInt | ( | ) | const |
| int UT_String::tokenize | ( | UT_WorkArgs & | argv, | |
| const char * | separators = " \t\n" | |||
| ) | [inline] |
Definition at line 585 of file UT_String.h.
| int UT_String::tokenize | ( | char * | argv[], | |
| int | maxArgs, | |||
| const char * | separators = " \t\n" | |||
| ) | [inline] |
Definition at line 577 of file UT_String.h.
| int UT_String::tokenize | ( | UT_WorkArgs & | argv, | |
| char | separator | |||
| ) | [inline] |
Definition at line 571 of file UT_String.h.
| int UT_String::tokenize | ( | char * | argv[], | |
| int | maxArgs, | |||
| char | separator | |||
| ) | [inline] |
Definition at line 565 of file UT_String.h.
| int UT_String::tokenizeInPlace | ( | UT_WorkArgs & | argv, | |
| const char * | separators = " \t\n" | |||
| ) |
| int UT_String::tokenizeInPlace | ( | char * | argv[], | |
| int | maxArgs, | |||
| const char * | separators = " \t\n" | |||
| ) |
| int UT_String::tokenizeInPlace | ( | UT_WorkArgs & | argv, | |
| char | separator | |||
| ) |
| int UT_String::tokenizeInPlace | ( | char * | argv[], | |
| int | maxArgs, | |||
| char | separator | |||
| ) |
| void UT_String::toLower | ( | ) | [inline] |
Definition at line 408 of file UT_String.h.
| std::string UT_String::toStdString | ( | ) | const |
Converts the contents of this UT_String to a std::string. Note that std::string can't be constructed with a null pointer, so you can't just write std::string s = ut_string.buffer();
| void UT_String::toUpper | ( | ) | [inline] |
Definition at line 401 of file UT_String.h.
| int UT_String::traversePattern | ( | int | max, | |
| void * | data, | |||
| int(*)(int num, int sec, void *data) | func, | |||
| unsigned int(*)(int num, void *data) | secfunc = 0, |
|||
| int | offset = 0 | |||
| ) | const |
| int UT_String::trimBoundingSpace | ( | ) |
| int UT_String::trimSpace | ( | bool | leaveSingleSpaceBetweenWords = false |
) |
| bool UT_String::truncateMiddle | ( | int | max_length | ) |
| void UT_String::utoa | ( | int | i | ) |
| static int UT_String::utoa | ( | char * | str, | |
| unsigned | i | |||
| ) | [static] |
| static int UT_String::wildcardMatchCheck | ( | const char * | pattern | ) | [static] |
| UT_API ostream& operator<< | ( | ostream & | os, | |
| const UT_String & | d | |||
| ) | [friend] |
This operator saves the string to the stream via the string's saveAscii() method, protecting any whitespace (by adding quotes), backslashes or quotes in the string.
1.5.9