MCPcopy Create free account
hub / github.com/creatale/node-dv / utf8_len

Method utf8_len

deps/tesseract/ccutil/unichar.cpp:186–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186int UNICHAR::const_iterator::utf8_len() const {
187 ASSERT_HOST(it_ != NULL);
188 const int len = utf8_step(it_);
189 if (len == 0) {
190 tprintf("WARNING: Illegal UTF8 encountered\n");
191 return 1;
192 }
193 return len;
194}
195
196bool UNICHAR::const_iterator::is_legal() const {
197 return utf8_step(it_) > 0;

Callers 1

ParseBoxFileStrFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected