Home
last modified time | relevance | path

Searched refs:choice (Results 1 – 25 of 165) sorted by relevance

1234567

/external/tesseract/dict/
Dchoices.cpp82 A_CHOICE *choice = (A_CHOICE *)(first_node(l)); in copy_choices() local
84 (LIST) new_choice (class_string(choice), in copy_choices()
85 class_lengths(choice), in copy_choices()
86 class_rating(choice), in copy_choices()
87 class_certainty(choice), in copy_choices()
88 class_config(choice), in copy_choices()
89 class_script_id(choice), in copy_choices()
90 class_permuter(choice), in copy_choices()
91 class_fragment_mark(choice), in copy_choices()
92 class_fragment_lengths(choice))); in copy_choices()
[all …]
Dchoices.h107 #define class_rating(choice) \ argument
108 (((A_CHOICE*) (choice))->rating)
115 #define class_certainty(choice) \ argument
116 (((A_CHOICE*) (choice))->certainty)
123 #define class_string(choice) \ argument
124 (((A_CHOICE*) (choice))->string)
131 #define class_lengths(choice) \ argument
132 (((A_CHOICE*) (choice))->lengths)
139 #define class_permuter(choice) \ argument
140 (((A_CHOICE*) (choice))->permuter)
[all …]
Dpermngram.cpp59 A_CHOICE* choice,
111 static double get_classifier_score_ngram_score_ratio(const char* choice);
134 A_CHOICE* choice = (A_CHOICE *) first_node(choices); in ngram_permute_and_select() local
141 choice, in ngram_permute_and_select()
175 double get_classifier_score_ngram_score_ratio(const char* choice) { in get_classifier_score_ngram_score_ratio() argument
176 if (!strcmp(",", choice) || in get_classifier_score_ngram_score_ratio()
177 !strcmp(".", choice)) in get_classifier_score_ngram_score_ratio()
200 A_CHOICE* choice, in HypothesisPrefix() argument
225 const char* class_string_choice = *class_string(choice) == '\0' ? in HypothesisPrefix()
226 " " : class_string(choice); in HypothesisPrefix()
[all …]
Dconversion.cpp77 WERD_CHOICE *choice, in get_best_delete_other() argument
79 if (!a_choice) return choice; in get_best_delete_other()
80 if (choice != NULL && in get_best_delete_other()
81 (choice->rating() < a_choice->rating || a_choice->string == NULL)) { in get_best_delete_other()
83 return choice; in get_best_delete_other()
85 delete choice; in get_best_delete_other()
Dconversion.h36 WERD_CHOICE *choice,
/external/openssl/crypto/x509v3/
Dv3_asid.c108 ASIdentifierChoice *choice,
114 if (choice == NULL)
117 switch (choice->type) {
122 for (i = 0; i < sk_ASIdOrRange_num(choice->u.asIdsOrRanges); i++) {
123 ASIdOrRange *aor = sk_ASIdOrRange_value(choice->u.asIdsOrRanges, i);
202 ASIdentifierChoice **choice; in v3_asid_add_inherit() local
207 choice = &asid->asnum; in v3_asid_add_inherit()
210 choice = &asid->rdi; in v3_asid_add_inherit()
215 if (*choice == NULL) { in v3_asid_add_inherit()
216 if ((*choice = ASIdentifierChoice_new()) == NULL) in v3_asid_add_inherit()
[all …]
/external/srec/tools/cmd/
Dsrecres2utd.pl85 $choice = $1;
86 $token{choices}[0] = $choice;
89 $choice = $2;
91 $choice = $1;
92 $token{choices}[$i] = $choice;
95 $choice = $2;
97 $choice = $1;
98 $choice =~ s/\s+$//;
99 $token{meanings}[$i] = $choice;
183 my $choice = lc $token->{choices}[$i];
[all …]
/external/tesseract/ccmain/
Dosdetect.cpp333 BLOB_CHOICE* choice = choice_it.data(); in detect_blob() local
334 int id = choice->script_id(); in detect_blob()
339 unichar = tess_->unicharset.id_to_unichar(choice->unichar_id()); in detect_blob()
342 prev_score = -choice->certainty(); in detect_blob()
345 prev_script = choice->script_id(); in detect_blob()
347 prev_class_id = choice->unichar_id(); in detect_blob()
348 prev_config = choice->config(); in detect_blob()
349 } else if (-choice->certainty() < prev_score + kNonAmbiguousMargin) { in detect_blob()
351 next_best_score = -choice->certainty(); in detect_blob()
352 next_best_script_id = choice->script_id(); in detect_blob()
[all …]
Dcontrol.cpp1137 void Tesseract::fix_quotes(WERD_CHOICE *choice, //choice to fix in fix_quotes() argument
1151 for (i = 0; i < choice->length()-1; in fix_quotes()
1153 const char *ch = unicharset.id_to_unichar(choice->unichar_id(i)); in fix_quotes()
1154 const char *next_ch = unicharset.id_to_unichar(choice->unichar_id(i+1)); in fix_quotes()
1157 choice->set_unichar_id(unicharset.unichar_to_id("\""), i); in fix_quotes()
1158 choice->remove_unichar_id(i+1); in fix_quotes()
1176 choice->populate_unichars(unicharset); in fix_quotes()
1188 WERD_CHOICE *choice, //choice to fix in fix_hyphens() argument
1201 for (int i = 0; i+1 < choice->length(); in fix_hyphens()
1203 const char *ch = unicharset.id_to_unichar(choice->unichar_id(i)); in fix_hyphens()
[all …]
Dtessbox.cpp339 const WERD_CHOICE& choice, //string for word in tess_adapter() argument
350 AdaptToWord(tessword, &tessrow, choice, raw_choice, rejmap); in tess_adapter()
Dtesseractclass.h134 WERD_CHOICE *choice, //choice to fix
154 WERD_CHOICE *choice, //choice to fix
386 const WERD_CHOICE& choice, //string for word
/external/skia/src/images/
DSkImageDecoder_libico.cpp104 int choice; in onDecode() local
109 choice = 0; in onDecode()
142 choice = chooser->choose(); in onDecode()
146 if (choice >= count || choice < 0) in onDecode()
152 int w = readByte(buf, 6 + choice*16); in onDecode()
153 int h = readByte(buf, 7 + choice*16); in onDecode()
154 int colorCount = readByte(buf, 8 + choice*16); in onDecode()
158 int size = read4Bytes(buf, 14 + choice*16); //matters? in onDecode()
159 int offset = read4Bytes(buf, 18 + choice*16); in onDecode()
/external/bluetooth/glib/gio/
Dgmountoperation.c72 int choice; member
169 g_value_set_int (value, priv->choice); in g_mount_operation_get_property()
625 return op->priv->choice; in g_mount_operation_get_choice()
637 int choice) in g_mount_operation_set_choice() argument
642 if (priv->choice != choice) in g_mount_operation_set_choice()
644 priv->choice = choice; in g_mount_operation_set_choice()
/external/skia/src/animator/
DSkDrawColor.cpp32 static SkScalar RGB_to_HSV(SkColor color, HSV_Choice choice) { in RGB_to_HSV() argument
38 if (choice == kGetValue) in RGB_to_HSV()
42 if (choice == kGetSaturation) in RGB_to_HSV()
59 SkASSERT(choice == kGetHue); in RGB_to_HSV()
68 static SkColor HSV_to_RGB(SkColor color, HSV_Choice choice, SkScalar hsv) { in HSV_to_RGB() argument
69 SkScalar hue = choice == kGetHue ? hsv : RGB_to_HSV(color, kGetHue); in HSV_to_RGB()
70 SkScalar saturation = choice == kGetSaturation ? hsv : RGB_to_HSV(color, kGetSaturation); in HSV_to_RGB()
71 SkScalar value = choice == kGetValue ? hsv : RGB_to_HSV(color, kGetValue); in HSV_to_RGB()
/external/srec/srec/include/
Dsrec_results.h39 int srec_nbest_put_confidence_value(void* rec_void, int choice, int confidence_value);
40 int srec_nbest_get_confidence_value(void* rec_void, int choice);
43 LCHAR* srec_nbest_get_word(void* nbest, size_t choice);
/external/srec/srec/crec/
Dsrec_results.c155 int srec_nbest_put_confidence_value(void* rec_void, int choice, int confidence_value) in srec_nbest_put_confidence_value() argument
165 stack->complete_path_confidences[choice] = confidence_value; in srec_nbest_put_confidence_value()
170 int srec_nbest_get_confidence_value(void* rec_void, int choice) in srec_nbest_get_confidence_value() argument
174 return stack->complete_path_confidences[choice]; in srec_nbest_get_confidence_value()
198 LCHAR* srec_nbest_get_word(void* nbest, size_t choice) in srec_nbest_get_word() argument
201 return rec->context->olabels->words[choice]; in srec_nbest_get_word()
/external/srec/srec/ca/
Drec_nbes.c78 int CA_NBestListGetResultConfidenceValue(CA_NBestList *nbest, size_t choice, int *value) in CA_NBestListGetResultConfidenceValue() argument
82 *value =srec_nbest_get_confidence_value(nbest, choice); in CA_NBestListGetResultConfidenceValue()
/external/icu4c/common/
Dpropname.h190 UPropertyNameChoice choice) const;
203 UPropertyNameChoice choice) const;
208 UPropertyNameChoice choice) const;
Dpropname.cpp146 UPropertyNameChoice choice) const { in chooseNameInGroup()
147 int32_t c = choice; in chooseNameInGroup()
169 UPropertyNameChoice choice) const { in getPropertyName()
171 return chooseNameInGroup(e2n->getOffset(prop), choice); in getPropertyName()
183 UPropertyNameChoice choice) const { in getPropertyValueName()
194 return chooseNameInGroup(a, choice); in getPropertyValueName()
/external/tesseract/ccstruct/
Dratngs.h82 BLOB_CHOICE* choice = new BLOB_CHOICE; in deep_copy() local
83 *choice = *src; in deep_copy()
84 return choice; in deep_copy()
/external/tesseract/api/
Dbaseapi.cpp701 WERD_CHOICE* choice = word->best_choice; in GetUTF8Text() local
702 if (choice != NULL) { in GetUTF8Text()
703 strcpy(ptr, choice->unichar_string().string()); in GetUTF8Text()
704 ptr += choice->unichar_string().length(); in GetUTF8Text()
948 WERD_CHOICE* choice = word->best_choice; in AllWordConfidences() local
949 int w_conf = static_cast<int>(100 + 5 * choice->certainty()); in AllWordConfidences()
1135 WERD_CHOICE* choice = word->best_choice; in TextLength() local
1136 if (choice != NULL) { in TextLength()
1137 total_blobs += choice->length() + 1; in TextLength()
1138 total_length += choice->unichar_string().length() + 1; in TextLength()
/external/icu4c/i18n/unicode/
Dnumfmt.h732 …static NumberFormat* U_EXPORT2 createInstance(const Locale& desiredLocale, EStyles choice, UErrorC…
741 …static NumberFormat* makeInstance(const Locale& desiredLocale, EStyles choice, UErrorCode& success…
/external/bluetooth/glib/build/win32/vs9/
DREADME3 a better choice if you want to start building GLib (and more of the
/external/bluetooth/glib/build/win32/vs8/
DREADME3 a better choice if you want to start building GLib (and more of the
/external/qemu/distrib/sdl-1.2.12/src/video/maccommon/
DSDL_macevents.c702 static void Mac_DoAppleMenu(_THIS, long choice) in Mac_DoAppleMenu() argument
707 item = (choice&0xFFFF); in Mac_DoAppleMenu()
708 choice >>= 16; in Mac_DoAppleMenu()
709 menu = (choice&0xFFFF); in Mac_DoAppleMenu()

1234567