MultiByteCharConversionType Enumeration

Flags indicating the conversion type when calling MultiByteToWideChar(CodePage, MultiByteCharConversionType, Byte, Int32, Char, Int32) function.

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[FlagsAttribute]
public enum MultiByteCharConversionType

Remarks

Members

PreComposed 1 Default; do not use with Composite.

Always use precomposed characters, that is, characters having a single character value for a base or nonspacing character combination.

For example, in the character è, the e is the base character and the accent grave mark is the non-spacing character.

If a single Unicode code point is defined for a character, the application should use it instead of a separate base character and a nonspacing character. For example, Ä is represented by the single Unicode code point LATIN CAPITAL LETTER A WITH DIAERESIS (U+00C4).

Composite 2 Always use decomposed characters, that is, characters in which a base character and one or more nonspacing characters each have distinct code point values.

For example, Ä is represented by A + ¨: LATIN CAPITAL LETTER A (U+0041) + COMBINING DIAERESIS (U+0308).

Note that this flag cannot be used with PreComposed.

UseGlyphChars 4 Use glyph characters instead of control characters.
ErrorInvalidChars 8 Fail if an invalid input character is encountered.

The function does not drop illegal code points if the application does not set this flag, but instead replaces illegal sequences with U+FFFD (encoded as appropriate for the specified codepage).

See Also