Classes | |
class | _UTF8Converter |
Class for converting utf8-encoded input into UnicodeString. Don't use directly. Call UTF8Converter() to get a pointer to a singleton _UTFConverter. More... | |
Typedefs | |
typedef boost::shared_ptr< UnicodeString > | UnicodePtr |
typedef boost::shared_array< char > | charArray |
typedef std::vector< UnicodePtr > | UnicodeVector |
Functions | |
UnicodeVector | splitString (const std::string &s) |
UConverter * | UTF8Converter () |
Returns a pointer to a singleton _UTF8Converter object. | |
charArray | toCharArray (UnicodePtr u) |
Convert the UnicodeString a UnicodePtr points to into a shared char array. | |
std::string | toStdString (UnicodePtr u) |
Convert the UnicodeString a UnicodePtr points to into a std::string. |
typedef boost::shared_array<char> schma::charArray |
Definition at line 36 of file unicodehelpers.h.
typedef boost::shared_ptr<UnicodeString> schma::UnicodePtr |
Definition at line 35 of file unicodehelpers.h.
typedef std::vector<UnicodePtr> schma::UnicodeVector |
Definition at line 37 of file unicodehelpers.h.
UnicodeVector schma::splitString | ( | const std::string & | s | ) | [inline] |
Definition at line 39 of file unicodehelpers.h.
Referenced by PhraseHunter::SearchEngine::searchPhrasalRegex().
charArray schma::toCharArray | ( | UnicodePtr | u | ) | [inline] |
Convert the UnicodeString a UnicodePtr points to into a shared char array.
Definition at line 86 of file unicodehelpers.h.
Referenced by SQLitePP::Statement::bindArg().
std::string schma::toStdString | ( | UnicodePtr | u | ) | [inline] |
Convert the UnicodeString a UnicodePtr points to into a std::string.
Definition at line 95 of file unicodehelpers.h.
Referenced by PhraseHunter::SearchEngine::searchPhrasalRegex(), PhraseHunter::SearchEngine::searchPhrase(), and PhraseHunter::SearchEngine::searchRegexToken().
UConverter* schma::UTF8Converter | ( | ) | [inline] |
Returns a pointer to a singleton _UTF8Converter object.
Definition at line 79 of file unicodehelpers.h.
References schma::_UTF8Converter::converter().
Referenced by PhraseHunter::IndexManager::addToIndex(), PhraseHunter::TextSaver::nextToken(), and PhraseHunter::ContextReader::readBlock().