3ds Max C++ API Reference
Setter Methods. These set the MaxString's content based on the string passed in.

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...
 

Detailed Description

Function Documentation

◆ SetCP()

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.

◆ SetACP()

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.

◆ SetUTF8()

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.

◆ SetUTF16()

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.