ArmSys Support
ArmsysApi  0.12.18

#include <BString.h>

Public Member Functions

 BString (const char *str=0, int len=-1, Bool copy=0)
 
 BString (const BString &string)
 
 BString (BChar c)
 
 BString (BInt v)
 
 ~BString ()
 
BString copy () const
 Return an independant copy. More...
 
BUInt len () const
 Length of string. More...
 
const char * str () const
 Ptr to char* representation. More...
 
const char * retStr () const
 Ptr to char* representation. More...
 
BInt retInt () const
 Return string as a int. More...
 
BUInt retUInt () const
 Return string as a int. More...
 
BFloat64 retFloat64 () const
 Return string as a double. More...
 
int compare (const BString &string) const
 Compare strings. More...
 
int compare (const char *string) const
 Compare strings. More...
 
int find (char ch) const
 Find ch in string searching forwards. More...
 
int find (BString str) const
 Find string in string searching forwards. More...
 
int findReverse (char ch) const
 Find ch in string searching backwards. More...
 
void clear ()
 Clear the string. More...
 
BString add (const BString &str) const
 Add strings returning result. More...
 
BStringtruncate (BUInt len)
 Truncate to length len. More...
 
BStringpad (BUInt len)
 Pad to length len. More...
 
BStringprintf (const char *fmt,...)
 Formated print into the string. More...
 
BStringtoUpper ()
 Convert to uppercase. More...
 
BStringtoLower ()
 Convert to lowercase. More...
 
BString subString (BUInt start, int len) const
 Returns substring. More...
 
BString reverse () const
 Reverse character order. More...
 
void del (BUInt start, int len)
 Delete substring. More...
 
void insert (BUInt start, const BString &str)
 Insert substring. More...
 
void append (const BString &str)
 Append a string. More...
 
BUInt32 hash () const
 retunr a hash value More...
 
BString pullToken (const BString &terminators)
 Pull token from start of string. More...
 
BString removeSeparators (BString separators) const
 Remove any char from sepatators from string. More...
 
BList< BStringsplit (char splitChar)
 Split string into an array based on the character separator. More...
 
BStringoperator= (const BString &string)
 
char & operator[] (int pos)
 
 operator const char * () const
 
int operator== (const BString &s) const
 
int operator== (const char *s) const
 
int operator!= (const BString &s) const
 
int operator!= (const char *s) const
 
int operator> (const BString &s) const
 
int operator> (const char *s) const
 
int operator< (const BString &s) const
 
int operator< (const char *s) const
 
int operator>= (const BString &s) const
 
int operator>= (const char *s) const
 
int operator<= (const BString &s) const
 
int operator<= (const char *s) const
 
BString operator+ (const BString &s) const
 
BString operator+= (const BString &s)
 
BString operator+ (BChar ch) const
 
void debugPrint ()
 

Static Public Member Functions

static BString convert (Bool v)
 Converts Bool to string. More...
 
static BString convert (BInt8 v)
 Converts Int8 to string. More...
 
static BString convert (BUInt8 v)
 Converts UInt8 to string. More...
 
static BString convert (BInt16 v)
 Converts Int16 to string. More...
 
static BString convert (BUInt16 v)
 Converts UInt16 to string. More...
 
static BString convert (BInt32 value)
 Converts int to string. More...
 
static BString convert (BUInt32 value)
 Converts uint to string. More...
 
static BString convert (double value, int eFormat=0)
 Converts double to string. More...
 
static BString convert (BUInt64 value)
 Converts long long to string. More...
 
static BString convert (BChar value)
 Converts BChar to string. More...
 
static BString convertHex (BInt value)
 Converts int to string as hex value. More...
 
static BString convertHex (BUInt value)
 Converts uint to string as hex value. More...
 

Protected Attributes

BRefString orefs
 

Constructor & Destructor Documentation

◆ BString() [1/4]

BString::BString ( const char *  str = 0,
int  len = -1,
Bool  copy = 0 
)

◆ BString() [2/4]

BString::BString ( const BString string)

◆ BString() [3/4]

BString::BString ( BChar  c)

◆ BString() [4/4]

BString::BString ( BInt  v)

◆ ~BString()

BString::~BString ( )

Member Function Documentation

◆ add()

BString BString::add ( const BString str) const

Add strings returning result.

◆ append()

void BString::append ( const BString str)

Append a string.

◆ clear()

void BString::clear ( )

Clear the string.

◆ compare() [1/2]

int BString::compare ( const BString string) const

Compare strings.

◆ compare() [2/2]

int BString::compare ( const char *  string) const

Compare strings.

◆ convert() [1/10]

BString BString::convert ( Bool  v)
static

Converts Bool to string.

◆ convert() [2/10]

BString BString::convert ( BInt8  v)
static

