a UTF-8 character. More...
#include <parsing.h>
Public Types | |
| enum | eConstants { eHighBit = 0x80, eTwoHigh = 0xC0, eMaxChars = 6, eBufferSize = 8 } |
Public Member Functions | |
| utf8_char_t (void) throw () | |
| void | clear (void) throw () |
| int | getByteCount (void) const throw () |
| int | getValue (void) const throw () |
| void | setToReplacement (void) throw () |
| void | dump (IN const char *title) const throw () |
| bool | operator! (void) const throw () |
| "!c" means c is a null character, or invalid | |
| operator bool (void) const throw () | |
| inversion of ! operator: c is true if it is valid and non-null | |
| bool | isValid (void) const throw () |
| is this valid? Can be both valid and null! | |
| bool | operator== (IN char a) const throw () |
| single-byte character comparison | |
Public Attributes | |
| char | value [eBufferSize] |
| int | nBytes |
a UTF-8 character.
Note that this is multiple 8-bit chars in a sequence. See http://en.wikipedia.org/wiki/Utf8
Definition at line 54 of file parsing.h.
| int utf8_char_t::getByteCount | ( | void | ) | const throw () [inline] |
| int utf8_char_t::getValue | ( | void | ) | const throw () |
Definition at line 79 of file parsing.cpp.
| void utf8_char_t::setToReplacement | ( | void | ) | throw () |
Definition at line 60 of file parsing.cpp.
| void utf8_char_t::dump | ( | IN const char * | title | ) | const throw () |
Definition at line 115 of file parsing.cpp.
| bool utf8_char_t::operator! | ( | void | ) | const throw () [inline] |
| utf8_char_t::operator bool | ( | void | ) | const throw () [inline] |
| bool utf8_char_t::isValid | ( | void | ) | const throw () [inline] |
| bool utf8_char_t::operator== | ( | IN char | a | ) | const throw () [inline] |
| char utf8_char_t::value[eBufferSize] |
1.7.1