Class for smart character strings.
More...
#include <Inventor/SbString.h>
|
| | SbString () |
| |
| | SbString (const char *str) |
| |
| | SbString (const char *str, int start, int end) |
| |
| | SbString (const SbString &str) |
| |
| | SbString (int digitString) |
| | Constructors and destructor.
|
| |
| | ~SbString () |
| | Destructor.
|
| |
| uint32_t | hash () |
| | Returns a reasonable hash key for string.
|
| |
| int | getLength () const |
| | Returns length of string.
|
| |
| void | makeEmpty (bool freeOld=TRUE) |
| | Sets string to be the empty string ("").
|
| |
| const char * | getString () const |
| | Returns pointer to the character string.
|
| |
| SbString | getSubString (int startChar, int endChar=-1) const |
| | Returns new string representing sub-string from startChar to endChar, inclusive.
|
| |
| void | deleteSubString (int startChar, int endChar=-1) |
| | Deletes the characters from startChar to endChar, inclusive, from the string.
|
| |
| SbString & | operator= (const char *str) |
| | Assignment operators for character string, SbString.
|
| |
| SbString & | operator= (const SbString &str) |
| | Assignment operators for character string, SbString.
|
| |
| SbString & | operator+= (const char *str) |
| | Concatenation operators "+=" for string, SbString.
|
| |
| SbString & | operator+= (const SbString &str) |
| | Concatenation operators "+=" for string, SbString.
|
| |
| bool | operator! () const |
| | Unary "not" operator; returns TRUE if string is empty ("").
|
| |
|
| static uint32_t | hash (const char *s) |
| | Returns a reasonable hash key for string.
|
| |
Strings which have many convenience methods to make string manipulation easier.
- See Also
- SbName
Definition at line 85 of file SbString.h.
◆ SbString() [1/5]
◆ SbString() [2/5]
| SbString::SbString |
( |
const char * |
str | ) |
|
|
inline |
◆ SbString() [3/5]
| SbString::SbString |
( |
const char * |
str, |
|
|
int |
start, |
|
|
int |
end |
|
) |
| |
◆ SbString() [4/5]
| SbString::SbString |
( |
const SbString & |
str | ) |
|
|
inline |
◆ SbString() [5/5]
| SbString::SbString |
( |
int |
digitString | ) |
|
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".
◆ ~SbString()
◆ deleteSubString()
| void SbString::deleteSubString |
( |
int |
startChar, |
|
|
int |
endChar = -1 |
|
) |
| |
If endChar is -1 (the default), all characters from startChar until the end are deleted.
◆ getLength()
| int SbString::getLength |
( |
| ) |
const |
|
inline |
◆ getString()
| const char * SbString::getString |
( |
| ) |
const |
|
inline |
◆ getSubString()
| SbString SbString::getSubString |
( |
int |
startChar, |
|
|
int |
endChar = -1 |
|
) |
| const |
If endChar is -1 (the default), the sub-string from startChar until the end is returned.
◆ hash() [1/2]
◆ hash() [2/2]
| static uint32_t SbString::hash |
( |
const char * |
s | ) |
|
|
static |
◆ makeEmpty()
| void SbString::makeEmpty |
( |
bool |
freeOld = TRUE | ) |
|
If freeOld is TRUE (default), any old storage is freed up.
◆ operator!()
| bool SbString::operator! |
( |
| ) |
const |
|
inline |
◆ operator+=() [1/2]
| SbString & SbString::operator+= |
( |
const char * |
str | ) |
|
◆ operator+=() [2/2]
◆ operator=() [1/2]
| SbString & SbString::operator= |
( |
const char * |
str | ) |
|
◆ operator=() [2/2]
◆ operator!= [1/3]
◆ operator!= [2/3]
◆ operator!= [3/3]
◆ operator< [1/3]
◆ operator< [2/3]
◆ operator< [3/3]
◆ operator== [1/3]
◆ operator== [2/3]
◆ operator== [3/3]
The documentation for this class was generated from the following file:
- /home/jenkins/workspaces/mevislab/4.2.0_1/build/MeVis/ThirdParty/Sources/Inventor/include/Inventor/SbString.h