SbString()SbString(constchar*str)SbString(constchar*str,intstart,intend)SbString(constSbString&str)SbString(intdigitString)~SbString()
Constructors and destructor. Constructors take a character string, the subset of a character string
from start to end (inclusive), or an integer to be turned into a string. For example, SbString(1234)
creates the string "1234". SbString("Testing",1,3) creates the string "est".
uint32_thash()
Returns a reasonable hash key for string.
intgetLength()const
Returns length of string.
voidmakeEmpty(SbBoolfreeOld=TRUE)
Sets string to be the empty string (""). If freeOld is TRUE (default), any old storage is freed up.
constchar*getString()const
Returns pointer to the character string.
SbStringgetSubString(intstartChar,intendChar=-1)const
Returns new string representing sub-string from startChar to endChar, inclusive. If endChar is -1 (the
default), the sub-string from startChar until the end is returned.
voiddeleteSubString(intstartChar,intendChar=-1)
Deletes the characters from startChar to endChar, inclusive, from the string. If endChar is -1 (the
default), all characters from startChar until the end are deleted.
SbString&operator=(constchar*str)SbString&operator=(constSbString&str)
Assignment operators for character string, SbString.
SbString&operator+=(constchar*str)SbString&operator+=(constSbString&str)
Concatenation operators "+=" for string, SbString.
intoperator!()const
Unary "not" operator; returns TRUE if string is empty ("").
intoperator==(constchar*s,constSbString&str)intoperator==(constSbString&str,constchar*s)intoperator==(constSbString&str1,constSbString&str2)
Equality operator for SbString/char* and SbString/SbString comparison.
intoperator!=(constchar*s,constSbString&str)intoperator!=(constSbString&str,constchar*s)intoperator!=(constSbString&str1,constSbString&str2)
Inequality operator for SbString/char* and SbString/SbString comparison.