Definition at line 35 of file tatweel_test.cc.
◆ TatweelTest()
tesseract::TatweelTest::TatweelTest |
( |
| ) |
|
|
inlineprotected |
Definition at line 42 of file tatweel_test.cc.
42 {
44 if (file_exists(filename.c_str())) {
45 std::string wordlist("\u0640");
47
50 int num_tatweel = 0;
51 for (
auto it = text.
begin(); it != text.
end(); ++it) {
52 std::string utf8 = it.get_utf8_string();
53 if (utf8.find("\u0640") != std::string::npos)
54 ++num_tatweel;
56 }
57 LOG(
INFO) <<
"Num tatweels in source data=" << num_tatweel;
59 }
60 }
#define EXPECT_GT(val1, val2)
void unichar_insert(const char *const unichar_repr, OldUncleanUnichars old_style)
static bool GetContents(const std::string &filename, std::string *out, int)
std::string TestDataNameToPath(const std::string &name)
const_iterator end() const
UnicodeText & PointToUTF8(const char *utf8_buffer, int byte_length)
const_iterator begin() const
◆ SetUp()
void tesseract::TatweelTest::SetUp |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from testing::Test.
Definition at line 37 of file tatweel_test.cc.
37 {
38 static std::locale system_locale("");
39 std::locale::global(system_locale);
40 }
◆ TestDataNameToPath()
std::string tesseract::TatweelTest::TestDataNameToPath |
( |
const std::string & |
name | ) |
|
|
inlineprotected |
Definition at line 62 of file tatweel_test.cc.
62 {
64 }
static std::string JoinPath(const std::string &s1, const std::string &s2)
◆ unicharset_
The documentation for this class was generated from the following file:
- /media/home/debian/src/github/tesseract-ocr/tesseract/unittest/tatweel_test.cc