OWLNext 6.32
Public Member Functions | Protected Attributes
owl::TString Class Reference

#include <string.h>

Inheritance diagram for owl::TString:
ocf::TAutoString

List of all members.

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
TStringoperator= (const TString &s)
TStringoperator= (const tstring &s)
TStringoperator= (const char *s)
TStringoperator= (char *s)
TStringoperator= (const wchar_t *s)
TStringoperator= (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

TUStringS

Detailed Description

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


Constructor & Destructor Documentation

owl::TString::TString ( const char *  s = 0) [inline]

Construct a TString from any type of string.

Construct a TString from a character array.

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 ( TUString s) [inline]

Construct a TString from a TUString.

owl::TString::TString ( const TString src) [inline]

Construct a TString from a TString (Copy Constructor)


Member Function Documentation

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]

Is the string NULL?

Return true if string is empty.

References owl::TUString::IsNull().

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.

TString & owl::TString::operator= ( const TString s) [inline]

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.


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