Home
last modified time | relevance | path

Searched refs:find_closest_string (Results 1 – 10 of 10) sorted by relevance

/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dspellcheck.cc162 find_closest_string (const char *target, in find_closest_string() function
324 ASSERT_EQ_AT (loc, candidate, find_closest_string (target, &candidates)); in assert_suggested_for()
342 ASSERT_EQ_AT (loc, NULL, find_closest_string (target, &candidates)); in assert_not_suggested_for()
412 ASSERT_EQ (NULL, find_closest_string ("", &candidates)); in test_find_closest_string()
419 ASSERT_STREQ ("apple", find_closest_string ("app", &candidates)); in test_find_closest_string()
420 ASSERT_STREQ ("banana", find_closest_string ("banyan", &candidates)); in test_find_closest_string()
421 ASSERT_STREQ ("cherry", find_closest_string ("berry", &candidates)); in test_find_closest_string()
422 ASSERT_EQ (NULL, find_closest_string ("not like the others", &candidates)); in test_find_closest_string()
430 ASSERT_STREQ ("apple", find_closest_string ("app", &candidates)); in test_find_closest_string()
431 ASSERT_STREQ ("banana", find_closest_string ("banyan", &candidates)); in test_find_closest_string()
[all …]
H A Dspellcheck.h35 find_closest_string (const char *target,
H A Dopt-suggestions.cc45 return find_closest_string in suggest_option()
H A Dopts-common.cc1364 return find_closest_string (arg, &candidates); in candidates_list_and_hint()
H A Ddumpfile.cc1924 const char *hint = find_closest_string (arg, &candidates); in dump_switch_p()
H A DChangeLog-201620589 (find_closest_string): Reimplement in terms of
32191 driver::build_option_suggestions and find_closest_string.
32207 * spellcheck.c (find_closest_string): New function.
32208 * spellcheck.h (find_closest_string): New function decl.
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dspellcheck.c147 find_closest_string (const char *target, in find_closest_string() function
306 ASSERT_EQ_AT (loc, candidate, find_closest_string (target, &candidates)); in assert_suggested_for()
324 ASSERT_EQ_AT (loc, NULL, find_closest_string (target, &candidates)); in assert_not_suggested_for()
394 ASSERT_EQ (NULL, find_closest_string ("", &candidates)); in test_find_closest_string()
401 ASSERT_STREQ ("apple", find_closest_string ("app", &candidates)); in test_find_closest_string()
402 ASSERT_STREQ ("banana", find_closest_string ("banyan", &candidates)); in test_find_closest_string()
403 ASSERT_STREQ ("cherry", find_closest_string ("berry", &candidates)); in test_find_closest_string()
404 ASSERT_EQ (NULL, find_closest_string ("not like the others", &candidates)); in test_find_closest_string()
412 ASSERT_STREQ ("apple", find_closest_string ("app", &candidates)); in test_find_closest_string()
413 ASSERT_STREQ ("banana", find_closest_string ("banyan", &candidates)); in test_find_closest_string()
[all …]
H A Dspellcheck.h35 find_closest_string (const char *target,
H A Dopt-suggestions.c45 return find_closest_string in suggest_option()
H A Dopts-common.c1260 return find_closest_string (arg, &candidates); in candidates_list_and_hint()