CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
decoder_exception_fallback_buffer.h
1
2#ifndef __DecoderExceptionFallbackBuffer_h__
3#define __DecoderExceptionFallbackBuffer_h__
4
5#include "system/array.h"
6#include "system/text/decoder_fallback_buffer.h"
7#include "system/exceptions.h"
8#include "system/text/decoder_fallback_exception.h"
9
10//std
11#include <limits>
12
13
14namespace System { namespace Text {
15
20class ASPOSECPP_SHARED_CLASS DecoderExceptionFallbackBuffer : public DecoderFallbackBuffer
21{
22public:
27 virtual int get_Remaining() const override { return 0; }
33 virtual bool Fallback(ArrayPtr<uint8_t> bytesUnknown, int index) override
34 {
35 ASPOSE_UNUSED(bytesUnknown);
36 ASPOSE_UNUSED(index);
38 }
41 virtual char_t GetNextChar() override { return (std::numeric_limits<char_t>::min)(); }
44 virtual bool MovePrevious() override { return false; }
45};
46
47}}
48
49#endif
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Buffer for exception-throwing decoding fallback strategy. Doesn't store anything actually,...
Definition: decoder_exception_fallback_buffer.h:21
virtual char_t GetNextChar() override
Gets next available character.
Definition: decoder_exception_fallback_buffer.h:41
virtual bool MovePrevious() override
Moves to previous chracter.
Definition: decoder_exception_fallback_buffer.h:44
virtual bool Fallback(ArrayPtr< uint8_t > bytesUnknown, int index) override
Handles decoding failure.
Definition: decoder_exception_fallback_buffer.h:33
DecoderExceptionFallbackBuffer()
Constructor.
Definition: decoder_exception_fallback_buffer.h:24
virtual int get_Remaining() const override
Gets number of remaining characters.
Definition: decoder_exception_fallback_buffer.h:27
Provides buffer for fallback implementation. Objects of this class should only be allocated using Sys...
Definition: decoder_fallback_buffer.h:15
@ Text
Defines color adjustment information for text.
System::ExceptionWrapper< Details_DecoderFallbackException > DecoderFallbackException
Definition: decoder_fallback_exception.h:61
Definition: db_command.h:9