Training
Module
Perform basic string formatting in C# - Training
Combine literal and variable text data that contain special characters, formatting, and Unicode into meaningful messages for the end user.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The functions listed in the following table translate character strings from one string type to another.
Function | Description |
---|---|
FoldString | Translates one character string to another. |
LCMapString | Maps a character string by locale. |
ToUnicode | Translates a virtual key code into a Unicode character. |
MultiByteToWideChar | Maps a multibyte string to a Unicode string. |
WideCharToMultiByte | Maps a Unicode string to a multibyte string. |
The WideCharToMultiByte and MultiByteToWideChar functions are particularly useful for applications that support several string types. ANSI C also defines the conversion functions wcstombs and mbstowcs, but they can only convert to and from the character set supported by the standard C library.
Training
Module
Perform basic string formatting in C# - Training
Combine literal and variable text data that contain special characters, formatting, and Unicode into meaningful messages for the end user.