1 #ifndef UTIL_UNICODE__H
2 #define UTIL_UNICODE__H
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
ESubstType Type
Type of the substitutor.
string UTF8ToAsciiString(const char *src, const SUnicodeTranslation *default_translation, const TUnicodeTable *table=NULL, EConversionResult *result=NULL)
Convert UTF8 into ASCII string.
SUnicodeTranslation TUnicodePlan[256]
size_t UnicodeToUTF8(TUnicode unicode, char *buffer, size_t buf_length)
Convert Unicode character into UTF8.
const SUnicodeTranslation * UnicodeToAscii(TUnicode character, const TUnicodeTable *table=NULL, const SUnicodeTranslation *default_translation=NULL)
Convert Unicode character into ASCII string.
const char * Subst
Substitutor for unicode.
size_t UTF8ToUnicode(const char *utf, TUnicode *unicode)
Convert UTF8 into Unicode character.
TUnicodePlan * TUnicodeTable[256]
ESubstType
Types of substitutors.
ssize_t UTF8ToAscii(const char *src, char *dst, size_t dst_len, const SUnicodeTranslation *default_translation, const TUnicodeTable *table=NULL, EConversionResult *result=NULL)
Convert UTF8 into ASCII character buffer.
@ eHTML
HTML tag or, for example, HTML entity.
@ eSkip
Unicode to be skipped in translation. Usually it is combined mark.
@ eException
Throw exception (CUtilException, with type eWrongData)
@ eString
String of symbols.
@ eAsIs
Unicodes which should go into the text as is.
@ ePicture
Path to the picture, or maybe picture itself.
@ eDefaultTranslationUsed
<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table
NCBI_XUTIL_EXPORT
Parameter to control printing diagnostic message about conversion of static array data from a differe...
Structure to keep substititutions for the particular unicode character.