Module windows

Module windows 

Source
Expand description

8-bit string converters for Windows systems.

Structs§

EncoderCodePage
Encoding for use WinAPI calls: MultiByteToWideChar and WideCharToMultiByte.

Constants§

MB_COMPOSITE
Always use decomposed characters, that is, characters in which a base character and one or more nonspacing characters each have distinct code point values.
MB_ERR_INVALID_CHARS
Fail if an invalid input character is encountered.
MB_PRECOMPOSED
Always use precomposed characters, that is, characters having a single character value for a base or nonspacing character combination.
MB_USEGLYPHCHARS
Use glyph characters instead of control characters.
WC_COMPOSITECHECK
Convert composite characters, consisting of a base character and a nonspacing character, each with different character values.
WC_DEFAULTCHAR
Replace exceptions with the default character during conversion.
WC_DISCARDNS
Discard nonspacing characters during conversion.
WC_ERR_INVALID_CHARS
Fail if an invalid input character is encountered.
WC_NO_BEST_FIT_CHARS
Translate any Unicode characters that do not translate directly to multibyte equivalents to the default character specified by lpDefaultChar.
WC_SEPCHARS
Default. Generate separate characters during conversion.

Functions§

multi_byte_to_wide_char
Wrapper for MultiByteToWideChar.
string_to_multibyte
Convert String to 8-bit string.
wide_char_to_multi_byte
Wrapper for WideCharToMultiByte.