23 #ifndef __ccxx_UTF8Decoder_hxx 24 #define __ccxx_UTF8Decoder_hxx 65 int decode(
const char** input,
int* inputCountLeft,
66 char16_t** output,
int* outputCountLeft);
74 { _stopDecodingAtNulChar = stopDecodingAtNulChar; }
90 static int decodedLength(
const char* buf,
int length,
int maxLength = 0);
97 bool _stopDecodingAtNulChar;
104 #endif // __ccxx_UTF8Decoder_hxx
A UTF-8 to UTF-16 string transcoder.
Definition: UTF8Decoder.h++:38
#define COMMONCPP_API
Definition: Common.h++:126
A base class for transcoders that decode strings to UTF-16 from a different UTF encoding.
Definition: UTFDecoder.h++:34
void setStopDecodingAtNulChar(bool stopDecodingAtNulChar)
Specifies whether decoding should stop as soon as a NUL character is encountered in the input...
Definition: UTF8Decoder.h++:73
uint16_t char16_t
A UTF-16 character.
Definition: Common.h++:201
#define CCXX_COPY_DECLS(CLASS)
Inlines declarations of a copy constructor and assignment operator for the class CLASS.
Definition: Common.h++:295
Definition: AllocationMap.c++:25