logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SbString — class for smart character strings

Description

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

Inherits From

       SbString

Methods

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.

Name

       SbString — class for smart character strings

See Also

SbNameSbString(3IV)()

Synopsis

#include<Inventor/SbString.h>

          Methods from class SbString:

                         SbString()SbString(constchar*str)SbString(constchar*str,intstart,intend)SbString(constSbString&str)SbString(intdigitString)~SbString()uint32_thash()intgetLength()constvoidmakeEmpty(SbBoolfreeOld=TRUE)constchar*getString()constSbStringgetSubString(intstartChar,intendChar=-1)constvoiddeleteSubString(intstartChar,intendChar=-1)SbString&operator=(constchar*str)SbString&operator=(constSbString&str)SbString&operator+=(constchar*str)SbString&operator+=(constSbString&str)intoperator!()constintoperator==(constchar*s,constSbString&str)intoperator==(constSbString&str,constchar*s)intoperator==(constSbString&str1,constSbString&str2)intoperator!=(constchar*s,constSbString&str)intoperator!=(constSbString&str,constchar*s)intoperator!=(constSbString&str1,constSbString&str2)

See Also