20 #ifndef TESSERACT_CCUTIL_UNICHAR_H__ 21 #define TESSERACT_CCUTIL_UNICHAR_H__ 30 #define UNICHAR_LEN 30 36 static const int INVALID_UNICHAR_ID = -1;
38 static const char INVALID_UNICHAR[] =
"__INVALID_UNICHAR__";
134 return lhs.it_ == rhs.it_;
137 return !(lhs == rhs);
150 static const_iterator
begin(
const char*
utf8_str,
const int byte_length);
151 static const_iterator
end(
const char*
utf8_str,
const int byte_length);
165 #endif // TESSERACT_CCUTIL_UNICHAR_H__
const char * utf8_data() const
static bool UTF8ToUnicode(const char *utf8_str, GenericVector< int > *unicodes)
const_iterator & operator++()
static const_iterator end(const char *utf8_str, const int byte_length)
const char * utf8() const
static const_iterator begin(const char *utf8_str, const int byte_length)
int get_utf8(char *buf) const
friend bool operator!=(const CI &lhs, const CI &rhs)
static int utf8_step(const char *utf8_str)
friend bool operator==(const CI &lhs, const CI &rhs)