Dillo v3.1.1-98-g318d1f14
|
Stuff dealing with Unicode characters: UTF-8, character classes etc. More...
Functions | |
bool | isAlpha (int ch) |
Returns whether a given unicode character is an alphabetic character. | |
int | decodeUtf8 (const char *s) |
int | decodeUtf8 (const char *s, int len) |
const char * | nextUtf8Char (const char *s) |
const char * | nextUtf8Char (const char *s, int len) |
int | numUtf8Chars (const char *s) |
int | numUtf8Chars (const char *s, int len) |
Variables | |
static unsigned char | alpha [0x500] |
Stuff dealing with Unicode characters: UTF-8, character classes etc.
int lout::unicode::decodeUtf8 | ( | const char * | s | ) |
Definition at line 73 of file unicode.cc.
Referenced by dw::Hyphenator::isCharPartOfActualWord(), and main().
int lout::unicode::decodeUtf8 | ( | const char * | s, |
int | len | ||
) |
Definition at line 92 of file unicode.cc.
bool lout::unicode::isAlpha | ( | int | ch | ) |
Returns whether a given unicode character is an alphabetic character.
Definition at line 68 of file unicode.cc.
References alpha.
Referenced by dw::Hyphenator::isCharPartOfActualWord().
const char * lout::unicode::nextUtf8Char | ( | const char * | s | ) |
Definition at line 110 of file unicode.cc.
Referenced by dw::Textblock::addText(), dw::Hyphenator::hyphenateSingleWord(), main(), numUtf8Chars(), and numUtf8Chars().
const char * lout::unicode::nextUtf8Char | ( | const char * | s, |
int | len | ||
) |
Definition at line 136 of file unicode.cc.
int lout::unicode::numUtf8Chars | ( | const char * | s | ) |
Definition at line 162 of file unicode.cc.
References nextUtf8Char().
Referenced by dw::Hyphenator::hyphenateSingleWord().
int lout::unicode::numUtf8Chars | ( | const char * | s, |
int | len | ||
) |
Definition at line 170 of file unicode.cc.
References nextUtf8Char().
|
static |
Definition at line 30 of file unicode.cc.
Referenced by isAlpha().