CLI
2.9
|
Regular characters to key decoder. More...
#include <encoding.h>
Public Member Functions | |
StringDecoder (void) | |
Default constructor. More... | |
StringDecoder (const char *const STR_String) | |
String based constructor. More... | |
virtual | ~StringDecoder (void) |
Destructor. More... | |
const KEY | Decode (const int I_Char) |
Push characters one by one and get the corresponding keys. More... | |
const KEY | GetKey (void) |
Retrieve characters from the input string. More... | |
![]() | |
virtual | ~Object (void)=0 |
Pure virtual destructor. More... | |
Additional Inherited Members | |
![]() | |
Object (void) | |
Default constructor only available to sub-classes. More... | |
Regular characters to key decoder.
Manages special character encoding among others. utf-8 has the priority, then iso-8859-1 is managed when not conflicting.
Definition at line 77 of file encoding.h.
|
explicit |
Default constructor.
|
explicit |
String based constructor.
STR_String | Encoded input string. |
|
virtual |
Destructor.
const KEY StringDecoder::Decode | ( | const int | I_Char | ) |
Push characters one by one and get the corresponding keys.
Basic method used when the instance has been initialized through the default constructor.
I_Char | Input character (given as an int, the same as fread() behaves) |
const KEY StringDecoder::GetKey | ( | void | ) |
Retrieve characters from the input string.
Based method used when the instance has been initialized through the string based constructor.