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

#include <wstring.h>

Public Member Functions

 Wstring ()
 
 Wstring (IN const Wstring &other)
 
 Wstring (IN char *string)
 
 ~Wstring ()
 
void clear (void)
 
bit8 cat (IN char *string)
 
bit8 cat (uint32 size, IN char *string)
 
bit8 cat (IN Wstring &string)
 
void cellCopy (OUT char *dest, uint32 len)
 
char remove (sint32 pos, sint32 count)
 
bit8 removeChar (char c)
 
void removeSpaces (void)
 
char * get (void)
 
char get (uint32 index)
 
uint32 length (void)
 
bit8 insert (char c, uint32 pos)
 
bit8 insert (char *instring, uint32 pos)
 
bit8 replace (IN char *replaceThis, IN char *withThis)
 
char set (IN char *str)
 
char set (uint32 size, IN char *str)
 
bit8 set (char c, uint32 index)
 
void setSize (sint32 bytes)
 
void toLower (void)
 
void toUpper (void)
 
bit8 truncate (uint32 len)
 
bit8 truncate (char c)
 
sint32 getToken (int offset, char *delim, Wstring &out)
 
sint32 getLine (int offset, Wstring &out)
 
bit8 operator== (IN char *other)
 
bit8 operator== (IN Wstring &other)
 
bit8 operator!= (IN char *other)
 
bit8 operator!= (IN Wstring &other)
 
Wstringoperator= (IN char *other)
 
Wstringoperator= (IN Wstring &other)
 
Wstringoperator+= (IN char *other)
 
Wstringoperator+= (IN Wstring &other)
 
Wstring operator+ (IN char *other)
 
Wstring operator+ (IN Wstring &other)
 
 Wstring ()
 
 Wstring (IN Wstring &other)
 
 Wstring (IN char *string)
 
 ~Wstring ()
 
void clear (void)
 
bit8 cat (IN char *string)
 
bit8 cat (uint32 size, IN char *string)
 
bit8 cat (IN Wstring &string)
 
void cellCopy (OUT char *dest, uint32 len)
 
char remove (sint32 pos, sint32 count)
 
bit8 removeChar (char c)
 
void removeSpaces (void)
 
char * get (void) RO
 
char get (uint32 index) RO
 
uint32 length (void) RO
 
bit8 insert (char c, uint32 pos)
 
bit8 insert (char *instring, uint32 pos)
 
bit8 beautifyNumber ()
 
bit8 replace (IN char *replaceThis, IN char *withThis)
 
char set (IN char *str)
 
char set (uint32 size, IN char *str)
 
bit8 set (char c, uint32 index)
 
char setFormatted (IN char *str,...)
 
void setSize (sint32 bytes)
 
void toLower (void)
 
void toUpper (void)
 
bit8 truncate (uint32 len)
 
bit8 truncate (char c)
 
sint32 getToken (int offset, char *delim, Wstring &out) RO
 
sint32 getLine (int offset, Wstring &out)
 
void strgrow (int length)
 
bit8 operator== (IN char *other) RO
 
bit8 operator== (IN Wstring &other) RO
 
bit8 operator!= (IN char *other) RO
 
bit8 operator!= (IN Wstring &other) RO
 
Wstringoperator= (IN char *other)
 
Wstringoperator= (IN Wstring &other)
 
Wstringoperator+= (IN char *other)
 
Wstringoperator+= (IN Wstring &other)
 
Wstring operator+ (IN char *other)
 
Wstring operator+ (IN Wstring &other)
 
bool operator< (IN Wstring &other) RO
 
 Wstring ()
 
 Wstring (IN Wstring &other)
 
 Wstring (IN char *string)
 
 ~Wstring ()
 
void clear (void)
 
bit8 cat (IN char *string)
 
bit8 cat (uint32 size, IN char *string)
 
bit8 cat (IN Wstring &string)
 
void cellCopy (OUT char *dest, uint32 len)
 
char remove (sint32 pos, sint32 count)
 
bit8 removeChar (char c)
 
void removeSpaces (void)
 
char * get (void) RO
 
char get (uint32 index) RO
 
uint32 length (void) RO
 
bit8 insert (char c, uint32 pos)
 
bit8 insert (char *instring, uint32 pos)
 
bit8 beautifyNumber ()
 
bit8 replace (IN char *replaceThis, IN char *withThis)
 
char set (IN char *str)
 
char set (uint32 size, IN char *str)
 
bit8 set (char c, uint32 index)
 
char setFormatted (IN char *str,...)
 
