#include <stringDecoder.h>
Inheritance diagram for StringDecoder:

Public Member Functions | |
| StringDecoder (const string &input) | |
| virtual | ~StringDecoder () |
| virtual int | get_next_character () |
| Returns the next character in sequence. | |
| bool | is_eof () |
| Returns true if the decoder has returned the last character in the string, false if there are more to go. | |
Protected Member Functions | |
| bool | test_eof () |
| If the pointer is past the last character of the string, set the eof flag and return true. | |
Protected Attributes | |
| string | _input |
| size_t | _p |
| bool | _eof |
Give it a string, then ask it to pull the characters out one at a time. This also serves as the plain old byte-at-a-time decoder.
Definition at line 43 of file stringDecoder.h.
|
|
Definition at line 32 of file stringDecoder.I. |
|
|
Definition at line 34 of file stringDecoder.cxx. References _input, _p, and test_eof(). |
|
|
Returns the next character in sequence.
Reimplemented in StringUtf8Decoder, and StringUnicodeDecoder. Definition at line 46 of file stringDecoder.cxx. References _input, _p, and test_eof(). Referenced by TextEncoder::encode_wtext(). |
|
|
Returns true if the decoder has returned the last character in the string, false if there are more to go.
Definition at line 50 of file stringDecoder.I. References _eof, _input, and _p. Referenced by TextEncoder::encode_wtext(). |
|
|
If the pointer is past the last character of the string, set the eof flag and return true.
Definition at line 65 of file stringDecoder.I. Referenced by get_next_character(), and ~StringDecoder(). |
|
|
Definition at line 56 of file stringDecoder.h. Referenced by is_eof(), and StringDecoder(). |
|
|
Definition at line 54 of file stringDecoder.h. Referenced by get_next_character(), is_eof(), and ~StringDecoder(). |
|
|
Definition at line 55 of file stringDecoder.h. Referenced by get_next_character(), is_eof(), and ~StringDecoder(). |
1.3