SBSTRING(3iv)
π SbString(3IV) β bestie, it's the smart string class π
Okay so this is SbString(3IV), the manual page for SbString β and no cap, it's kind of a baddie. π It's the class for smart character strings, from the Inventor toolkit situation. Let's get into it.
β¨ NAME β¨
SbString β class for smart character strings πΈ
π¦ INHERITS FROM π¦
SbString
yes bestie, it inherits from itself. the lore is wild. don't think about it too hard, just vibe. π
π 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 hash()
int getLength() const
void makeEmpty(SbBool freeOld = TRUE)
const char * getString() const
SbString getSubString(int startChar, int endChar = -1) const
void deleteSubString(int startChar, int endChar = -1)
SbString & operator =(const char *str)
SbString & operator =(const SbString &str)
SbString & operator +=(const char *str)
SbString & operator +=(const SbString &str)
int operator !() const
int operator ==(const char *s, const SbString &str)
int operator ==(const SbString &str, const char *s)
int operator ==(const SbString &str1, const SbString
&str2)
int operator !=(const char *s, const SbString &str)
int operator !=(const SbString &str, const char *s)
int operator !=(const SbString &str1, const SbString
&str2)
π DESCRIPTION π
Strings. But likeβ¦ smart strings. π§β¨ They come with a whole bunch of convenience methods that make string manipulation way easier, so you're not out here fighting raw char * like it's 1994. This is giving main character energy for text. π
π 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, bestie. π«Ά The constructors take a character string, or a subset of a character string from start to end (inclusive, okay, both ends, periodt), or an integer that gets turned into a string. So like, SbString(1234) creates the string "1234". And SbString("Testing",1,3) creates the string "est". Obsessed, honestly. π₯
uint32_t hash()β Returns a reasonable hash key for string. πint getLength() constβ Returns length of string. That's it, that's the whole thing. πvoid makeEmpty(SbBool freeOld = TRUE)β Sets string to be the empty string (""). If freeOld isTRUE(which is the default, fyi), any old storage is freed up. Let it go, babe. π¦const char * getString() constβ Returns pointer to the character string. πSbString getSubString(int startChar, int endChar = -1) constβ Returns a new string representing the sub-string from startChar to endChar, inclusive. If endChar is-1(the default), the sub-string from startChar until the end is returned. Chef's kiss. π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. Gone, reduced to atoms. πSbString & operator =(const char *str)SbString & operator =(const SbString &str)
Assignment operators for character string, SbString. βοΈ
SbString & operator +=(const char *str)SbString & operator +=(const SbString &str)
Concatenation operators "+=" for string, SbString. Gluing vibes together. π«Ά
int operator !() constβ Unary "not" operator; returnsTRUEif string is empty (""). πint operator ==(const char *s, const SbString &str)int operator ==(const SbString &str, const char *s)int operator ==(const SbString &str1, const SbString &str2)
Equality operator for SbString/char* and SbString/SbString comparison. Are they the same? Say it back. π
int operator !=(const char *s, const SbString &str)int operator !=(const SbString &str, const char *s)int operator !=(const SbString &str1, const SbString &str2)
Inequality operator for SbString/char* and SbString/SbString comparison. Not the same, and we're being normal about it. π
π SEE ALSO π
SbNameβ its sibling, go say hi π
And that's the whole page, bestie! This was SbString(3IV), the SbString manual page from the 3IV manual section β and that cute little SbString(3IV)() footer line at the bottom? That's just this same page signing off on itself, which is honestly such a Leo move. π
β¨ Anyway, go manipulate some strings. Slay. π
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms