Home
last modified time | relevance | path

Searched refs:unichar_to_id (Results 1 – 25 of 29) sorted by relevance

12

/external/tesseract/ccutil/
Dunicharset.h131 const UNICHAR_ID unichar_to_id(const char* const unichar_repr) const;
135 const UNICHAR_ID unichar_to_id(const char* const unichar_repr,
156 return debug_str(unichar_to_id(unichar_repr)); in debug_str()
353 return get_isalpha(unichar_to_id(unichar_repr)); in get_isalpha()
358 return get_islower(unichar_to_id(unichar_repr)); in get_islower()
363 return get_isupper(unichar_to_id(unichar_repr)); in get_isupper()
368 return get_isdigit(unichar_to_id(unichar_repr)); in get_isdigit()
373 return get_ispunctuation(unichar_to_id(unichar_repr)); in get_ispunctuation()
380 return get_script(unichar_to_id(unichar_repr)); in get_script()
390 return get_fragment(unichar_to_id(unichar_repr)); in get_fragment()
[all …]
Dunicharmap.h42 UNICHAR_ID unichar_to_id(const char* const unichar_repr) const;
48 UNICHAR_ID unichar_to_id(const char* const unichar_repr, int length) const;
Dunicharset.cpp78 UNICHARSET::unichar_to_id(const char* const unichar_repr) const { in unichar_to_id() function in UNICHARSET
80 ids.unichar_to_id(unichar_repr) : INVALID_UNICHAR_ID; in unichar_to_id()
83 const UNICHAR_ID UNICHARSET::unichar_to_id(const char* const unichar_repr, in unichar_to_id() function in UNICHARSET
87 ids.unichar_to_id(unichar_repr, length) : INVALID_UNICHAR_ID; in unichar_to_id()
327 UNICHAR_ID u_id = unichar_to_id(whitelist + w_ind, ch_step); in set_black_and_whitelist()
339 UNICHAR_ID u_id = unichar_to_id(blacklist + b_ind, ch_step); in set_black_and_whitelist()
Dambigs.cpp150 TestUnicharIds[i] = unicharset.unichar_to_id(token); in ParseAmbiguityLine()
205 unicharset->to_lower(unicharset->unichar_to_id(ReplacementString))) { in InsertIntoTable()
225 unicharset->unichar_to_id(ReplacementString); in InsertIntoTable()
239 unichar_id = unicharset->unichar_to_id(frag_str.string()); in InsertIntoTable()
Dunicharmap.cpp36 UNICHAR_ID UNICHARMAP::unichar_to_id(const char* const unichar_repr) const { in unichar_to_id() function in UNICHARMAP
54 UNICHAR_ID UNICHARMAP::unichar_to_id(const char* const unichar_repr, in unichar_to_id() function in UNICHARMAP
/external/tesseract/classify/
Dcutoffs.cpp69 ClassId = unicharset.unichar_to_id(" "); in ReadNewCutoffs()
71 ClassId = unicharset.unichar_to_id(Class); in ReadNewCutoffs()
Dadaptmatch.cpp499 unicharset.unichar_to_id(BestChoice_string, in AdaptToWord()
507 unicharset.unichar_to_id(BestChoice_string, in AdaptToWord()
512 unicharset.unichar_to_id(BestChoice_string, in AdaptToWord()
1809 unicharset.unichar_to_id( in GetAdaptThresholds()
2581 unicharset.unichar_to_id("1") : -1; in RemoveBadMatches()
2583 unicharset.unichar_to_id("0") : -1; in RemoveBadMatches()
2592 Rating[unichar_id_one] = Rating[unicharset.unichar_to_id("l")]; in RemoveBadMatches()
2596 Rating[unichar_id_zero] = Rating[unicharset.unichar_to_id("O")]; in RemoveBadMatches()
Dnormmatch.cpp246 unichar_id = unicharset.unichar_to_id(unichar); in ReadNormProtos()
Dprotos.cpp295 ReadClassFromFile (File, unicharset.unichar_to_id(unichar)); in ReadClassFile()
/external/tesseract/training/
Dunicharset_extractor.cpp51 UNICHAR_ID unichar_id = unicharset.unichar_to_id(unichar); in wc_to_unichar_id()
66 id = unicharset->unichar_to_id(c_string); in set_properties()
Dcommontraining.cpp706 Class = &TrainingData[unicharset_training.unichar_to_id( in SetUpForFloat2Int()
/external/tesseract/ccmain/
Ddocqual.cpp994 UNICHAR_ID unichar_dash = unicharset.unichar_to_id("-"); in convert_bad_unlv_chs()
995 UNICHAR_ID unichar_space = unicharset.unichar_to_id(" "); in convert_bad_unlv_chs()
996 UNICHAR_ID unichar_tilde = unicharset.unichar_to_id("~"); in convert_bad_unlv_chs()
997 UNICHAR_ID unichar_pow = unicharset.unichar_to_id("^"); in convert_bad_unlv_chs()
1027 UNICHAR_ID unichar_space = unicharset.unichar_to_id(" "); in merge_tess_fails()
1093 if (last_char == unicharset.unichar_to_id(str, *lengths)) { in garbage_word()
1100 last_char = unicharset.unichar_to_id(str, *lengths); in garbage_word()
1108 last_char = unicharset.unichar_to_id(str, *lengths); in garbage_word()
1123 if (last_char == unicharset.unichar_to_id(str, *lengths)) { in garbage_word()
1130 last_char = unicharset.unichar_to_id(str, *lengths); in garbage_word()
[all …]
Dcontrol.cpp330 UNICHAR_ID space = unicharset.unichar_to_id(" "); in recog_all_words()
484 UNICHAR_ID dot = unicharset.unichar_to_id("."); in recog_all_words()
1078 UNICHAR_ID space = unicharset.unichar_to_id(" "); in fix_rep_char()
1141 !unicharset.get_enabled(unicharset.unichar_to_id("\""))) in fix_quotes()
1157 choice->set_unichar_id(unicharset.unichar_to_id("\""), i); in fix_quotes()
1192 !unicharset.get_enabled(unicharset.unichar_to_id("-"))) in fix_hyphens()
1210 choice->set_unichar_id(unicharset.unichar_to_id("-"), i); in fix_hyphens()
Dapplybox.cpp317 return unicharset_boxes.unichar_to_id(uch); in register_char()
767 unicharset_boxes.unichar_to_id(word->text()) < 0) { in tidy_up()
779 ++labelled_char_counts[unicharset_boxes.unichar_to_id(word->text())]; in tidy_up()
830 uch_id = unicharset_boxes.unichar_to_id(word->text ()); in tidy_up()
Dreject.cpp1497 c = unicharset.unichar_to_id(rep_ch_str, *lengths); in repeated_ch_string()
1500 unicharset.unichar_to_id(rep_ch_str, *lengths) == c) { in repeated_ch_string()
1528 UNICHAR_ID unichar_dash = unicharset.unichar_to_id("-"); in flip_hyphens()
1598 UNICHAR_ID unichar_0 = unicharset.unichar_to_id("0"); in flip_0O()
1599 UNICHAR_ID unichar_O = unicharset.unichar_to_id("O"); in flip_0O()
Dtfacepp.cpp156 UNICHAR_ID space_id = unicharset.unichar_to_id(" "); in recog_word_recursive()
Doutput.cpp222 UNICHAR_ID space = unicharset.unichar_to_id(" "); in write_results()
953 return unicharset.unichar_to_id(unrecognised_char.string()); in get_rep_char()
/external/tesseract/dict/
Dpermute.cpp268 hyphen_unichar_id_ = getUnicharset().unichar_to_id(kHyphenSymbol); in init_permute()
694 UNICHAR_ID slash = getUnicharset().unichar_to_id("/"); in permute_compound_words()
695 UNICHAR_ID dash = getUnicharset().unichar_to_id("-"); in permute_compound_words()
826 UNICHAR_ID space = getUnicharset().unichar_to_id(" "); in permute_top_choice()
920 getUnicharset().unichar_to_id(ch) : INVALID_UNICHAR_ID; in permute_top_choice()
958 getUnicharset().unichar_to_id(fragment->get_unichar()); in permute_top_choice()
1267 getUnicharset().unichar_to_id(this_fragment->get_unichar()); in fragment_state_okay()
Dconversion.cpp60 current_unicharset.unichar_to_id(string + offset, lengths[x]); in convert_to_word_choice()
Dchoices.cpp265 int unichar_id = getUnicharset().unichar_to_id(str + i, step); in print_word_string()
Dpermdawg.cpp206 getUnicharset().unichar_to_id(ngram_ptr, step); in go_deeper_dawg_fxn()
Ddawg.cpp80 UNICHAR_ID wildcard = unicharset.unichar_to_id(kWildcard); in check_for_words()
Dstopper.cpp949 uch_id = getUnicharset().unichar_to_id(frag_str.string()); in ReplaceAmbig()
958 getUnicharset().unichar_to_id(correct_frag_uch.string()); in ReplaceAmbig()
/external/tesseract/ccstruct/
Dratngs.cpp112 unicharset.unichar_to_id(src_string+offset, unichar_length); in init()
/external/tesseract/wordrec/
Dbestfirst.cpp495 new BLOB_CHOICE(getDict().getUnicharset().unichar_to_id(unichar), in rebuild_current_state()

12