1SbString(3IV)()                                                SbString(3IV)()
2
3
4

NAME

6       SbString — class for smart character strings
7

INHERITS FROM

9       SbString
10

SYNOPSIS

12       #include <Inventor/SbString.h>
13
14          Methods from class SbString:
15
16                         SbString()
17                         SbString(const char *str)
18                         SbString(const char *str, int start, int end)
19                         SbString(const SbString &str)
20                         SbString(int digitString)
21                         ~SbString()
22     uint32_t            hash()
23     int                 getLength() const
24     void                makeEmpty(SbBool freeOld = TRUE)
25     const char *        getString() const
26     SbString            getSubString(int startChar, int endChar = -1) const
27     void                deleteSubString(int startChar, int endChar = -1)
28     SbString &          operator =(const char *str)
29     SbString &          operator =(const SbString &str)
30     SbString &          operator +=(const char *str)
31     SbString &          operator +=(const SbString &str)
32     int                 operator !() const
33     int                 operator ==(const char *s, const SbString &str)
34     int                 operator ==(const SbString &str, const char *s)
35     int                 operator  ==(const  SbString  &str1,  const  SbString
36                              &str2)
37     int                 operator !=(const char *s, const SbString &str)
38     int                 operator !=(const SbString &str, const char *s)
39     int                 operator  !=(const  SbString  &str1,  const  SbString
40                              &str2)
41
42

DESCRIPTION

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

METHODS

48                         SbString()
49                         SbString(const char *str)
50                         SbString(const char *str, int start, int end)
51                         SbString(const SbString &str)
52                         SbString(int digitString)
53                         ~SbString()
54          Constructors and destructor. Constructors take a  character  string,
55          the  subset  of a character string from start to end (inclusive), or
56          an integer to be turned into a string.  For example,  SbString(1234)
57          creates  the  string  "1234".  SbString("Testing",1,3)  creates  the
58          string "est".
59
60     uint32_t            hash()
61          Returns a reasonable hash key for string.
62
63     int                 getLength() const
64          Returns length of string.
65
66     void                makeEmpty(SbBool freeOld = TRUE)
67          Sets string to  be  the  empty  string  ("").  If  freeOld  is  TRUE
68          (default), any old storage is freed up.
69
70     const char *        getString() const
71          Returns pointer to the character string.
72
73     SbString            getSubString(int startChar, int endChar = -1) const
74          Returns  new  string  representing sub-string from startChar to end‐
75          Char, inclusive. If endChar is -1 (the default), the sub-string from
76          startChar until the end is returned.
77
78     void                deleteSubString(int startChar, int endChar = -1)
79          Deletes  the  characters  from startChar to endChar, inclusive, from
80          the string. If endChar is -1  (the  default),  all  characters  from
81          startChar until the end are deleted.
82
83     SbString &          operator =(const char *str)
84     SbString &          operator =(const SbString &str)
85          Assignment operators for character string, SbString.
86
87     SbString &          operator +=(const char *str)
88     SbString &          operator +=(const SbString &str)
89          Concatenation operators "+=" for string, SbString.
90
91     int                 operator !() const
92          Unary "not" operator; returns TRUE if string is empty ("").
93
94     int                 operator ==(const char *s, const SbString &str)
95     int                 operator ==(const SbString &str, const char *s)
96     int                 operator  ==(const  SbString  &str1,  const  SbString
97                              &str2)
98          Equality operator for SbString/char* and SbString/SbString  compari‐
99          son.
100
101     int                 operator !=(const char *s, const SbString &str)
102     int                 operator !=(const SbString &str, const char *s)
103     int                 operator  !=(const  SbString  &str1,  const  SbString
104                              &str2)
105          Inequality operator for SbString/char* and SbString/SbString compar‐
106          ison.
107
108

SEE ALSO

110       SbName
111
112
113
114
115                                                               SbString(3IV)()
Impressum