|
OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Privately used by TString to manage string pointers This is a reference counted union of various string representatons Constructors/destructors are private to enforce reference count model Create functions are used to facilitate rapid allocation schemes Null pointers are never stored; instead a static null object is ref'd. More...
#include <owl/string.h>
Public Member Functions | |
| TUString * | Assign (const TUString &s) |
| TUString * | Assign (const tstring &s) |
| TUString * | Assign (const char *s) |
| TUString * | Assign (char *s) |
| TUString * | Assign (const wchar_t *s) |
| TUString * | Assign (wchar_t *s) |
| TUString * | Assign (BSTR str, TLangId lang) |
| operator const char * () const | |
| operator char * () | |
| operator const wchar_t * () const | |
| operator wchar_t * () | |
| TUString & | operator++ () |
| Preincrement operator only. | |
| TUString & | operator-- () |
| Predecrement operator only. | |
| int | Length () const |
| Return appropriate string length. | |
| bool | IsNull () const |
| Is the string a null string? | |
| bool | IsWide () const |
| Are the string contents any kind of wide? | |
| void | RevokeBstr (BSTR s) |
| Used to restore if Created with loan==true. | |
| void | ReleaseBstr (BSTR s) |
| Used to unhook if Created with loan==true. | |
| BSTR | ConvertToBSTR () |
Static Public Member Functions | |
| static TUString * | Create (const char *str) |
| static TUString * | Create (char *str) |
| static TUString * | Create (const wchar_t *str) |
| static TUString * | Create (wchar_t *str) |
| static TUString * | Create (TSysStr &str, bool loan, TLangId lang=0) |
| static TUString * | Create (BSTR str, bool loan, TLangId lang=0) |
| static TUString * | Create (const tstring &str) |
| static wchar_t * | ConvertAtoW (const char *src, size_t len=(size_t) -1) |
| static char * | ConvertWtoA (const wchar_t *src, size_t len=(size_t) -1) |
| static BSTR | ConvertAtoBSTR (const char *src) |
Public Attributes | |
| TLangId | Lang |
Friends | |
| class | TString |
Privately used by TString to manage string pointers This is a reference counted union of various string representatons Constructors/destructors are private to enforce reference count model Create functions are used to facilitate rapid allocation schemes Null pointers are never stored; instead a static null object is ref'd.
| TUString * owl::TUString::Assign | ( | BSTR | str, |
| TLangId | lang ) |
Definition at line 448 of file ustring.cpp.
References Create(), Lang, and owl::TOleAuto::SysStringLen().
| TUString * owl::TUString::Assign | ( | char * | s | ) |
Definition at line 401 of file ustring.cpp.
References Create().
| TUString * owl::TUString::Assign | ( | const char * | s | ) |
Definition at line 386 of file ustring.cpp.
References Create().
| TUString * owl::TUString::Assign | ( | const tstring & | s | ) |
Definition at line 369 of file ustring.cpp.
References Create().
| TUString * owl::TUString::Assign | ( | const TUString & | s | ) |
Definition at line 357 of file ustring.cpp.
References CONST_CAST.
| TUString * owl::TUString::Assign | ( | const wchar_t * | s | ) |
Definition at line 417 of file ustring.cpp.
References Create().
| TUString * owl::TUString::Assign | ( | wchar_t * | s | ) |
Definition at line 432 of file ustring.cpp.
|
static |
Definition at line 90 of file ustring.cpp.
References alloca.
|
static |
Definition at line 57 of file ustring.cpp.
| BSTR owl::TUString::ConvertToBSTR | ( | ) |
Definition at line 194 of file ustring.cpp.
References CHECK, ConvertAtoBSTR(), and owl::SysAllocString().
|
static |
Definition at line 21 of file ustring.cpp.
References wcslen().
|
static |
Definition at line 331 of file ustring.cpp.
References owl::TOleAuto::SysFreeString(), and owl::TOleAuto::SysStringLen().
|
static |
Definition at line 313 of file ustring.cpp.
|
static |
Definition at line 307 of file ustring.cpp.
|
static |
Definition at line 347 of file ustring.cpp.
|
static |
Definition at line 319 of file ustring.cpp.
Definition at line 341 of file ustring.cpp.
References Create().
|
static |
Definition at line 325 of file ustring.cpp.
|
inline |
|
inline |
| int owl::TUString::Length | ( | ) | const |
Return appropriate string length.
Definition at line 527 of file ustring.cpp.
References owl::TOleAuto::SysStringLen(), and wcslen().
| owl::TUString::operator char * | ( | ) |
Definition at line 490 of file ustring.cpp.
| owl::TUString::operator const char * | ( | ) | const |
Definition at line 469 of file ustring.cpp.
References CONST_CAST.
| owl::TUString::operator const wchar_t * | ( | ) | const |
Definition at line 496 of file ustring.cpp.
References CONST_CAST.
| owl::TUString::operator wchar_t * | ( | ) |
Definition at line 517 of file ustring.cpp.
|
inline |
|
inline |
| void owl::TUString::ReleaseBstr | ( | BSTR | s | ) |
Used to unhook if Created with loan==true.
Definition at line 563 of file ustring.cpp.
References owl::TOleAuto::SysFreeString().
| void owl::TUString::RevokeBstr | ( | BSTR | s | ) |
Used to restore if Created with loan==true.
Definition at line 548 of file ustring.cpp.