GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SBSTRING (3)

NAME

SbString — class for smart character strings

CONTENTS

Inherits From
Synopsis
Description
Methods
File Format/defaults
See Also

INHERITS FROM

SbString

SYNOPSIS

#include <Inventor/SbString.h>

Methods from class SbString:

       
                    
                     SbString()    
   
                    
                     SbString(const char *str)    
   
                    
                     SbString(const char *str, int start, int end)    
   
                    
                     SbString(const SbString &str)    
   
                    
                     SbString(int digitString)    
   
                    
                     ~SbString()    
uint32_t    
                    
uint32_t             hash()    
int    
                    
int                  getLength() const    
void    
                    
void                 makeEmpty(SbBool freeOld = TRUE)    
const char *    
                    
const char *         getString() const    
SbString    
                    
SbString             getSubString(int startChar, int endChar = -1) const    
void    
                    
void                 deleteSubString(int startChar, int endChar = -1)    
SbString &    
                    
SbString &           operator =(const char *str)    
SbString &    
                    
SbString &           operator =(const SbString &str)    
SbString &    
                    
SbString &           operator +=(const char *str)    
SbString &    
                    
SbString &           operator +=(const SbString &str)    
int    
                    
int                  operator !() const    
int    
                    
int                  operator ==(const char *s, const SbString &str)    
int    
                    
int                  operator ==(const SbString &str, const char *s)    
int    
                    
int                  operator ==(const SbString &str1, const SbString &str2)    
int    
                    
int                  operator !=(const char *s, const SbString &str)    
int    
                    
int                  operator !=(const SbString &str, const char *s)    
int    
                    
int                  operator !=(const SbString &str1, const SbString &str2)

DESCRIPTION

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

METHODS

       
                    
                     SbString()    
   
                    
                     SbString(const char *str)    
   
                    
                     SbString(const char *str, int start, int end)    
   
                    
                     SbString(const SbString &str)    
   
                    
                     SbString(int digitString)    
   
                    
                     ~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_t    
                    
uint32_t             hash()
Returns a reasonable hash key for string.

    int    
                    
int                  getLength() const
Returns length of string.

    void    
                    
void                 makeEmpty(SbBool freeOld = TRUE)
Sets string to be the empty string (""). If freeOld is TRUE (default), any old storage is freed up.

    const char *    
                    
const char *         getString() const
Returns pointer to the character string.

    SbString    
                    
SbString             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.

    void    
                    
void                 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.

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

    SbString &    
                    
SbString &           operator +=(const char *str)    
SbString &    
                    
SbString &           operator +=(const SbString &str)
Concatenation operators "+=" for string, SbString.

    int    
                    
int                  operator !() const
Unary "not" operator; returns TRUE if string is empty ("").

    int    
                    
int                  operator ==(const char *s, const SbString &str)    
int    
                    
int                  operator ==(const SbString &str, const char *s)    
int    
                    
int                  operator ==(const SbString &str1, const SbString &str2)
Equality operator for SbString/char* and SbString/SbString comparison.

    int    
                    
int                  operator !=(const char *s, const SbString &str)    
int    
                    
int                  operator !=(const SbString &str, const char *s)    
int    
                    
int                  operator !=(const SbString &str1, const SbString &str2)
Inequality operator for SbString/char* and SbString/SbString comparison.

FILE FORMAT/DEFAULTS

SEE ALSO

SbName

Search for    or go to Top of page |  Section 3 |  Main Index


SBSTRING(3IV) (-->)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.