|
Public Member Functions |
| const char * | Ascii (void) const |
| | Returns a representation of this BString object as a null-terminated character string.
|
| | BString (const BString &str) |
| | Copy constructor.
|
| | BString (const wchar_t *pwsz) |
| | Constructs a BString that is a copy of a null-terminated wide-character string.
|
| | BString (const char *pszStr) |
| | Constructs a BString that is a copy of a null-terminated character string.
|
| | BString (const std::wstring &str) |
| | Constructs a BString that is a copy of a std::wstring.
|
| | BString (const std::string &str) |
| | Constructs a BString that is a copy of a std::string.
|
| | BString () |
| | Constructs an empty string.
|
| virtual size_t | ComputeSize (void) const |
| | Computes the size of the BByteArray required to store this object.
|
| void | Empty (void) |
| | Clears the contents of this BString.
|
| virtual void | FromByteArray (const BByteArray &bytes, size_t &startPos) |
| | Initializes an instance of this object from a BByteArray.
|
| bool | IsEmpty (void) const |
| | Indicates whether or not this BString is an empty string.
|
| BString | Left (size_t len) const |
| | Copys the leftmost characters from this BString into a new BString.
|
| | operator const char * (void) const |
| | Casts this string object to a const char* so it can be used where a null- terminated character string is required.
|
| | operator const wchar_t * (void) const |
| | Casts this string object to a const wchar_t* so it can be used where a null- terminated wide-character string is required.
|
| BString & | operator+= (const std::string &str) |
| | Append operator.
|
| BString & | operator+= (const BString &str) |
| | Append operator.
|
| BString & | operator+= (const std::wstring &str) |
| | Append operator.
|
| BString & | operator+= (wchar_t wch) |
| | Append operator.
|
| BString & | operator+= (char ch) |
| | Append operator.
|
| BString & | operator+= (const wchar_t *psz) |
| | Append operator.
|
| BString & | operator+= (const char *psz) |
| | Append operator.
|
| BString & | operator= (const std::string &str) |
| | Assignment operator.
|
| BString & | operator= (const BString &str) |
| | Assignment operator.
|
| BString & | operator= (const std::wstring &str) |
| | Assignment operator.
|
| BString & | operator= (const wchar_t *psz) |
| | Assignment operator.
|
| BString & | operator= (const char *psz) |
| | Assignment operator.
|
| BString & | Remove (const BString &str) |
| | Removes the first instance of the specified string from this BString.
|
| BString & | RemoveAll (const BString &str) |
| | Remove all instances of the specified string from this BString.
|
| BString & | RemoveAllChars (const BString &charList) |
| | Removes all instances of the individual characters in the specified string from this BString.
|
| BString & | ReplaceAll (const BString &findStr, const BString &replStr) |
| | Replaces all occurrances of the find string with the replace string.
|
| BString | Right (size_t len) const |
| | Copys the rightmost characters from this BString into a new BString.
|
| std::string | StdStr (void) const |
| | Returns a representation of this BString object as a std::string.
|
| virtual BByteArray | ToByteArray (void) const |
| | Stores this object in a BByteArray.
|
| BString & | ToLower (void) |
| | Converts the contents of this BString to lower case charcters.
|
| const UInt16 * | ToUcs2Buffer () const |
| | Converts this BString to an array of UCS2 characters.
|
| BString & | ToUpper (void) |
| | Converts the contents of this BString to upper case characters.
|
| BString & | Trim (void) |
| | Trims leading and trailing whitespace characters from this BString.
|
| BString & | TrimLeft (void) |
| | Trims leading whitespace characters from this BString.
|
| BString & | TrimRight (void) |
| | Trim trailing whitespace characters from this BString.
|
| const char * | Utf8 (void) const |
| | Casts this string object to a const char* so it can be used where a null- terminated character string is required.
|
| virtual | ~BString () |
| | Destructor.
|
Static Public Member Functions |
| static BString | Format (const wchar_t *pszFormat,...) |
| | Creates a BString formated using printf syntax.
|
| static BString | Format (const char *pszFormat,...) |
| | Creates a BString formated using printf syntax.
|
| static double | FromFormattedDegrees (const wchar_t *format, BString formattedString) |
| | Returns a decimal degree value based on a BString iwith the specified formatting.
|
| static BString | FromUcs2Buffer (const UInt16 *pUcs2, size_t len) |
| | Creates a BString from an array of UCS2 characters.
|
| static BString | ToFormattedDegrees (double degrees, const wchar_t *format) |
| | Creates a string from a numerical value in degrees, using the specified formatting.
|
| static void | Tokenize (const BString &str, std::vector< BString > &tokens, const BString &delimiters=" ") |
| | Splits a BString into a vector of substrings.
|