String Objects


Classes

class  bt_xout_of_range
 Exception thrown when an out-of-range condition is detected. More...
class  bt_xstring
 An eight bit character string class. More...
class  bt_xwstring
 A Unicode character string class. More...

Functions

bool find (const bt_xstring &str, char search)
 Tests (case-sensitive) if a character is in the string.
bool operator!= (const bt_xwstring &a, const bt_xwstring &b)
 Tests (case-sensitive) for inequality.
bool operator!= (const bt_xstring &a, const bt_xstring &b)
 Tests (case-sensitive) for inequality.
BT_UTILITIES_IMEX bt_xwstring operator+ (const bt_xwstring &s1, const bt_xwstring &s2)
 Appends a bt_xwstring to a bt_xwstring.
BT_UTILITIES_IMEX bt_xstring operator+ (const bt_xstring &s1, const bt_xstring &s2)
 Appends a bt_xstring to a bt_xstring.
BT_UTILITIES_IMEX bt_xwstring operator+ (const bt_xwstring &s, BT_UInt16 c)
 Appends a character to a bt_xwstring.
BT_UTILITIES_IMEX bt_xstring operator+ (const bt_xstring &s, char c)
 Appends a character to a bt_xstring.
BT_UTILITIES_IMEX bt_xwstring operator+ (const bt_xwstring &s, const BT_UInt16 *s2)
 Appends a string to a bt_xwstring.
BT_UTILITIES_IMEX bt_xstring operator+ (const bt_xstring &s, const char *s2)
 Appends a string to a bt_xstring.
bool operator< (const bt_xwstring &a, const bt_xwstring &b)
 Tests (case-sensitive) if string 1 comes before string 2 in collation sequence.
bool operator< (const bt_xstring &a, const bt_xstring &b)
 Tests (case-sensitive) if string 1 comes before string 2 in collation sequence.
bool operator<= (const bt_xwstring &a, const bt_xwstring &b)
 Tests (case-sensitive) if string 1 comes before string 2 in collation sequence or is equal to string 2.
bool operator<= (const bt_xstring &a, const bt_xstring &b)
 Tests (case-sensitive) if string 1 comes before string 2 in collation sequence or is equal to string 2.
bool operator== (const bt_xwstring &a, const bt_xwstring &b)
 Tests (case-sensitive) for equality.
bool operator== (const bt_xstring &a, const bt_xstring &b)
 Tests (case-sensitive) for equality.
bool operator> (const bt_xwstring &a, const bt_xwstring &b)
 Tests (case-sensitive) if string 1 before before string 2 in collation sequence.
bool operator> (const bt_xstring &a, const bt_xstring &b)
 Tests (case-sensitive) if string 1 comes after string 2 in collation sequence.
bool operator>= (const bt_xwstring &a, const bt_xwstring &b)
 Tests (case-sensitive) if string 1 comes before string 2 in collation sequence or is equal to string 2.
bool operator>= (const bt_xstring &a, const bt_xstring &b)
 Tests (case-sensitive) if string 1 comes after string 2 in collation sequence or is equal to string 2.

Detailed Description

The classes bt_xstring and bt_xwstring provide a means for storing and manipulating short text strings stored on the heap. The two classes are nearly identical except that bt_xstring stores 8-bit (char) characters while bt_xwstring stores wide 16-bit (BT_UInt16) characters.

Function Documentation

bool find ( const bt_xstring str,
char  search 
) [inline]

Tests (case-sensitive) if a character is in the string.

Parameters:
str Target string.
search Character to be located in string.

bool operator!= ( const bt_xwstring a,
const bt_xwstring b 
) [inline]

Tests (case-sensitive) for inequality.

Parameters:
a A bt_xwstring.
b A bt_xwstring.

bool operator!= ( const bt_xstring a,
const bt_xstring b 
) [inline]

Tests (case-sensitive) for inequality.

Parameters:
a A bt_xstring.
b A bt_xstring.

BT_UTILITIES_IMEX bt_xwstring operator+ ( const bt_xwstring s1,
const bt_xwstring s2 
)

Appends a bt_xwstring to a bt_xwstring.

Parameters:
s1 Target string.
s2 Source string.

BT_UTILITIES_IMEX bt_xstring operator+ ( const bt_xstring s1,
const bt_xstring s2 
)

Appends a bt_xstring to a bt_xstring.

Parameters:
s1 Target string.
s2 Source string.

BT_UTILITIES_IMEX bt_xwstring operator+ ( const bt_xwstring s,
BT_UInt16  c 
)

Appends a character to a bt_xwstring.

Parameters:
s Target string.
c Source character.

BT_UTILITIES_IMEX bt_xstring operator+ ( const bt_xstring s,
char  c 
)

Appends a character to a bt_xstring.

Parameters:
s Target string.
c Source character.

BT_UTILITIES_IMEX bt_xwstring operator+ ( const bt_xwstring s,
const BT_UInt16 s2 
)

Appends a string to a bt_xwstring.

Parameters:
s Target string.
s2 Source string.

BT_UTILITIES_IMEX bt_xstring operator+ ( const bt_xstring s,
const char *  s2 
)

Appends a string to a bt_xstring.

Parameters:
s Target string.
s2 Source string.

bool operator< ( const bt_xwstring a,
const bt_xwstring b 
) [inline]

Tests (case-sensitive) if string 1 comes before string 2 in collation sequence.

Parameters:
a First bt_xwstring.
b Second bt_xwstring.

bool operator< ( const bt_xstring a,
const bt_xstring b 
) [inline]

Tests (case-sensitive) if string 1 comes before string 2 in collation sequence.

Parameters:
a First bt_xstring.
b Second bt_xstring.

bool operator<= ( const bt_xwstring a,
const bt_xwstring b 
) [inline]

Tests (case-sensitive) if string 1 comes before string 2 in collation sequence or is equal to string 2.

Parameters:
a First bt_xwstring.
b Second bt_xwstring.

bool operator<= ( const bt_xstring a,
const bt_xstring b 
) [inline]

Tests (case-sensitive) if string 1 comes before string 2 in collation sequence or is equal to string 2.

Parameters:
a First bt_xstring.
b Second bt_xstring.

bool operator== ( const bt_xwstring a,
const bt_xwstring b 
) [inline]

Tests (case-sensitive) for equality.

Parameters:
a A bt_xwstring.
b A bt_xwstring.

bool operator== ( const bt_xstring a,
const bt_xstring b 
) [inline]

Tests (case-sensitive) for equality.

Parameters:
a A bt_xstring.
b A bt_xstring.

bool operator> ( const bt_xwstring a,
const bt_xwstring b 
) [inline]

Tests (case-sensitive) if string 1 before before string 2 in collation sequence.

Parameters:
a First bt_xwstring.
b Second bt_xwstring.

bool operator> ( const bt_xstring a,
const bt_xstring b 
) [inline]

Tests (case-sensitive) if string 1 comes after string 2 in collation sequence.

Parameters:
a First bt_xstring.
b Second bt_xstring.

bool operator>= ( const bt_xwstring a,
const bt_xwstring b 
) [inline]

Tests (case-sensitive) if string 1 comes before string 2 in collation sequence or is equal to string 2.

Parameters:
a First bt_xwstring.
b Second bt_xwstring.

bool operator>= ( const bt_xstring a,
const bt_xstring b 
) [inline]

Tests (case-sensitive) if string 1 comes after string 2 in collation sequence or is equal to string 2.

Parameters:
a First bt_xstring.
b Second bt_xstring.


Copyright © 2004-2008 Basis Technology Corporation. All Rights Reserved.