Setter Methods. These set the MaxString's content based on the string passed in.

Setter Methods. These set the MaxString's content based on the string passed in.

Module description

Functions

void SetCP (UINT codepage, const char *string, size_t length=(size_t)-1)
 Reinitializes the instance with the specified string and code page. More...
 
void SetACP (const char *string, size_t length=(size_t)-1)
 Reinitializes the instance with the specified Active Code Page (ACP) string. More...
 
void SetUTF8 (const char *string, size_t length=(size_t)-1)
 Reinitializes the instance with the specified UTF8 string. More...
 
void SetUTF16 (const wchar_t *string, size_t length=(size_t)-1)
 Reinitializes the instance with the specified UTF16 string. More...
 

Function Documentation

void SetCP ( UINT  codepage,
const char *  string,
size_t  length = (size_t)-1 
)

Reinitializes the instance with the specified string and code page.

Parameters
codepage- The encoding of the string passed in.
string- The new text to replace this string with
length- Length in characters of the string parameter. Use this only when you already know the size of the string getting passed in. Otherwise leave the parameter out, and by default the function will compute the length for you.
void SetACP ( const char *  string,
size_t  length = (size_t)-1 
)

Reinitializes the instance with the specified Active Code Page (ACP) string.

Parameters
string- The new text to replace this string with
length- Length in characters of the string parameter. Use this only when you already know the size of the string getting passed in. Otherwise leave the parameter out, and by default the function will compute the length for you.
void SetUTF8 ( const char *  string,
size_t  length = (size_t)-1 
)

Reinitializes the instance with the specified UTF8 string.

Parameters
string- The new text to replace this string with
length- Length in characters of the string parameter. Use this only when you already know the size of the string getting passed in. Otherwise leave the parameter out, and by default the function will compute the length for you.
void SetUTF16 ( const wchar_t *  string,
size_t  length = (size_t)-1 
)

Reinitializes the instance with the specified UTF16 string.

Parameters
string- The new text to replace this string with
length- Length in characters of the string parameter. Use this only when you already know the size of the string getting passed in. Otherwise leave the parameter out, and by default the function will compute the length for you.