System::Text::UnicodeEncoding class

UnicodeEncoding class

Unicode encoding. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class UnicodeEncoding : public System::Text::ICUEncoding

Methods

MethodDescription
Clone() overrideClones encoding object.
Equals(SharedPtr<Object>) overrideCompares encodings.
GetHashCode() const overrideHashes encoding.
GetMaxByteCount(int) overrideGet the maximum number of bytes needed to encode a specified number of characters.
GetMaxCharCount(int) overrideGet the maximum number of characters needed to decode a specified number of bytes.
GetPreamble() overrideReturns a sequence of bytes that denotes the encoding (e. g. BOM).
operator==(const UnicodeEncoding&) constCompares encodings by codepages and flags.
UnicodeEncoding()Constructor.
UnicodeEncoding(bool, bool)Constructor.
UnicodeEncoding(bool, bool, bool)Constructor.

Fields

FieldDescription
static constexpr BIG_UNICODE_CODE_PAGEBig endian codepage number.
static constexpr DEFAULT_CODE_PAGEDefault codepage value.
static constexpr UNICODE_CODE_PAGELittle endian codepage number.

See Also