14#ifndef STRINGDECODER_H
15#define STRINGDECODER_H
24class EXPCL_DTOOL_DTOOLUTIL StringDecoder {
26 INLINE StringDecoder(
const std::string &input);
27 virtual ~StringDecoder();
36 INLINE
bool test_eof();
41 static std::ostream *_notify_ptr;
47class StringUtf8Decoder :
public StringDecoder {
49 INLINE StringUtf8Decoder(
const std::string &input);
58class StringUtf16Decoder :
public StringDecoder {
60 INLINE StringUtf16Decoder(
const std::string &input);
bool is_eof()
Returns true if the decoder has returned the last character in the string, false if there are more to...
static void set_notify_ptr(std::ostream *ptr)
Sets the ostream that is used to write error messages to.
virtual char32_t get_next_character()
Returns the next character in sequence.
static std::ostream * get_notify_ptr()
Returns the ostream that is used to write error messages to.
This decoder extracts characters two at a time to get a plain wide character sequence.
virtual char32_t get_next_character()
Returns the next character in sequence.
virtual char32_t get_next_character()
Returns the next character in sequence.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.