Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
WideStringClass Class Reference

#include <widestring.h>

Public Member Functions

 WideStringClass (int initial_len=0, bool hint_temporary=false)
 
 WideStringClass (const WideStringClass &string, bool hint_temporary=false)
 
 WideStringClass (const WCHAR *string, bool hint_temporary=false)
 
 WideStringClass (WCHAR ch, bool hint_temporary=false)
 
 WideStringClass (const char *string, bool hint_temporary=false)
 
 ~WideStringClass (void)
 
bool operator== (const WCHAR *rvalue) const
 
bool operator!= (const WCHAR *rvalue) const
 
const WideStringClassoperator= (const WideStringClass &string)
 
const WideStringClassoperator= (const WCHAR *string)
 
const WideStringClassoperator= (WCHAR ch)
 
const WideStringClassoperator= (const char *string)
 
const WideStringClassoperator+= (const WideStringClass &string)
 
const WideStringClassoperator+= (const WCHAR *string)
 
const WideStringClassoperator+= (WCHAR ch)
 
bool operator< (const WCHAR *string) const
 
bool operator<= (const WCHAR *string) const
 
bool operator> (const WCHAR *string) const
 
bool operator>= (const WCHAR *string) const
 
WCHAR operator[] (int index) const
 
WCHAR & operator[] (int index)
 
 operator const WCHAR * (void) const
 
int Compare (const WCHAR *string) const
 
int Compare_No_Case (const WCHAR *string) const
 
int Get_Length (void) const
 
bool Is_Empty (void) const
 
void Erase (int start_index, int char_count)
 
int _cdecl Format (const WCHAR *format,...)
 
int _cdecl Format_Args (const WCHAR *format, const va_list &arg_list)
 
bool Convert_From (const char *text)
 
bool Convert_To (StringClass &string)
 
bool Convert_To (StringClass &string) const
 
void Trim (void)
 
bool Is_ANSI (void)
 
WCHAR * Get_Buffer (int new_length)
 
WCHAR * Peek_Buffer (void)
 

Static Public Member Functions

static void Release_Resources (void)
 

Friends

WideStringClass operator+ (const WideStringClass &string1, const WideStringClass &string2)
 
WideStringClass operator+ (const WCHAR *string1, const WideStringClass &string2)
 
WideStringClass operator+ (const WideStringClass &string1, const WCHAR *string2)
 

Detailed Description

Definition at line 64 of file widestring.h.

Constructor & Destructor Documentation

◆ WideStringClass() [1/5]

WideStringClass::WideStringClass ( int initial_len = 0,
bool hint_temporary = false )
inline

Definition at line 199 of file widestring.h.

◆ WideStringClass() [2/5]

WideStringClass::WideStringClass ( const WideStringClass & string,
bool hint_temporary = false )
inline

Definition at line 224 of file widestring.h.

◆ WideStringClass() [3/5]

WideStringClass::WideStringClass ( const WCHAR * string,
bool hint_temporary = false )
inline

Definition at line 239 of file widestring.h.

◆ WideStringClass() [4/5]

WideStringClass::WideStringClass ( WCHAR ch,
bool hint_temporary = false )
inline

Definition at line 212 of file widestring.h.

◆ WideStringClass() [5/5]

WideStringClass::WideStringClass ( const char * string,
bool hint_temporary = false )
inline

Definition at line 256 of file widestring.h.

◆ ~WideStringClass()

WideStringClass::~WideStringClass ( void )
inline

Definition at line 271 of file widestring.h.

Member Function Documentation

◆ Compare()

int WideStringClass::Compare ( const WCHAR * string) const
inline

Definition at line 291 of file widestring.h.

◆ Compare_No_Case()

int WideStringClass::Compare_No_Case ( const WCHAR * string) const
inline

Definition at line 304 of file widestring.h.

◆ Convert_From()

bool WideStringClass::Convert_From ( const char * text)

Definition at line 321 of file widestring.cpp.

◆ Convert_To() [1/2]

bool WideStringClass::Convert_To ( StringClass & string)
inline

Definition at line 773 of file widestring.h.

◆ Convert_To() [2/2]

bool WideStringClass::Convert_To ( StringClass & string) const
inline

Definition at line 780 of file widestring.h.

◆ Erase()

