System::Text::ICUEncoding class

ICUEncoding class

ICU-based encoding implementation. FOR INTERNAL USE. 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 ICUEncoding : public System::Text::Encoding

Methods

MethodDescription
GetByteCount(const char_t *, int) overrideGet the number of characters needed to encode a character buffer.
virtual GetByteCount(ArrayPtr<char_t>, int, int)RTTI.
virtual GetByteCount(System::Details::ArrayView<char_t>, int, int)RTTI.
GetByteCount(const System::Details::StackArray<char_t, N>&, int, int)RTTI.
virtual GetByteCount(const String&)RTTI.
virtual GetByteCount(ArrayPtr<char_t>)RTTI.
GetBytes(const char_t *, int, uint8_t *, int) overrideGet the bytes that result from encoding a character buffer.
virtual GetBytes(ArrayPtr<char_t>, int, int, ArrayPtr<uint8_t>, int)Get the bytes that result from encoding a character buffer.
virtual GetBytes(System::Details::ArrayView<char_t>, int, int, System::Details::ArrayView<uint8_t>, int)Get the bytes that result from encoding a character buffer.
GetBytes(System::Details::StackArray<char_t, SC>&, int, int, System::Details::StackArray<uint8_t, SB>&, int)Get the bytes that result from encoding a character buffer.
virtual GetBytes(const String&, int, int, ArrayPtr<uint8_t>, int)Get the bytes that result from encoding a character buffer.
virtual GetBytes(const String&)Get the bytes that result from encoding a character buffer.
virtual GetBytes(ArrayPtr<char_t>, int, int)Get the bytes that result from encoding a character buffer.
virtual GetBytes(const System::Details::ArrayView<char_t>&, int, int)Get the bytes that result from encoding a character buffer.
GetBytes(const System::Details::StackArray<char_t, N>&, int, int)Get the bytes that result from encoding a character buffer.
virtual GetBytes(ArrayPtr<char_t>)Get the bytes that result from encoding a character buffer.
GetCharCount(const uint8_t *, int) overrideGet the number of characters needed to decode a byte buffer.
virtual GetCharCount(ArrayPtr<uint8_t>, int, int)Get the number of characters needed to decode a byte buffer.
virtual GetCharCount(ArrayPtr<uint8_t>)Get the number of characters needed to decode a byte buffer.
GetChars(const uint8_t *, int, char_t *, int) overrideGet the characters that result from decoding a byte buffer.
virtual GetChars(ArrayPtr<uint8_t>, int, int, ArrayPtr<char_t>, int)Get the characters that result from decoding a byte buffer.
virtual GetChars(ArrayPtr<uint8_t>, int, int)Get the characters that result from decoding a byte buffer.
virtual GetChars(ArrayPtr<uint8_t>)Get the characters that result from decoding a byte buffer.
GetDecoder() overrideGet a decoder that forwards requests to this object.
GetEncoder() overrideGet an encoder that forwards requests to this object.
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).
ICUEncoding(const Details::EncodingInfoInternal *)Constructor.
operator==(const ICUEncoding&) constCompares encodings using codepages.

Fields

FieldDescription
static constexpr DEFAULT_CODE_PAGEDefault codepage value.

See Also