Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_String.cpp File Reference


Namespaces

namespace  CPLAT_Begin_Namespace_CPLAT

Defines

#define EOSChar   0xFFFF

Functions

template<class T>
next_arg (va_list &args)
static CP_String GenerateUIntNumber (UInt64 inValue, const CP_FormatAlex::CP_FormatToken &inToken, int inRadix, char *inSeparator, int *inGrouping, bool inUseCAPS=false)
static CP_String GenerateIntNumber (SInt64 inValue, const CP_FormatAlex::CP_FormatToken &inToken, int inRadix, char *inSeparator, int *inGrouping)
static CP_String GeneratePointerNumber (void *inValue, const CP_FormatAlex::CP_FormatToken &inToken)
static CP_String GenerateFloatNumber (double inValue, const CP_FormatAlex::CP_FormatToken &theToken)
static CP_String GenerateCPString (CP_String::StringRef inStringRef, const CP_FormatAlex::CP_FormatToken &inToken)
static CP_String GenerateCharacters (void *inChars, const CP_FormatAlex::CP_FormatToken &inToken)
CP_String operator+ (const CP_String &inLeftSide, const CP_String &inRightSide)
CP_String operator+ (const CPUniChar *inLeftSide, const CP_String &inRightSide)
CP_String operator+ (const CPUniChar inLeftSide, const CP_String &inRightSide)
CP_String operator+ (const CP_String &inLeftSide, const CPUniChar *inRightSide)
CP_String operator+ (const CP_String &inLeftSide, CPUniChar inRightSide)

Variables

CP_Mutex utf8_str_mutex

Define Documentation

#define EOSChar   0xFFFF
 


Function Documentation

template<class T>
T next_arg va_list &  args  )  [static]
 

static CP_String GenerateUIntNumber UInt64  inValue,
const CP_FormatAlex::CP_FormatToken inToken,
int  inRadix,
char *  inSeparator,
int *  inGrouping,
bool  inUseCAPS = false
[static]
 

Convert an unsigned long long integer into a string

Parameters:
inValue the number to get the string representation
inToken the token that contains all the information needed how to convert the number into a string
inRadix the base of the inValue (must be in the range 2 - 16 )
inSeparator string representing the thousands separator
inGrouping pointer to an array of int representing the thousands grouping (first number is the first group, second is for second group, ....)
inUseCAPS true if will use capitals to represent the hex numbers
Exceptions:
none 
Returns:
CP_String the string representation of the number according to the formating information contained in inToken

static CP_String GenerateIntNumber SInt64  inValue,
const CP_FormatAlex::CP_FormatToken inToken,
int  inRadix,
char *  inSeparator,
int *  inGrouping
[static]
 

Convert an long long integer into a string

Parameters:
inValue the number to get the string representation
inToken the token that contains all the information needed how to convert the number into a string
inRadix the base of the inValue (must be in the range 2 - 16 )
inSeparator string representing the thousands separator
inGrouping pointer to an array of int representing the thousands grouping (first number is the first group, second is for second group, ....)
Exceptions:
none 
Returns:
CP_String the string representation of the number according to the formating information contained in inToken

static CP_String GeneratePointerNumber void *  inValue,
const CP_FormatAlex::CP_FormatToken inToken
[static]
 

Convert an pointer (represented as unsigned long long integer) into a string

Parameters:
inValue the number to get the string representation
inToken the token that contains all the information needed how to convert the number into a string
Exceptions:
none 
Returns:
CP_String the string representation of the number according to the formating information contained in inToken

static CP_String GenerateFloatNumber double  inValue,
const CP_FormatAlex::CP_FormatToken theToken
[static]
 

Convert and doubler into a string

It will use sprintf to perform the conversion.

Parameters:
inValue the number to get the string representation
inToken the token that contains all the information needed how to convert the number into a string
Exceptions:
none 
Returns:
CP_String the string representation of the number according to the formating information contained in inToken

static CP_String GenerateCPString CP_String::StringRef  inStringRef,
const CP_FormatAlex::CP_FormatToken inToken
[static]
 

Copy the characters from inStringRef according to the information in formatToken

Parameters:
inStringRef the string reference representing the CP_String
inToken the token that contains all the information needed how to get the characters
Exceptions:
none 
Returns:
CP_String the string representation of the characters according to the formating information contained in inToken

static CP_String GenerateCharacters void *  inChars,
const CP_FormatAlex::CP_FormatToken inToken
[static]
 

Copy the characters from inChars according to the information in formatToken

Parameters:
inChars the characters to copy from (can be char* or wchar_t*)
inToken the token that contains all the information needed how to get the characters
Exceptions:
none 
Returns:
CP_String the string representation of the characters according to the formating information contained in inToken

CP_String operator+ const CP_String inLeftSide,
const CP_String inRightSide
 

Combines the contents of the passed in strings to each other and returns a new string.

Parameters:
inLeftSide First portion of the string.
inRightSide Second portion of the string. This is the portion of the string added to the passed in inLeftSide.
Exceptions:
none 
Returns:
CP_String Returns a new string containing the 2 passed in strings.

CP_String operator+ const CPUniChar inLeftSide,
const CP_String inRightSide
 

Combines the contents of the passed in strings to each other and returns a new string.

Parameters:
inLeftSide First portion of the string as a Unicode string.
inRightSide Second portion of the string. This is the portion of the string added to the passed in inLeftSide.
Exceptions:
none 
Returns:
CP_String Returns a new string containing the 2 passed in strings.

CP_String operator+ const CPUniChar  inLeftSide,
const CP_String inRightSide
 

Combines the contents of the passed in strings to each other and returns a new string.

Parameters:
inLeftSide Single Unicode character to start new string.
inRightSide Second portion of the string. This is the portion of the string added to the passed in inLeftSide.
Exceptions:
none 
Returns:
CP_String Returns a new string containing the 2 passed in strings.

CP_String operator+ const CP_String inLeftSide,
const CPUniChar inRightSide
 

Combines the contents of the passed in strings to each other and returns a new string.

Parameters:
inLeftSide First portion of the string.
inRightSide Second portion of the string. This is the portion of the string added to the passed in inLeftSide. The contents are a Unicode NULL terminated string.
Exceptions:
none 
Returns:
CP_String Returns a new string containing the 2 passed in strings.

CP_String operator+ const CP_String inLeftSide,
CPUniChar  inRightSide
 

Combines the contents of the passed in strings to each other and returns a new string.

Parameters:
inLeftSide First portion of the string as a CP_String.
inRightSide Second portion of the string. This is the portion of the string added to the passed in inLeftSide. This is a single CPUniChar.
Exceptions:
none 
Returns:
CP_String Returns a new string containing the 2 passed in strings.


Variable Documentation

CP_Mutex CPLAT_Begin_Namespace_CPLAT::utf8_str_mutex
 


Generated on Sat Sep 17 20:01:17 2005 for CPLAT by  doxygen 1.4.0