ROSE
0.9.10.2
|
UTF-16 character encoding form.
Encodes each code point as one or two 16-bit code values.
Definition at line 305 of file BinaryString.h.
#include <BinaryString.h>
Public Types | |
typedef Sawyer::SharedPointer < Utf16CharacterEncodingForm > | Ptr |
Shared-ownership pointer to a Utf16CharacterEncodingForm. More... | |
![]() | |
typedef Sawyer::SharedPointer < CharacterEncodingForm > | Ptr |
Shared ownership pointer to a CharacterEncodingForm. More... | |
Public Member Functions | |
virtual CharacterEncodingForm::Ptr | clone () const ROSE_OVERRIDE |
Create a new encoder from this one. More... | |
virtual std::string | name () const ROSE_OVERRIDE |
Name of encoder. More... | |
virtual CodeValues | encode (CodePoint cp) ROSE_OVERRIDE |
Encode a code point into a sequence of one or more code values. More... | |
virtual State | decode (CodeValue) ROSE_OVERRIDE |
Decode one code value. More... | |
virtual CodePoint | consume () ROSE_OVERRIDE |
Consume a decoded code point. More... | |
virtual void | reset () ROSE_OVERRIDE |
Reset the decoder state machine. More... | |
![]() | |
State | state () const |
Decoder state. More... | |
![]() | |
SharedObject () | |
Default constructor. More... | |
SharedObject (const SharedObject &) | |
Copy constructor. More... | |
virtual | ~SharedObject () |
Virtual destructor. More... | |
SharedObject & | operator= (const SharedObject &) |
Assignment. More... | |
Static Public Member Functions | |
static Ptr | instance () |
Additional Inherited Members | |
![]() | |
State | state_ |
typedef Sawyer::SharedPointer<Utf16CharacterEncodingForm> Rose::BinaryAnalysis::Strings::Utf16CharacterEncodingForm::Ptr |
Shared-ownership pointer to a Utf16CharacterEncodingForm.
See Shared ownership.
Definition at line 311 of file BinaryString.h.
|
inlinevirtual |
Create a new encoder from this one.
Implements Rose::BinaryAnalysis::Strings::CharacterEncodingForm.
Definition at line 314 of file BinaryString.h.
|
inlinevirtual |
Name of encoder.
Implements Rose::BinaryAnalysis::Strings::CharacterEncodingForm.
Definition at line 315 of file BinaryString.h.
|
virtual |
Encode a code point into a sequence of one or more code values.
For instance, an ecoder for UTF-16 will encode a code point into one or more values in the range 0 through (2^16)-1.
Implements Rose::BinaryAnalysis::Strings::CharacterEncodingForm.
|
virtual |
Decode one code value.
Processes a single code value and updates the decoder state machine. Returns the decoder's new state. See documentation for State for restrictions on state transitions.
Implements Rose::BinaryAnalysis::Strings::CharacterEncodingForm.
|
virtual |
Consume a decoded code point.
The decoder must be in the FINAL_STATE or COMPLETED_STATE, and upon return will be in the INITIAL_STATE.
Implements Rose::BinaryAnalysis::Strings::CharacterEncodingForm.
|
virtual |
Reset the decoder state machine.
Implements Rose::BinaryAnalysis::Strings::CharacterEncodingForm.