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

#include <wwstring.h>

Public Member Functions

 StringClass (bool hint_temporary)
 
 StringClass (int initial_len=0, bool hint_temporary=false)
 
 StringClass (const StringClass &string, bool hint_temporary=false)
 
 StringClass (const TCHAR *string, bool hint_temporary=false)
 
 StringClass (TCHAR ch, bool hint_temporary=false)
 
 StringClass (const WCHAR *string, bool hint_temporary=false)
 
 ~StringClass (void)
 
bool operator== (const TCHAR *rvalue) const
 
bool operator!= (const TCHAR *rvalue) const
 
const StringClassoperator= (const StringClass &string)
 
const StringClassoperator= (const TCHAR *string)
 
const StringClassoperator= (TCHAR ch)
 
const StringClassoperator= (const WCHAR *string)
 
const StringClassoperator+= (const StringClass &string)
 
const StringClassoperator+= (const TCHAR *string)
 
const StringClassoperator+= (TCHAR ch)
 
bool operator< (const TCHAR *string) const
 
bool operator<= (const TCHAR *string) const
 
bool operator> (const TCHAR *string) const
 
bool operator>= (const TCHAR *string) const
 
const TCHAR & operator[] (int index) const
 
TCHAR & operator[] (int index)
 
 operator const TCHAR * (void) const
 
int Compare (const TCHAR *string) const
 
int Compare_No_Case (const TCHAR *string) const
 
int Get_Length (void) const
 
bool Is_Empty (void) const
 
void Erase (int start_index, int char_count)
 
int _cdecl Format (const TCHAR *format,...)
 
int _cdecl Format_Args (const TCHAR *format, const va_list &arg_list)
 
void Trim (void)
 
TCHAR * Get_Buffer (int new_length)
 
TCHAR * Peek_Buffer (void)
 
const TCHAR * Peek_Buffer (void) const
 
bool Copy_Wide (const WCHAR *source)
 
void Release_Resources (void)
 

Friends

StringClass operator+ (const StringClass &string1, const StringClass &string2)
 
StringClass operator+ (const TCHAR *string1, const StringClass &string2)
 
StringClass operator+ (const StringClass &string1, const TCHAR *string2)
 

Detailed Description

Definition at line 71 of file wwstring.h.

Constructor & Destructor Documentation

◆ StringClass() [1/6]

StringClass::StringClass ( bool hint_temporary)
inline

Definition at line 264 of file wwstring.h.

◆ StringClass() [2/6]

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

Definition at line 277 of file wwstring.h.

◆ StringClass() [3/6]

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

Definition at line 302 of file wwstring.h.

◆ StringClass() [4/6]

StringClass::StringClass ( const TCHAR * string,
bool hint_temporary = false )
inline

Definition at line 317 of file wwstring.h.

◆ StringClass() [5/6]

StringClass::StringClass ( TCHAR ch,
bool hint_temporary = false )
inline

Definition at line 290 of file wwstring.h.

◆ StringClass() [6/6]

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

Definition at line 333 of file wwstring.h.

◆ ~StringClass()

StringClass::~StringClass ( void )
inline

Definition at line 349 of file wwstring.h.

Member Function Documentation

◆ Compare()

int StringClass::Compare ( const TCHAR * string) const
inline

Definition at line 369 of file wwstring.h.

◆ Compare_No_Case()

int StringClass::Compare_No_Case ( const TCHAR * string) const
inline

Definition at line 378 of file wwstring.h.

◆ Copy_Wide()

bool StringClass::Copy_Wide ( const WCHAR * source)

Definition at line 319 of file wwstring.cpp.

◆ Erase()

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

Definition at line 471 of file wwstring.h.

◆ Format()

int _cdecl StringClass::Format ( const TCHAR * format,
... )

Definition at line 273 of file wwstring.cpp.

◆ Format_Args()

int _cdecl StringClass::Format_Args ( const TCHAR * format,
const va_list & arg_list )

Definition at line 241 of file wwstring.cpp.

◆ Get_Buffer()

TCHAR * StringClass::Get_Buffer ( int new_length)
inline

Definition at line 549 of file wwstring.h.

◆ Get_Length()

int StringClass::Get_Length ( void ) const
inline

Definition at line 664 of file wwstring.h.

◆ Is_Empty()

bool StringClass::Is_Empty ( void ) const
inline

Definition at line 360 of file wwstring.h.

◆ operator const TCHAR *()

StringClass::operator const TCHAR * ( void ) const
inline

Definition at line 407 of file wwstring.h.

◆ operator!=()

bool StringClass::operator!= ( const TCHAR * rvalue) const
inline

Definition at line 425 of file wwstring.h.

◆ operator+=() [1/3]

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

Definition at line 578 of file wwstring.h.

◆ operator+=() [2/3]

const StringClass & StringClass::operator+= ( const TCHAR * string)
inline

Definition at line 505 of file wwstring.h.

◆ operator+=() [3/3]

const StringClass & StringClass::operator+= ( TCHAR ch)
inline

Definition at line 530 of file wwstring.h.

◆ operator<()

bool StringClass::operator< ( const TCHAR * string) const
inline

Definition at line 433 of file wwstring.h.

◆ operator<=()

bool StringClass::operator<= ( const TCHAR * string) const
inline

Definition at line 442 of file wwstring.h.

◆ operator=() [1/4]

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

Definition at line 201 of file wwstring.h.

◆ operator=() [2/4]

const StringClass & StringClass::operator= ( const TCHAR * string)
inline

Definition at line 216 of file wwstring.h.

◆ operator=() [3/4]

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

Definition at line 235 of file wwstring.h.

◆ operator=() [4/4]

const StringClass & StringClass::operator= ( TCHAR ch)
inline

Definition at line 249 of file wwstring.h.

◆ operator==()

bool StringClass::operator== ( const TCHAR * rvalue) const
inline

Definition at line 416 of file wwstring.h.

◆ operator>()

bool StringClass::operator> ( const TCHAR * string) const
inline

Definition at line 452 of file wwstring.h.

◆ operator>=()

bool StringClass::operator>= ( const TCHAR * string) const
inline

Definition at line 461 of file wwstring.h.

◆ operator[]() [1/2]

TCHAR & StringClass::operator[] ( int index)
inline

Definition at line 397 of file wwstring.h.

◆ operator[]() [2/2]

const TCHAR & StringClass::operator[] ( int index) const
inline

Definition at line 387 of file wwstring.h.

◆ Peek_Buffer() [1/2]

TCHAR * StringClass::Peek_Buffer ( void )
inline

Definition at line 560 of file wwstring.h.

◆ Peek_Buffer() [2/2]

const TCHAR * StringClass::Peek_Buffer ( void ) const
inline

Definition at line 569 of file wwstring.h.

◆ Release_Resources()

void StringClass::Release_Resources ( void )

Definition at line 309 of file wwstring.cpp.

◆ Trim()

void StringClass::Trim ( void )
inline

Definition at line 495 of file wwstring.h.

Friends And Related Symbol Documentation

◆ operator+ [1/3]

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

Definition at line 604 of file wwstring.h.

◆ operator+ [2/3]

StringClass operator+ ( const StringClass & string1,
const TCHAR * string2 )
friend

Definition at line 626 of file wwstring.h.

◆ operator+ [3/3]

StringClass operator+ ( const TCHAR * string1,
const StringClass & string2 )
friend

Definition at line 615 of file wwstring.h.


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