void setSize (sint32 bytes)
 
void toLower (void)
 
void toUpper (void)
 
bit8 truncate (uint32 len)
 
bit8 truncate (char c)
 
sint32 getToken (int offset, char *delim, Wstring &out) RO
 
sint32 getLine (int offset, Wstring &out)
 
void strgrow (int length)
 
bit8 operator== (IN char *other) RO
 
bit8 operator== (IN Wstring &other) RO
 
bit8 operator!= (IN char *other) RO
 
bit8 operator!= (IN Wstring &other) RO
 
Wstringoperator= (IN char *other)
 
Wstringoperator= (IN Wstring &other)
 
Wstringoperator+= (IN char *other)
 
Wstringoperator+= (IN Wstring &other)
 
Wstring operator+ (IN char *other)
 
Wstring operator+ (IN Wstring &other)
 
bool operator< (IN Wstring &other) RO
 

Detailed Description

Definition at line 36 of file wstring.h.

Constructor & Destructor Documentation

◆ Wstring() [1/9]

Wstring::Wstring ( )

Definition at line 39 of file wstring.cpp.

◆ Wstring() [2/9]

Wstring::Wstring ( IN const Wstring & other)

Definition at line 45 of file wstring.cpp.

◆ Wstring() [3/9]

Wstring::Wstring ( IN char * string)

Definition at line 42 of file wstring.cpp.

◆ ~Wstring() [1/3]

Wstring::~Wstring ( )

Definition at line 54 of file wstring.cpp.

◆ Wstring() [4/9]

Wstring::Wstring ( )

◆ Wstring() [5/9]

Wstring::Wstring ( IN Wstring & other)

Definition at line 48 of file wstring.cpp.

◆ Wstring() [6/9]

Wstring::Wstring ( IN char * string)

◆ ~Wstring() [2/3]

Wstring::~Wstring ( )

◆ Wstring() [7/9]

Wstring::Wstring ( )

◆ Wstring() [8/9]

Wstring::Wstring ( IN Wstring & other)

◆ Wstring() [9/9]

Wstring::Wstring ( IN char * string)

◆ ~Wstring() [3/3]

Wstring::~Wstring ( )

Member Function Documentation

◆ beautifyNumber() [1/2]

bit8 Wstring::beautifyNumber ( )

Definition at line 349 of file wstring.cpp.

◆ beautifyNumber() [2/2]

bit8 Wstring::beautifyNumber ( )

◆ cat() [1/9]

bit8 Wstring::cat ( IN char * string)

Definition at line 123 of file wstring.cpp.

◆ cat() [2/9]

bit8 Wstring::cat ( IN char * string)

◆ cat() [3/9]

bit8 Wstring::cat ( IN char * string)

◆ cat() [4/9]

bit8 Wstring::cat ( IN Wstring & string)

Definition at line 198 of file wstring.cpp.

◆ cat() [5/9]

bit8 Wstring::cat ( IN Wstring & string)

◆ cat() [6/9]

bit8 Wstring::cat ( IN Wstring & string)

◆ cat() [7/9]

bit8 Wstring::cat ( uint32 size,
IN char * string )

Definition at line 162 of file wstring.cpp.

◆ cat() [8/9]

bit8 Wstring::cat ( uint32 size,
IN char * string )

◆ cat() [9/9]

bit8 Wstring::cat ( uint32 size,
IN char * string )

◆ cellCopy() [1/3]

void Wstring::cellCopy ( OUT char * dest,
uint32 len )

◆ cellCopy() [2/3]

void Wstring::cellCopy ( OUT char * dest,
uint32 len )

◆ cellCopy() [3/3]

void Wstring::cellCopy ( OUT char * dest,
uint32 len )

◆ clear() [1/3]

void Wstring::clear ( void )

Definition at line 310 of file wstring.cpp.

◆ clear() [2/3]

void Wstring::clear ( void )

◆ clear() [3/3]

void Wstring::clear ( void )

◆ get() [1/6]

char Wstring::get ( uint32 index)

Definition at line 343 of file wstring.cpp.

◆ get() [2/6]

char Wstring::get ( uint32 index)

◆ get() [3/6]

char Wstring::get ( uint32 index)

◆ get() [4/6]

char * Wstring::get ( void )

Definition at line 336 of file wstring.cpp.

◆ get() [5/6]

char * Wstring::get ( void )

◆ get() [6/6]

char * Wstring::get ( void )

◆ getLine() [1/3]

sint32 Wstring::getLine ( int offset,
Wstring & out )