void WideStringClass::Erase ( int start_index,
int char_count )
inline

Definition at line 423 of file widestring.h.

◆ Format()

int _cdecl WideStringClass::Format ( const WCHAR * format,
... )

Definition at line 278 of file widestring.cpp.

◆ Format_Args()

int _cdecl WideStringClass::Format_Args ( const WCHAR * format,
const va_list & arg_list )

Definition at line 247 of file widestring.cpp.

◆ Get_Buffer()

WCHAR * WideStringClass::Get_Buffer ( int new_length)
inline

Definition at line 545 of file widestring.h.

◆ Get_Length()

int WideStringClass::Get_Length ( void ) const
inline

Definition at line 650 of file widestring.h.

◆ Is_ANSI()

bool WideStringClass::Is_ANSI ( void )

Definition at line 348 of file widestring.cpp.

◆ Is_Empty()

bool WideStringClass::Is_Empty ( void ) const
inline

Definition at line 282 of file widestring.h.

◆ operator const WCHAR *()

WideStringClass::operator const WCHAR * ( void ) const
inline

Definition at line 334 of file widestring.h.

◆ operator!=()

bool WideStringClass::operator!= ( const WCHAR * rvalue) const
inline

Definition at line 352 of file widestring.h.

◆ operator+=() [1/3]

const WideStringClass & WideStringClass::operator+= ( const WCHAR * string)
inline

Definition at line 500 of file widestring.h.

◆ operator+=() [2/3]

const WideStringClass & WideStringClass::operator+= ( const WideStringClass & string)
inline

Definition at line 565 of file widestring.h.

◆ operator+=() [3/3]

const WideStringClass & WideStringClass::operator+= ( WCHAR ch)
inline

Definition at line 526 of file widestring.h.

◆ operator<()

bool WideStringClass::operator< ( const WCHAR * string) const
inline

Definition at line 369 of file widestring.h.

◆ operator<=()

bool WideStringClass::operator<= ( const WCHAR * string) const
inline

Definition at line 382 of file widestring.h.

◆ operator=() [1/4]

const WideStringClass & WideStringClass::operator= ( const char * string)
inline

Definition at line 475 of file widestring.h.

◆ operator=() [2/4]

const WideStringClass & WideStringClass::operator= ( const WCHAR * string)
inline

Definition at line 458 of file widestring.h.

◆ operator=() [3/4]

const WideStringClass & WideStringClass::operator= ( const WideStringClass & string)
inline

Definition at line 361 of file widestring.h.

◆ operator=() [4/4]

const WideStringClass & WideStringClass::operator= ( WCHAR ch)
inline

Definition at line 485 of file widestring.h.

◆ operator==()

bool WideStringClass::operator== ( const WCHAR * rvalue) const
inline

Definition at line 343 of file widestring.h.

◆ operator>()

bool WideStringClass::operator> ( const WCHAR * string) const
inline

Definition at line 396 of file widestring.h.

◆ operator>=()

bool WideStringClass::operator>= ( const WCHAR * string) const
inline

Definition at line 409 of file widestring.h.

◆ operator[]() [1/2]

WCHAR & WideStringClass::operator[] ( int index)
inline

Definition at line 324 of file widestring.h.

◆ operator[]() [2/2]

WCHAR WideStringClass::operator[] ( int index) const
inline

Definition at line 317 of file widestring.h.

◆ Peek_Buffer()

WCHAR * WideStringClass::Peek_Buffer ( void )
inline

Definition at line 556 of file widestring.h.

◆ Release_Resources()

void WideStringClass::Release_Resources ( void )
static

Definition at line 313 of file widestring.cpp.

◆ Trim()

void WideStringClass::Trim ( void )
inline

Definition at line 446 of file widestring.h.

Friends And Related Symbol Documentation

◆ operator+ [1/3]

WideStringClass operator+ ( const WCHAR * string1,
const WideStringClass & string2 )
friend

Definition at line 602 of file widestring.h.

◆ operator+ [2/3]

WideStringClass operator+ ( const WideStringClass & string1,
const WCHAR * string2 )
friend

Definition at line 613 of file widestring.h.

◆ operator+ [3/3]

WideStringClass operator+ ( const WideStringClass & string1,
const WideStringClass & string2 )
friend

Definition at line 591 of file widestring.h.


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