NCBI C++ ToolKit
Classes | Typedefs | Enumerations | Functions
unicode.hpp File Reference
#include <corelib/ncbistd.hpp>
#include <string>
+ Include dependency graph for unicode.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  SUnicodeTranslation
 Structure to keep substititutions for the particular unicode character. More...
 

Typedefs

typedef SUnicodeTranslation TUnicodePlan[256]
 
typedef TUnicodePlanTUnicodeTable[256]
 
typedef unsigned int TUnicode
 

Enumerations

enum  ESubstType {
  eSkip = 0 , eAsIs , eString , eException ,
  eHTML , ePicture , eOther
}
 Types of substitutors. More...
 
enum  EConversionResult { eConvertedFine , eDefaultTranslationUsed }
 

Functions

const SUnicodeTranslationUnicodeToAscii (TUnicode character, const TUnicodeTable *table=NULL, const SUnicodeTranslation *default_translation=NULL)
 Convert Unicode character into ASCII string. More...
 
size_t UTF8ToUnicode (const char *utf, TUnicode *unicode)
 Convert UTF8 into Unicode character. More...
 
size_t UnicodeToUTF8 (TUnicode unicode, char *buffer, size_t buf_length)
 Convert Unicode character into UTF8. More...
 
string UnicodeToUTF8 (TUnicode unicode)
 Convert Unicode character into UTF8. More...
 
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. More...
 
string UTF8ToAsciiString (const char *src, const SUnicodeTranslation *default_translation, const TUnicodeTable *table=NULL, EConversionResult *result=NULL)
 Convert UTF8 into ASCII string. More...
 
Modified on Tue Feb 27 05:53:54 2024 by modify_doxy.py rev. 669887