3ds Max C++ API Reference
Loading...
Searching...
No Matches
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.
 
void SetACP (const char *string, size_t length=(size_t) -1)
 Reinitializes the instance with the specified Active Code Page (ACP) string.
 
void SetUTF8 (const char *string, size_t length=(size_t) -1)
 Reinitializes the instance with the specified UTF8 string.
 
void SetUTF16 (const wchar_t *string, size_t length=(size_t) -1)
 Reinitializes the instance with the specified UTF16 string.
 

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.