Lines Matching refs:sc

50  *         "sc" is the ready-to-go  SpoofChecker for use in the tests.
54 USpoofChecker *sc; \
55 sc = uspoof_open(&status); \
62 uspoof_close(sc); \
82 const UChar scMixed[] = {(UChar)0x73, (UChar)0x0441, 0}; /* "sc", with Cyrillic 'c' */
85 const UChar scLatin[] = {(UChar)0x73, (UChar)0x63, 0}; /* "sc", plain ascii. */
114 USpoofChecker *sc;
116 sc = uspoof_open(&status);
123 uspoof_close(sc);
189 serializedSize = uspoof_serialize(sc, NULL, 0, &status);
198 uspoof_serialize(sc, buf, serializedSize, &status);
228 uspoof_setChecks(sc, USPOOF_ALL_CHECKS, &status);
230 t = uspoof_getChecks(sc, &status);
233 uspoof_setChecks(sc, 0, &status);
235 t = uspoof_getChecks(sc, &status);
238 uspoof_setChecks(sc,
242 t = uspoof_getChecks(sc, &status);
254 uset = uspoof_getAllowedChars(sc, &status);
258 uspoof_setAllowedChars(sc, us, &status);
260 TEST_ASSERT_NE(us, uspoof_getAllowedChars(sc, &status));
261 TEST_ASSERT(uset_equals(us, uspoof_getAllowedChars(sc, &status)));
275 clone1 = uspoof_clone(sc, &status);
277 TEST_ASSERT_NE(clone1, sc);
301 result = uspoof_check(sc, goodLatin, -1, NULL, &status);
305 result = uspoof_check(sc, han_Hiragana, -1, NULL, &status);
309 result = uspoof_check(sc, scMixed, -1, NULL, &status);
323 checks = uspoof_getChecks(sc, &status);
328 uspoof_setChecks(sc, checks, &status);
330 checks2 = uspoof_getChecks(sc, &status);
335 checkResults = uspoof_check(sc, scMixed, -1, NULL, &status);
349 allowedLocales = uspoof_getAllowedLocales(sc, &status);
354 uspoof_setAllowedLocales(sc, "en, ru_RU", &status);
356 allowedLocales = uspoof_getAllowedLocales(sc, &status);
363 uspoof_setChecks(sc, USPOOF_CHAR_LIMIT, &status);
366 checkResults = uspoof_check(sc, goodLatin, -1, NULL, &status);
370 checkResults = uspoof_check(sc, goodGreek, -1, NULL, &status);
374 checkResults = uspoof_check(sc, goodCyrl, -1, NULL, &status);
379 uspoof_setAllowedLocales(sc, " ", &status);
382 checkResults = uspoof_check(sc, goodGreek, -1, NULL, &status);
396 set = uspoof_getAllowedChars(sc, &status);
402 uspoof_setChecks(sc, USPOOF_ALL_CHECKS & ~USPOOF_CHAR_LIMIT, &status);
407 uspoof_setAllowedChars(sc, tmpSet, &status);
415 checkResults = uspoof_check(sc, goodLatin, -1, NULL, &status);
419 checkResults = uspoof_check(sc, goodGreek, -1, NULL, &status);
435 checkResults = uspoof_checkUTF8(sc, utf8buf, -1, &position, &status);
442 checkResults = uspoof_checkUTF8(sc, utf8buf, -1, &position, &status);
449 checkResults = uspoof_checkUTF8(sc, utf8buf, -1, &position, &status);
462 checkResults = uspoof_areConfusable(sc, scLatin, -1, scMixed, -1, &status);
466 checkResults = uspoof_areConfusable(sc, goodGreek, -1, scLatin, -1, &status);
470 checkResults = uspoof_areConfusable(sc, lll_Latin_a, -1, lll_Latin_b, -1, &status);
488 checkResults = uspoof_areConfusableUTF8(sc, s1, -1, s2, -1, &status);
495 checkResults = uspoof_areConfusableUTF8(sc, s1, -1, s2, -1, &status);
502 checkResults = uspoof_areConfusableUTF8(sc, s1, -1, s2, -1, &status);
517 skelLength = uspoof_getSkeleton(sc, USPOOF_ANY_CASE, lll_Latin_a, -1, dest, sizeof(dest)/sizeof(UChar), &status);
522 skelLength = uspoof_getSkeletonUTF8(sc, USPOOF_ANY_CASE, goodLatinUTF8, -1, (char*)dest,
526 skelLength = uspoof_getSkeleton(sc, USPOOF_ANY_CASE, lll_Latin_a, -1, NULL, 0, &status);