Module description
Methods for Creating MaxString
instances.
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 *, size_t length=(size_t)-1) |
|
Construct a MaxString from a
UTF16 encoded wide string.
|
static
MaxString |
FromUTF32
(const unsigned int *, 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.
|
Function Documentation
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
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
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
static MaxString FromUTF16 |
( |
const wchar_t * |
, |
|
|
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
static MaxString FromUTF32 |
( |
const unsigned int * |
, |
|
|
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
static MaxString FromWin32Error |
( |
DWORD |
err |
) |
[static] |
Generate a MaxString out of
Win32 error code.
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.