OWLNext    7.0
Borland's Object Windows Library for the modern age
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ocf::TAutoString Class Reference

Based on reference counted TString with added automation functionality. More...

#include <ocf/autodefs.h>

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

Public Member Functions

 TAutoString (const char *s=0)
 
 TAutoString (const wchar_t *s)
 
 TAutoString (BSTR s, bool loan)
 
 TAutoString (const owl::tstring &s)
 
 TAutoString (owl::TUString *s)
 
 TAutoString (TAutoVal &val)
 
 TAutoString (const TAutoString &src)
 
TAutoStringoperator= (const char *s)
 
TAutoStringoperator= (const TAutoString &s)
 
TAutoStringoperator= (char *s)
 
TAutoStringoperator= (const wchar_t *s)
 
TAutoStringoperator= (wchar_t *s)
 
TAutoStringoperator= (TAutoVal &val)
 
- Public Member Functions inherited from owl::TString
 TString (const char *s=0)
 Construct a TString from any type of string.
 
 TString (const wchar_t *s)
 Construct a TString from a wide character array.
 
 TString (BSTR s, bool loan)
 Construct a TString from a BSTR (OLE String)
 
 TString (TSysStr &s, bool loan)
 Construct a TString from a System string (BSTR)
 
 TString (const tstring &s)
 Construct a TString from a string.
 
 TString (TUString *s)
 Construct a TString from a TUString.
 
 TString (const TString &src)
 Construct a TString from a TString (Copy Constructor)
 
 ~TString ()
 
int Length () const
 The length in characters of this string.
 
bool IsNull () const
 Is the string NULL?
 
bool IsWide () const
 Are the string contents any kind of wide?
 
TStringoperator= (const TString &s)
 Copy contents of TString s into this string.
 
TStringoperator= (const tstring &s)
 Copy contents of string s into this string.
 
TStringoperator= (const char *s)
 Copy contents of const char* s into this string.
 
TStringoperator= (char *s)
 Copy contents of char* s into this string.
 
TStringoperator= (const wchar_t *s)
 Copy contents of const wchar_t* s into this string.
 
TStringoperator= (wchar_t *s)
 Copy contents of wchar_t* s into this string.
 
 operator const char * () const
 Return string as a const char *.
 
 operator char * ()
 Return string as a char*.
 
 operator const wchar_t * () const
 Return string as a const wchar_t*.
 
 operator wchar_t * ()
 Return string as a wchar_t*.
 
BSTR AsBSTR () const
 Return a BSTR object owned by 'this' (not by the caller)
 
BSTR RelinquishSysStr () const
 Return a pointer (BSTR) to a copy of the string.
 
wchar_tRelinquishWide () const
 Return a pointer (wchar_t*) to a copy of the string.
 
charRelinquishNarrow () const
 Return a pointer (char*) to a copy of the string.
 
tcharRelinquish () const
 Return a pointer (tchar*) to a copy of the string.
 
TLangId GetLangId ()
 Get Language Id of this string.
 
void SetLangId (TLangId id)
 Set Language Id of this string.
 

Static Public Attributes

static TAutoType ClassInfo = {atString}
 

Additional Inherited Members

- Protected Attributes inherited from owl::TString
TUStringS
 

Detailed Description

Based on reference counted TString with added automation functionality.

Definition at line 492 of file autodefs.h.

Constructor & Destructor Documentation

◆ TAutoString() [1/7]

ocf::TAutoString::TAutoString ( const char * s = 0)
inline

Definition at line 494 of file autodefs.h.

◆ TAutoString() [2/7]

ocf::TAutoString::TAutoString ( const wchar_t * s)
inline

Definition at line 495 of file autodefs.h.

◆ TAutoString() [3/7]

ocf::TAutoString::TAutoString ( BSTR s,
bool loan )
inline

Definition at line 496 of file autodefs.h.

◆ TAutoString() [4/7]

ocf::TAutoString::TAutoString ( const owl::tstring & s)
inline

Definition at line 497 of file autodefs.h.

◆ TAutoString() [5/7]

ocf::TAutoString::TAutoString ( owl::TUString * s)
inline

Definition at line 498 of file autodefs.h.

◆ TAutoString() [6/7]

ocf::TAutoString::TAutoString ( TAutoVal & val)
inlineexplicit

Definition at line 1545 of file autodefs.h.

◆ TAutoString() [7/7]

ocf::TAutoString::TAutoString ( const TAutoString & src)
inline

Definition at line 500 of file autodefs.h.

Member Function Documentation

◆ operator=() [1/6]

TAutoString & ocf::TAutoString::operator= ( char * s)
inline

Definition at line 504 of file autodefs.h.

◆ operator=() [2/6]

TAutoString & ocf::TAutoString::operator= ( const char * s)
inline

Definition at line 502 of file autodefs.h.

◆ operator=() [3/6]

TAutoString & ocf::TAutoString::operator= ( const TAutoString & s)
inline

Definition at line 503 of file autodefs.h.

References owl::TString::S.

◆ operator=() [4/6]

TAutoString & ocf::TAutoString::operator= ( const wchar_t * s)
inline

Definition at line 505 of file autodefs.h.

◆ operator=() [5/6]

TAutoString & ocf::TAutoString::operator= ( TAutoVal & val)
inline

Definition at line 1555 of file autodefs.h.

References owl::TString::S.

◆ operator=() [6/6]

TAutoString & ocf::TAutoString::operator= ( wchar_t * s)
inline

Definition at line 506 of file autodefs.h.

Member Data Documentation

◆ ClassInfo

TAutoType ocf::TAutoString::ClassInfo = {atString}
static

Definition at line 509 of file autodefs.h.


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