Panda3D

Loading...
Searching...
No Matches
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.
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.

## 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.
static void | set_notify_ptr (std::ostream *ptr)
| Sets the ostream that is used to write error messages to.

## 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.

## Constructor & Destructor Documentation

## ◆ StringUtf16Decoder()

StringUnicodeDecoder::StringUtf16Decoder | ( | const std::string & | input | ) |
| inline

Definition at line 55 of file stringDecoder.I.

## 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