Definition at line 590 of file wstring.cpp.

◆ getLine() [2/3]

sint32 Wstring::getLine ( int offset,
Wstring & out )

◆ getLine() [3/3]

sint32 Wstring::getLine ( int offset,
Wstring & out )

◆ getToken() [1/3]

sint32 Wstring::getToken ( int offset,
char * delim,
Wstring & out )

Definition at line 566 of file wstring.cpp.

◆ getToken() [2/3]

sint32 Wstring::getToken ( int offset,
char * delim,
Wstring & out )

◆ getToken() [3/3]

sint32 Wstring::getToken ( int offset,
char * delim,
Wstring & out )

◆ insert() [1/6]

bit8 Wstring::insert ( char * instring,
uint32 pos )

Definition at line 359 of file wstring.cpp.

◆ insert() [2/6]

bit8 Wstring::insert ( char * instring,
uint32 pos )

◆ insert() [3/6]

bit8 Wstring::insert ( char * instring,
uint32 pos )

◆ insert() [4/6]

bit8 Wstring::insert ( char c,
uint32 pos )

Definition at line 382 of file wstring.cpp.

◆ insert() [5/6]

bit8 Wstring::insert ( char c,
uint32 pos )

◆ insert() [6/6]

bit8 Wstring::insert ( char c,
uint32 pos )

◆ length() [1/3]

uint32 Wstring::length ( void )

Definition at line 350 of file wstring.cpp.

◆ length() [2/3]

uint32 Wstring::length ( void )

◆ length() [3/3]

uint32 Wstring::length ( void )

◆ operator!=() [1/6]

bit8 Wstring::operator!= ( IN char * other)

Definition at line 82 of file wstring.cpp.

◆ operator!=() [2/6]

bit8 Wstring::operator!= ( IN char * other)

◆ operator!=() [3/6]

bit8 Wstring::operator!= ( IN char * other)

◆ operator!=() [4/6]

bit8 Wstring::operator!= ( IN Wstring & other)

Definition at line 91 of file wstring.cpp.

◆ operator!=() [5/6]

bit8 Wstring::operator!= ( IN Wstring & other)

◆ operator!=() [6/6]

bit8 Wstring::operator!= ( IN Wstring & other)

◆ operator+() [1/6]

Wstring Wstring::operator+ ( IN char * other)

Definition at line 215 of file wstring.cpp.

◆ operator+() [2/6]

Wstring Wstring::operator+ ( IN char * other)

◆ operator+() [3/6]

Wstring Wstring::operator+ ( IN char * other)

◆ operator+() [4/6]

Wstring Wstring::operator+ ( IN Wstring & other)

Definition at line 222 of file wstring.cpp.

◆ operator+() [5/6]

Wstring Wstring::operator+ ( IN Wstring & other)

◆ operator+() [6/6]

Wstring Wstring::operator+ ( IN Wstring & other)

◆ operator+=() [1/6]

Wstring & Wstring::operator+= ( IN char * other)

Definition at line 203 of file wstring.cpp.

◆ operator+=() [2/6]

Wstring & Wstring::operator+= ( IN char * other)

◆ operator+=() [3/6]

Wstring & Wstring::operator+= ( IN char * other)

◆ operator+=() [4/6]

Wstring & Wstring::operator+= ( IN Wstring & other)

Definition at line 209 of file wstring.cpp.

◆ operator+=() [5/6]

Wstring & Wstring::operator+= ( IN Wstring & other)

◆ operator+=() [6/6]

Wstring & Wstring::operator+= ( IN Wstring & other)

◆ operator<() [1/2]

bool Wstring::operator< ( IN Wstring & other)

Definition at line 63 of file wstring.cpp.

◆ operator<() [2/2]

bool Wstring::operator< ( IN Wstring & other)

◆ operator=() [1/6]

Wstring & Wstring::operator= ( IN char * other)

Definition at line 123 of file wstring.cpp.

◆ operator=() [2/6]

Wstring & Wstring::operator= ( IN char * other)

◆ operator=() [3/6]

Wstring & Wstring::operator= ( IN char * other)

◆ operator=() [4/6]

Wstring & Wstring::operator= ( IN Wstring & other)

Definition at line 113 of file wstring.cpp.

◆ operator=() [5/6]

Wstring & Wstring::operator= ( IN Wstring & other)

◆ operator=() [6/6]

Wstring & Wstring::operator= ( IN Wstring & other)

◆ operator==() [1/6]

bit8 Wstring::operator== ( IN char * other)

Definition at line 57 of file wstring.cpp.

