CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
ascii_encoding.h
1
2#pragma once
3
4#include <system/text/encoding.h>
5#include <system/text/icu_encoding.h>
6
7#include <fwd.h>
8
9namespace System { namespace Text {
10
15class ASPOSECPP_SHARED_CLASS ASCIIEncoding : public ICUEncoding
16{
18 RTTI_INFO(System::Text::ASCIIEncoding, ::System::BaseTypesInfo<System::Text::ICUEncoding>)
19
20public:
22 static constexpr int ASCII_CODE_PAGE = 20127;
23
25 ASPOSECPP_SHARED_API ASCIIEncoding();
26
30 ASPOSECPP_SHARED_API int GetMaxByteCount(int char_count) override;
31
35 int GetMaxCharCount(int byteCount) override { return byteCount; }
36
37protected:
39 ASPOSECPP_SHARED_API ~ASCIIEncoding() override;
40};
41
42}} // namespace System::Text
Represents ASCII encoding. Objects of this class should only be allocated using System::MakeObject() ...
Definition: ascii_encoding.h:16
int GetMaxCharCount(int byteCount) override
Get the maximum number of characters needed to decode a specified number of bytes.
Definition: ascii_encoding.h:35
~ASCIIEncoding() override
Destructor.
int GetMaxByteCount(int char_count) override
Gets max byte count possible to hold a string of known character count.
ICU-based encoding implementation. FOR INTERNAL USE. Objects of this class should only be allocated u...
Definition: icu_encoding.h:17
@ Text
Defines color adjustment information for text.
Definition: db_command.h:9