tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::UNICHAR Class Reference

#include <unichar.h>

Classes

class  const_iterator
 

Public Member Functions

 UNICHAR ()
 
 UNICHAR (const char *utf8_str, int len)
 
 UNICHAR (int unicode)
 
int first_uni () const
 
int utf8_len () const
 
const char * utf8 () const
 
char * utf8_str () const
 

Static Public Member Functions

static int utf8_step (const char *utf8_str)
 
static const_iterator begin (const char *utf8_str, const int byte_length)
 
static const_iterator end (const char *utf8_str, const int byte_length)
 
static std::vector< char32UTF8ToUTF32 (const char *utf8_str)
 
static std::string UTF32ToUTF8 (const std::vector< char32 > &str32)
 

Private Attributes

char chars [30]
 

Constructor & Destructor Documentation

◆ UNICHAR() [1/3]

tesseract::UNICHAR::UNICHAR ( )
inline

◆ UNICHAR() [2/3]

tesseract::UNICHAR::UNICHAR ( const char *  utf8_str,
int  len 
)

◆ UNICHAR() [3/3]

tesseract::UNICHAR::UNICHAR ( int  unicode)
explicit

Member Function Documentation

◆ begin()

UNICHAR::const_iterator tesseract::UNICHAR::begin ( const char *  utf8_str,
const int  byte_length 
)
static

◆ end()

UNICHAR::const_iterator tesseract::UNICHAR::end ( const char *  utf8_str,
const int  byte_length 
)
static

◆ first_uni()

int tesseract::UNICHAR::first_uni ( ) const

◆ UTF32ToUTF8()

std::string tesseract::UNICHAR::UTF32ToUTF8 ( const std::vector< char32 > &  str32)
static

◆ utf8()

const char* tesseract::UNICHAR::utf8 ( ) const
inline

◆ utf8_len()

int tesseract::UNICHAR::utf8_len ( ) const
inline

◆ utf8_step()

int tesseract::UNICHAR::utf8_step ( const char *  utf8_str)
static

◆ utf8_str()

char * tesseract::UNICHAR::utf8_str ( ) const

◆ UTF8ToUTF32()

std::vector< char32 > tesseract::UNICHAR::UTF8ToUTF32 ( const char *  utf8_str)
static

Member Data Documentation

◆ chars

char tesseract::UNICHAR::chars[30]
private

The documentation for this class was generated from the following files: