Class for string code page conversion. More...
#include <strcpcvt.h>
Static Public Member Functions | |
static SStringA | CvtW2A (const SStringW &str, unsigned int cp=0) |
Converts a wide string (UTF-16) to a multi-byte string (ANSI or specified code page). | |
static SStringW | CvtA2W (const SStringA &str, unsigned int cp=0, unsigned int cp2=0) |
Converts a multi-byte string (ANSI or specified code page) to a wide string (UTF-16). | |
static SStringA | CvtA2A (const SStringA &str, unsigned int cpFrom=CP_UTF8, unsigned int cpTo=0) |
Converts a multi-byte string from one code page to another multi-byte code page. | |
static SStringW | CvtW2W (const SStringW &str, unsigned int cp=0) |
Converts a wide string (UTF-16) to another wide string (UTF-16) with a specified code page. | |
Class for string code page conversion.
Provides static methods to convert strings between different code pages.
Definition at line 20 of file strcpcvt.h.
|
static |
Converts a multi-byte string from one code page to another multi-byte code page.
str | Multi-byte string to convert. |
cpFrom | Source code page (default is CP_UTF8). |
cpTo | Target code page (default is CP_ACP). |
Definition at line 10 of file strcpcvt.cpp.
|
static |
Converts a multi-byte string (ANSI or specified code page) to a wide string (UTF-16).
str | Multi-byte string to convert. |
cp | Code page of the input multi-byte string (default is CP_ACP). |
cp2 | Reserved parameter (default is 0). |
Definition at line 18 of file strcpcvt.cpp.
Converts a wide string (UTF-16) to a multi-byte string (ANSI or specified code page).
str | Wide string to convert. |
cp | Code page for the output multi-byte string (default is CP_ACP). |
Definition at line 42 of file strcpcvt.cpp.
Converts a wide string (UTF-16) to another wide string (UTF-16) with a specified code page.
str | Wide string to convert. |
cp | Code page for the output wide string (default is CP_ACP). |
Definition at line 5 of file strcpcvt.cpp.