CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
utf32_encoding.h
1
2#pragma once
3
4#include <system/text/icu_encoding.h>
5
6namespace System { namespace Text {
7
12class ASPOSECPP_SHARED_CLASS UTF32Encoding : public ICUEncoding
13{
14public:
16 static constexpr int UTF32_CODE_PAGE = 12000;
18 static constexpr int BIG_UTF32_CODE_PAGE = 12001;
19
21 ASPOSECPP_SHARED_API UTF32Encoding();
25 ASPOSECPP_SHARED_API UTF32Encoding(bool big_endian, bool byte_order_mark);
30 ASPOSECPP_SHARED_API UTF32Encoding(bool big_endian, bool byte_order_mark, bool throw_on_invalid_characters);
31
35 ASPOSECPP_SHARED_API bool operator==(const UTF32Encoding& other) const;
38 ASPOSECPP_SHARED_API int GetHashCode() const override;
42 ASPOSECPP_SHARED_API bool Equals(SharedPtr<Object> obj) override;
43
46 ASPOSECPP_SHARED_API ArrayPtr<uint8_t> GetPreamble() override;
47
50 ASPOSECPP_SHARED_API SharedPtr<Object> Clone() override;
51
52protected:
54 ASPOSECPP_SHARED_API ~UTF32Encoding() override;
55
56private:
58 const bool m_emit_utf32_byte_order_mark = false;
60 const bool m_is_throw_exception = false;
62 const bool m_big_endian = false;
63};
64
65}} // namespace System::Text
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
ICU-based encoding implementation. FOR INTERNAL USE. Objects of this class should only be allocated u...
Definition: icu_encoding.h:17
UTF-32 encoding. Objects of this class should only be allocated using System::MakeObject() function....
Definition: utf32_encoding.h:13
bool operator==(const UTF32Encoding &other) const
Compares encodings' parameters.
~UTF32Encoding() override
Destructor.
UTF32Encoding(bool big_endian, bool byte_order_mark, bool throw_on_invalid_characters)
Constructor.
SharedPtr< Object > Clone() override
Clones encoding object.
UTF32Encoding(bool big_endian, bool byte_order_mark)
Constructor.
bool Equals(SharedPtr< Object > obj) override
Compares with object.
ArrayPtr< uint8_t > GetPreamble() override
Get codepage preamble.
int GetHashCode() const override
Gets encoding hash code.
@ Text
Defines color adjustment information for text.
Definition: db_command.h:9