|
OWLNext 6.32
|
#include <string.h>
Public Member Functions | |
| TString (const char *s=0) | |
| TString (const wchar_t *s) | |
| TString (BSTR s, bool loan) | |
| TString (TSysStr &s, bool loan) | |
| TString (const tstring &s) | |
| TString (TUString *s) | |
| TString (const TString &src) | |
| int | Length () const |
| bool | IsNull () const |
| bool | IsWide () const |
| TString & | operator= (const TString &s) |
| TString & | operator= (const tstring &s) |
| TString & | operator= (const char *s) |
| TString & | operator= (char *s) |
| TString & | operator= (const wchar_t *s) |
| TString & | operator= (wchar_t *s) |
| operator const char * () const | |
| operator char * () | |
| operator const wchar_t * () const | |
| operator wchar_t * () | |
| BSTR | AsBSTR () const |
| BSTR | RelinquishSysStr () const |
| wchar_t * | RelinquishWide () const |
| char * | RelinquishNarrow () const |
| tchar * | Relinquish () const |
| TLangId | GetLangId () |
| void | SetLangId (TLangId id) |
Protected Attributes | |
| TUString * | S |
Reference to reference counted string object TUString Lightweight reference object consisting of a pointer to actual object Facilitates copying and assignment with minimal string reallocations
| owl::TString::TString | ( | const char * | s = 0 | ) | [inline] |
| owl::TString::TString | ( | const wchar_t * | s | ) | [inline] |
Construct a TString from a wide character array.
| owl::TString::TString | ( | BSTR | s, |
| bool | loan | ||
| ) | [inline] |
Construct a TString from a BSTR (OLE String)
| owl::TString::TString | ( | TSysStr & | s, |
| bool | loan | ||
| ) | [inline] |
Construct a TString from a System string (BSTR)
| owl::TString::TString | ( | const tstring & | s | ) | [inline] |
Construct a TString from a string.
| owl::TString::TString | ( | const TString & | src | ) | [inline] |
| BSTR owl::TString::AsBSTR | ( | ) | const [inline] |
Return a BSTR object owned by 'this' (not by the caller)
| TLangId owl::TString::GetLangId | ( | ) | [inline] |
Get Language Id of this string.
| bool owl::TString::IsNull | ( | ) | const [inline] |
| bool owl::TString::IsWide | ( | ) | const [inline] |
Are the string contents any kind of wide?
Return true if string uses wide character set.
References owl::TUString::IsWide().
| int owl::TString::Length | ( | ) | const [inline] |
The length in characters of this string.
References owl::TUString::Length().
| owl::TString::operator char * | ( | ) | [inline] |
Return string as a char*.
| owl::TString::operator const char * | ( | ) | const [inline] |
Return string as a const char *.
| owl::TString::operator const wchar_t * | ( | ) | const [inline] |
Return string as a const wchar_t*.
| owl::TString::operator wchar_t * | ( | ) | [inline] |
Return string as a wchar_t*.
| TString & owl::TString::operator= | ( | const wchar_t * | s | ) | [inline] |
Copy contents of const wchar_t* s into this string.
Reimplemented in ocf::TAutoString.
Copy contents of TString s into this string.
| TString & owl::TString::operator= | ( | const tstring & | s | ) | [inline] |
Copy contents of string s into this string.
| TString & owl::TString::operator= | ( | char * | s | ) | [inline] |
Copy contents of char* s into this string.
Reimplemented in ocf::TAutoString.
| TString & owl::TString::operator= | ( | const char * | s | ) | [inline] |
Copy contents of const char* s into this string.
Reimplemented in ocf::TAutoString.
| TString & owl::TString::operator= | ( | wchar_t * | s | ) | [inline] |
Copy contents of wchar_t* s into this string.
Reimplemented in ocf::TAutoString.
| tchar * owl::TString::Relinquish | ( | ) | const [inline] |
Return a pointer (tchar*) to a copy of the string.
References RelinquishNarrow(), and RelinquishWide().
| char * owl::TString::RelinquishNarrow | ( | ) | const [inline] |
Return a pointer (char*) to a copy of the string.
| BSTR owl::TString::RelinquishSysStr | ( | ) | const [inline] |
Return a pointer (BSTR) to a copy of the string.
| wchar_t * owl::TString::RelinquishWide | ( | ) | const [inline] |
Return a pointer (wchar_t*) to a copy of the string.
| void owl::TString::SetLangId | ( | TLangId | id | ) | [inline] |
Set Language Id of this string.
1.7.4