◆ operator==() [2/6]

bit8 Wstring::operator== ( IN char * other)

◆ operator==() [3/6]

bit8 Wstring::operator== ( IN char * other)

◆ operator==() [4/6]

bit8 Wstring::operator== ( IN Wstring & other)

Definition at line 67 of file wstring.cpp.

◆ operator==() [5/6]

bit8 Wstring::operator== ( IN Wstring & other)

◆ operator==() [6/6]

bit8 Wstring::operator== ( IN Wstring & other)

◆ remove() [1/3]

char Wstring::remove ( sint32 pos,
sint32 count )

Definition at line 236 of file wstring.cpp.

◆ remove() [2/3]

char Wstring::remove ( sint32 pos,
sint32 count )

◆ remove() [3/3]

char Wstring::remove ( sint32 pos,
sint32 count )

◆ removeChar() [1/3]

bit8 Wstring::removeChar ( char c)

Definition at line 277 of file wstring.cpp.

◆ removeChar() [2/3]

bit8 Wstring::removeChar ( char c)

◆ removeChar() [3/3]

bit8 Wstring::removeChar ( char c)

◆ removeSpaces() [1/3]

void Wstring::removeSpaces ( void )

Definition at line 304 of file wstring.cpp.

◆ removeSpaces() [2/3]

void Wstring::removeSpaces ( void )

◆ removeSpaces() [3/3]

void Wstring::removeSpaces ( void )

◆ replace() [1/3]

bit8 Wstring::replace ( IN char * replaceThis,
IN char * withThis )

Definition at line 374 of file wstring.cpp.

◆ replace() [2/3]

bit8 Wstring::replace ( IN char * replaceThis,
IN char * withThis )

◆ replace() [3/3]

bit8 Wstring::replace ( IN char * replaceThis,
IN char * withThis )

◆ set() [1/9]

bit8 Wstring::set ( char c,
uint32 index )

Definition at line 477 of file wstring.cpp.

◆ set() [2/9]

bit8 Wstring::set ( char c,
uint32 index )

◆ set() [3/9]

bit8 Wstring::set ( char c,
uint32 index )

◆ set() [4/9]

bit8 Wstring::set ( IN char * str)

Definition at line 458 of file wstring.cpp.

◆ set() [5/9]

char Wstring::set ( IN char * str)

◆ set() [6/9]

char Wstring::set ( IN char * str)

◆ set() [7/9]

char Wstring::set ( uint32 size,
IN char * str )

Definition at line 488 of file wstring.cpp.

◆ set() [8/9]

char Wstring::set ( uint32 size,
IN char * str )

◆ set() [9/9]

char Wstring::set ( uint32 size,
IN char * str )

◆ setFormatted() [1/2]

char Wstring::setFormatted ( IN char * str,
... )

Definition at line 447 of file wstring.cpp.

◆ setFormatted() [2/2]

char Wstring::setFormatted ( IN char * str,
... )

◆ setSize() [1/3]

void Wstring::setSize ( sint32 bytes)

Definition at line 317 of file wstring.cpp.

◆ setSize() [2/3]

void Wstring::setSize ( sint32 bytes)

◆ setSize() [3/3]

void Wstring::setSize ( sint32 bytes)

◆ strgrow() [1/2]

void Wstring::strgrow ( int length)

Definition at line 577 of file wstring.cpp.

◆ strgrow() [2/2]

void Wstring::strgrow ( int length)

◆ toLower() [1/3]

void Wstring::toLower ( void )

Definition at line 511 of file wstring.cpp.

◆ toLower() [2/3]

void Wstring::toLower ( void )

◆ toLower() [3/3]

void Wstring::toLower ( void )

◆ toUpper() [1/3]

void Wstring::toUpper ( void )

Definition at line 525 of file wstring.cpp.

◆ toUpper() [2/3]

void Wstring::toUpper ( void )

◆ toUpper() [3/3]

void Wstring::toUpper ( void )

◆ truncate() [1/6]

bit8 Wstring::truncate ( char c)

Definition at line 549 of file wstring.cpp.

◆ truncate() [2/6]

bit8 Wstring::truncate ( char c)

◆ truncate() [3/6]

bit8 Wstring::truncate ( char c)

◆ truncate() [4/6]

bit8 Wstring::truncate ( uint32 len)

Definition at line 539 of file wstring.cpp.

◆ truncate() [5/6]

bit8 Wstring::truncate ( uint32 len)

◆ truncate() [6/6]

bit8 Wstring::truncate ( uint32 len)

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