Definition at line 62 of file unicode.hpp.
◆ EConversionStatus Enumerator eSuccess eSkipChar eOutrangeCharDefinition at line 64 of file utf8.hpp.
◆ ESubstTypeTypes of substitutors.
Enumerator eSkipUnicode to be skipped in translation. Usually it is combined mark.
eAsIsUnicodes which should go into the text as is.
eStringString of symbols.
eExceptionThrow exception (CUtilException, with type eWrongData)
eHTMLHTML tag or, for example, HTML entity.
ePicturePath to the picture, or maybe picture itself.
eOtherSomething else.
Definition at line 50 of file unicode.hpp.
◆ CodeToChar() ◆ StringToAscii() ◆ StringToChar() ◆ StringToCode() ◆ StringToVector() ◆ UnicodeToAscii()Convert Unicode character into ASCII string.
Definition at line 324 of file unicode.cpp.
References eException, g_DefaultUnicodeTable, g_UnicodeTranslation, NCBI_THROW, NULL, t, table, and SUnicodeTranslation::Type.
Referenced by CWordPairIndexer::ConvertUTF8ToAscii(), CUnicodeToAsciiTranslation::CUnicodeToAsciiTranslation(), UTF8ToAscii(), and UTF8ToAsciiString().
◆ UnicodeToUTF8() [1/2]Convert Unicode character into UTF8.
Definition at line 416 of file unicode.cpp.
References string.
◆ UnicodeToUTF8() [2/2] size_t UnicodeToUTF8 ( TUnicode unicode, char * buffer, size_t buf_length )Convert Unicode character into UTF8.
Definition at line 424 of file unicode.cpp.
◆ UTF8ToAscii()Convert UTF8 into ASCII character buffer.
Decode UTF8 buffer and substitute all Unicodes with appropriate symbols or words from dictionary.
Definition at line 458 of file unicode.cpp.
References eAsIs, eConvertedFine, eDefaultTranslationUsed, eSkip, result, SUnicodeTranslation::Subst, table, SUnicodeTranslation::Type, UnicodeToAscii(), and UTF8ToUnicode().
◆ UTF8ToAsciiString()Convert UTF8 into ASCII string.
Decode UTF8 buffer and substitute all Unicodes with appropriate symbols or words from dictionary.
Definition at line 526 of file unicode.cpp.
References eAsIs, eConvertedFine, eDefaultTranslationUsed, eSkip, kEmptyStr, result, string, SUnicodeTranslation::Subst, table, SUnicodeTranslation::Type, UnicodeToAscii(), and UTF8ToUnicode().
Referenced by ToAsciiStdString(), and utf8_to_string().
◆ UTF8ToUnicode()Convert UTF8 into Unicode character.
Definition at line 382 of file unicode.cpp.
Referenced by CWordPairIndexer::ConvertUTF8ToAscii().
◆ kOutrangeChar const char kOutrangeChar = '?' ◆ kSkipChar const char kSkipChar = '\xFF' ◆ Subst const char* SUnicodeTranslation::Subst ◆ TypeRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4