CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
encoder_fallback_buffer.h
1
2#ifndef __EncoderFallbackBuffer_h__
3#define __EncoderFallbackBuffer_h__
4
5#include "system/object.h"
6
7namespace System { namespace Text {
8
13class ASPOSECPP_SHARED_CLASS EncoderFallbackBuffer: public Object
14{
15protected:
18
19public:
22 virtual ASPOSECPP_SHARED_API int get_Remaining() const = 0;
27 virtual ASPOSECPP_SHARED_API bool Fallback(char_t charUnknown, int index) = 0;
33 virtual ASPOSECPP_SHARED_API bool Fallback(char_t charUnknownHigh, char_t charUnknownLow, int index) = 0;
36 virtual ASPOSECPP_SHARED_API char_t GetNextChar() = 0;
39 virtual ASPOSECPP_SHARED_API bool MovePrevious() = 0;
41 virtual void Reset() {
42 while (GetNextChar() != u'\0') ;
43 }
44};
45
46}}
47
48#endif
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Provides buffer for fallback implementation. Objects of this class should only be allocated using Sys...
Definition: encoder_fallback_buffer.h:14
virtual bool Fallback(char_t charUnknown, int index)=0
Implements actual fallback procedure.
virtual void Reset()
Resets buffer to initial state.
Definition: encoder_fallback_buffer.h:41
virtual int get_Remaining() const =0
Gets remaining count of characters to be processed.
virtual bool Fallback(char_t charUnknownHigh, char_t charUnknownLow, int index)=0
Implements actual fallback procedure.
EncoderFallbackBuffer()
Constructor.
Definition: encoder_fallback_buffer.h:17
virtual bool MovePrevious()=0
Moves buffer position one step back if possible.
virtual char_t GetNextChar()=0
Extracts next character in fallback buffer.
@ Text
Defines color adjustment information for text.
Definition: db_command.h:9