3ds Max C++ API Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Page Query Methods

Functions

static UINT NormalizeCP (UINT code)
 Normalize the code page.
 
static UINT CommonLosslessCP (UINT codepage1, UINT codepage2)
 Gets a common code page.
 
UINT CommonLosslessCP (MaxString &)
 Gets a common code page.
 

Detailed Description

Function Documentation

◆ NormalizeCP()

static UINT NormalizeCP ( UINT  code)
static

Normalize the code page.

Will resolve encoding aliases and returns their meaning.

Parameters
code- The code page value to convert. CP_ACP (Active Code Page), returns GetACP(). CP_OEMCP (BIOS's Code Page), returns GetOEMCP(). CP_MACCP
CP_THREAD_ACP (Current thread's Code Page). Calls GetLocaleInfo().
Returns
The new code page value

◆ CommonLosslessCP() [1/2]

static UINT CommonLosslessCP ( UINT  codepage1,
UINT  codepage2 
)
static

Gets a common code page.

Determine the ideal intermediate codepage between two others to perform operation like string compare, string concatenate, etc.

◆ CommonLosslessCP() [2/2]

UINT CommonLosslessCP ( MaxString )

Gets a common code page.

Determine the ideal intermediate codepage between this MaxString and another one.

See also
CommonLosslessCP(UINT, UINT)