Converts Int8 to string.

◆ convert() [3/10]

BString BString::convert ( BUInt8  v)
static

Converts UInt8 to string.

◆ convert() [4/10]

BString BString::convert ( BInt16  v)
static

Converts Int16 to string.

◆ convert() [5/10]

BString BString::convert ( BUInt16  v)
static

Converts UInt16 to string.

◆ convert() [6/10]

BString BString::convert ( BInt32  value)
static

Converts int to string.

◆ convert() [7/10]

BString BString::convert ( BUInt32  value)
static

Converts uint to string.

◆ convert() [8/10]

BString BString::convert ( double  value,
int  eFormat = 0 
)
static

Converts double to string.

◆ convert() [9/10]

BString BString::convert ( BUInt64  value)
static

Converts long long to string.

◆ convert() [10/10]

BString BString::convert ( BChar  value)
static

Converts BChar to string.

◆ convertHex() [1/2]

BString BString::convertHex ( BInt  value)
static

Converts int to string as hex value.

◆ convertHex() [2/2]

BString BString::convertHex ( BUInt  value)
static

Converts uint to string as hex value.

◆ copy()

BString BString::copy ( ) const

Return an independant copy.

◆ debugPrint()

void BString::debugPrint ( )

◆ del()

void BString::del ( BUInt  start,
int  len 
)

Delete substring.

◆ find() [1/2]

int BString::find ( char  ch) const

Find ch in string searching forwards.

◆ find() [2/2]

int BString::find ( BString  str) const

Find string in string searching forwards.

◆ findReverse()

int BString::findReverse ( char  ch) const

Find ch in string searching backwards.

◆ hash()

BUInt32 BString::hash ( ) const

retunr a hash value

◆ insert()

void BString::insert ( BUInt  start,
const BString str 
)

Insert substring.

◆ len()

BUInt BString::len ( ) const

Length of string.

◆ operator const char *()

BString::operator const char * ( ) const
inline

◆ operator!=() [1/2]

int BString::operator!= ( const BString s) const
inline

◆ operator!=() [2/2]

int BString::operator!= ( const char *  s) const
inline

◆ operator+() [1/2]

BString BString::operator+ ( const BString s) const
inline

◆ operator+() [2/2]

BString BString::operator+ ( BChar  ch) const
inline

◆ operator+=()

BString BString::operator+= ( const BString s)
inline

◆ operator<() [1/2]

int BString::operator< ( const BString s) const
inline

◆ operator<() [2/2]

int BString::operator< ( const char *  s) const
inline

◆ operator<=() [1/2]

int BString::operator<= ( const BString s) const
inline

◆ operator<=() [2/2]

int BString::operator<= ( const char *  s) const
inline

◆ operator=()

BString & BString::operator= ( const BString string)

◆ operator==() [1/2]

int BString::operator== ( const BString s) const
inline

◆ operator==() [2/2]

int BString::operator== ( const char *  s) const
inline

◆ operator>() [1/2]

int BString::operator> ( const BString s) const
inline

◆ operator>() [2/2]

int BString::operator> ( const char *  s) const
inline

◆ operator>=() [1/2]

int BString::operator>= ( const BString s) const
inline

◆ operator>=() [2/2]

int BString::operator>= ( const char *  s) const
inline

◆ operator[]()

char & BString::operator[] ( int  pos)

◆ pad()

BString & BString::pad ( BUInt  len)

Pad to length len.

◆ printf()

BString & BString::printf ( const char *  fmt,
  ... 
)

Formated print into the string.

◆ pullToken()

BString BString::pullToken ( const BString terminators)

Pull token from start of string.

◆ removeSeparators()

BString BString::removeSeparators ( BString  separators) const

Remove any char from sepatators from string.

◆ retFloat64()

BFloat64 BString::retFloat64 ( ) const

Return string as a double.

◆ retInt()

BInt BString::retInt ( ) const

Return string as a int.

◆ retStr()

const char * BString::retStr ( ) const

Ptr to char* representation.

◆ retUInt()

BUInt BString::retUInt ( ) const

Return string as a int.

◆ reverse()

BString BString::reverse ( ) const

Reverse character order.

◆ split()

BList< BString > BString::split ( char  splitChar)

Split string into an array based on the character separator.

◆ str()

const char * BString::str ( ) const

Ptr to char* representation.

◆ subString()

BString BString::subString ( BUInt  start,
int  len 
) const

Returns substring.

◆ toLower()

BString & BString::toLower ( )

Convert to lowercase.

◆ toUpper()

BString & BString::toUpper ( )

Convert to uppercase.

◆ truncate()

BString & BString::truncate ( BUInt  len)

Truncate to length len.

Member Data Documentation

◆ orefs

BRefString BString::orefs
protected

The documentation for this class was generated from the following files: