Panda3D

Public Member Functions | List of all members
StringUtf16Decoder Class Reference

This decoder extracts characters two at a time to get a plain wide character sequence. More...

`#include "stringDecoder.h"`

Inheritance diagram for StringUtf16Decoder:

## Public Member Functions
| StringUtf16Decoder (const std::string &input)
virtual char32_t | get_next_character ()
| Returns the next character in sequence. More...
Public Member Functions inherited from StringDecoder
| StringDecoder (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 go. More...

## Additional Inherited Members
Static Public Member Functions inherited from StringDecoder
static std::ostream * | get_notify_ptr ()
| Returns the ostream that is used to write error messages to. More...
static void | set_notify_ptr (std::ostream *ptr)
| Sets the ostream that is used to write error messages to. More...

## Detailed Description

This decoder extracts characters two at a time to get a plain wide character sequence.

It supports surrogate pairs.

Definition at line 58 of file stringDecoder.h.

## Member Function Documentation

## ◆ get_next_character()

char32_t StringUtf16Decoder::get_next_character | ( |  | ) |
| virtual

Returns the next character in sequence.

Reimplemented from StringDecoder.

Definition at line 178 of file stringDecoder.cxx.

The documentation for this class was generated from the following files:

- dtool/src/dtoolutil/stringDecoder.h
- dtool/src/dtoolutil/stringDecoder.cxx
- dtool/src/dtoolutil/stringDecoder.I