43class TextCodec :
public std::codecvt<T, B, Pt::MBState>
65 const ByteT* fbeg,
const ByteT* fend,
const ByteT*& fnext,
66 CharT* tbeg, CharT* tend, CharT*& tnext)
const;
69 result
out(MBState& state,
70 const CharT* fbeg,
const CharT* fend,
const CharT*& fnext,
71 ByteT* tbeg, ByteT* tend, ByteT*& tnext)
const;
75 ByteT* to, ByteT* to_end, ByteT*& to_next)
const;
85 const ByteT* from,
const ByteT* end, std::size_t max)
const;
96 std::size_t refs()
const
MBState state_type
Conversion state type.
Definition Api-TextCodec.h:53
result unshift(MBState &state, ByteT *to, ByteT *to_end, ByteT *&to_next) const
Unshifts a character sequence.
int length(MBState &state, const ByteT *from, const ByteT *end, std::size_t max) const
Returns the number of the decoded characters.
int encoding() const
Returns the encoding rate.
CharT intern_type
Internal character type.
Definition Api-TextCodec.h:47
result in(MBState &s, const ByteT *fbeg, const ByteT *fend, const ByteT *&fnext, CharT *tbeg, CharT *tend, CharT *&tnext) const
Decodes a character sequence.
TextCodec(std::size_t ref=0)
Constructs with reference count.
bool always_noconv() const
Returns true if no conversion is required.
result out(MBState &state, const CharT *fbeg, const CharT *fend, const CharT *&fnext, ByteT *tbeg, ByteT *tend, ByteT *&tnext) const
Encodes a character sequence.
int max_length() const
Maximum length of an external sequence if one character is encoded.
virtual ~TextCodec()
Desctructor.
Definition Api-TextCodec.h:92
ByteT extern_type
External character type.
Definition Api-TextCodec.h:50