ICU-based encoding implementation. FOR INTERNAL USE. Objects of this class should only be allocated u...
Definition: icu_encoding.h:17
Unicode encoding. Objects of this class should only be allocated using System::MakeObject() function....
Definition: unicode_encoding.h:14
int GetHashCode() const override
Hashes encoding.
UnicodeEncoding(bool big_endian, bool byte_order_mark)
Constructor.
~UnicodeEncoding() override
Destructor.
SharedPtr< Object > Clone() override
Clones encoding object.
int GetMaxByteCount(int char_count) override
Get the maximum number of bytes needed to encode a specified number of characters.
ArrayPtr< uint8_t > GetPreamble() override
Returns a sequence of bytes that denotes the encoding (e. g. BOM).
bool operator==(const UnicodeEncoding &) const
Compares encodings by codepages and flags.
UnicodeEncoding(bool big_endian, bool byte_order_mark, bool throw_on_invalid_bytes)
Constructor.
int GetMaxCharCount(int byte_count) override
Get the maximum number of characters needed to decode a specified number of bytes.
bool Equals(SharedPtr< Object > obj) override
Compares encodings.