man SbString () - class for smart character strings

NAME

SbString - class for smart character strings

INHERITS FROM

SbString

SYNOPSIS

#include <Inventor/SbString.h> Methods from class SbString: c } c } SbString()

c } c } SbString(const char *str)

c } c } SbString(const char *str, int start, int end)

c } c } SbString(const SbString &str)

c } c } SbString(int digitString)

c } c } ~SbString()

c } c } hash()

c } c } getLength() const

c } c } makeEmpty(SbBool freeOld = TRUE)

c } c } getString() const

c } c } getSubString(int startChar, int endChar = -1) const

c } c } deleteSubString(int startChar, int endChar = -1)

c } c } operator =(const char *str)

c } c } operator =(const SbString &str)

c } c } operator +=(const char *str)

c } c } operator +=(const SbString &str)

c } c } operator !() const

c } c } operator ==(const char *s, const SbString &str)

c } c } operator ==(const SbString &str, const char *s)

c } c } operator ==(const SbString &str1, const SbString &str2)

c } c } operator !=(const char *s, const SbString &str)

c } c } operator !=(const SbString &str, const char *s)

c } c } operator !=(const SbString &str1, const SbString &str2)

DESCRIPTION

Strings which have many convenience methods to make string manipulation easier.

METHODS

c } c } SbString()

c } c } SbString(const char *str)

c } c } SbString(const char *str, int start, int end)

c } c } SbString(const SbString &str)

c } c } SbString(int digitString)

c } c } ~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(1) creates the string "1234". SbString("Testing",1,3) creates the string "est". c } c } hash()

Returns a reasonable hash key for string. c } c } getLength() const

Returns length of string. c } c } makeEmpty(SbBool freeOld = TRUE)

Sets string to be the empty string (""). If freeOld is TRUE (default), any old storage is freed up. c } c } getString() const

Returns pointer to the character string. c } c } getSubString(int startChar, int endChar = -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. c } c } deleteSubString(int startChar, int endChar = -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. c } c } operator =(const char *str)

c } c } operator =(const SbString &str)

Assignment operators for character string, SbString. c } c } operator +=(const char *str)

c } c } operator +=(const SbString &str)

Concatenation operators "+=" for string, SbString. c } c } operator !() const

Unary "not" operator; returns TRUE if string is empty (""). c } c } operator ==(const char *s, const SbString &str)

c } c } operator ==(const SbString &str, const char *s)

c } c } operator ==(const SbString &str1, const SbString &str2)

Equality operator for SbString/char* and SbString/SbString comparison. c } c } operator !=(const char *s, const SbString &str)

c } c } operator !=(const SbString &str, const char *s)

c } c } operator !=(const SbString &str1, const SbString &str2)

Inequality operator for SbString/char* and SbString/SbString comparison.

SEE ALSO

SbName