3ds Max C++ API Reference
Loading...
Searching...
No Matches
methods

Methods for Creating MaxString instances. More...

Functions

static MaxString FromCP (UINT codepage, const char *string, size_t length=(size_t) -1)
 Construct a MaxString that will contain a copy of a string passed in.
 
static MaxString FromACP (const char *string, size_t length=(size_t) -1)
 Construct a MaxString from an Active Code Page encoded string.
 
static MaxString FromUTF8 (const char *string, size_t length=(size_t) -1)
 Construct a MaxString from a UTF8 encoded string.
 
static MaxString FromUTF16 (const wchar_t *string, size_t length=(size_t) -1)
 Construct a MaxString from a UTF16 encoded wide string.
 
static MaxString FromUTF32 (const unsigned int *string, size_t length=(size_t) -1)
 Construct a MaxString from a UTF32 encoded wide string.
 
static MaxString FromWin32Error (DWORD err)
 Generate a MaxString out of Win32 error code.
 
static MaxString FromAnsiError (int err)
 Generate a MaxString out of an ANSI error code.
 

Detailed Description

Methods for Creating MaxString instances.

Function Documentation

◆ FromCP()

static MaxString FromCP ( UINT  codepage,
const char *  string,
size_t  length = (size_t) -1 
)
static

Construct a MaxString that will contain a copy of a string passed in.

Parameters
codepage- The code page of the string that is passed in
string- The string to copy
length- The length of the string that is passed in. Use this when the string length is already known. Doing so will increase performance.
Returns
- A new MaxString instance

◆ FromACP()

static MaxString FromACP ( const char *  string,
size_t  length = (size_t) -1 
)
static

Construct a MaxString from an Active Code Page encoded string.

Parameters
string- The string to copy
length- The length of the string that is passed in. Use this when the string length is already known. Doing so will increase performance.
Returns
- A new MaxString instance

◆ FromUTF8()

static MaxString FromUTF8 ( const char *  string,
size_t  length = (size_t) -1 
)
static

Construct a MaxString from a UTF8 encoded string.

Parameters
string- The string to copy
length- The length of the string that is passed in. Use this when the string length is already known. Doing so will increase performance.
Returns
- A new MaxString instance

◆ FromUTF16()

static MaxString FromUTF16 ( const wchar_t *  string,
size_t  length = (size_t) -1 
)
static

Construct a MaxString from a UTF16 encoded wide string.

Parameters
string- The string to copy
length- The length of the string that is passed in. Use this when the string length is already known. Doing so will increase performance.
Returns
- A new MaxString instance

◆ FromUTF32()

static MaxString FromUTF32 ( const unsigned int string,
size_t  length = (size_t) -1 
)
static

Construct a MaxString from a UTF32 encoded wide string.

Parameters
string- The string to copy
length- The length of the string that is passed in. Use this when the string length is already known. Doing so will increase performance.
Returns
- A new MaxString instance

◆ FromWin32Error()

static MaxString FromWin32Error ( DWORD  err)
static

Generate a MaxString out of Win32 error code.

◆ FromAnsiError()

static MaxString FromAnsiError ( int  err)
static

Generate a MaxString out of an ANSI error code.

ANSI error codes are used principally when using the standard C libraries functions. Implemented using the strerror function.