Lines Matching refs:normalizer
46 normalizer(UnicodeString(), UNORM_NFC) {}
63 if(Normalizer::compare(s1,s2,U_FOLD_CASE_DEFAULT,status)!=0){
64 errln("Normalizer::compare() failed for s1: " + prettify(s1) + " s2: " +prettify(s2));
150 * Test the conformance of Normalizer to
229 dataerrln("Something is wrong with the normalizer, skipping the rest of the test.");
265 dataerrln("Something is wrong with the normalizer, skipping the rest of the test.: %s", u_errorName(status));
309 Normalizer::normalize(field[i], UNORM_NFC, options, out, status);
320 Normalizer::normalize(field[i], UNORM_NFD, options, out, status);
331 Normalizer::normalize(field[i], UNORM_NFKC, options, out, status);
342 Normalizer::normalize(field[i], UNORM_NFKD, options, out, status);
356 if(UNORM_NO == Normalizer::quickCheck(field[1], UNORM_NFC, options, status)) {
357 errln("Normalizer error: quickCheck(NFC(s), UNORM_NFC) is UNORM_NO");
360 if(UNORM_NO == Normalizer::quickCheck(field[2], UNORM_NFD, options, status)) {
361 errln("Normalizer error: quickCheck(NFD(s), UNORM_NFD) is UNORM_NO");
364 if(UNORM_NO == Normalizer::quickCheck(field[3], UNORM_NFKC, options, status)) {
365 errln("Normalizer error: quickCheck(NFKC(s), UNORM_NFKC) is UNORM_NO");
368 if(UNORM_NO == Normalizer::quickCheck(field[4], UNORM_NFKD, options, status)) {
369 errln("Normalizer error: quickCheck(NFKD(s), UNORM_NFKD) is UNORM_NO");
375 result = Normalizer::isNormalized(field[1], UNORM_NFC, status);
377 result = Normalizer::isNormalized(field[1], UNORM_NFC, options, status);
380 dataerrln("Normalizer error: isNormalized(NFC(s), UNORM_NFC) is FALSE");
383 if(field[0]!=field[1] && Normalizer::isNormalized(field[0], UNORM_NFC, options, status)) {
384 errln("Normalizer error: isNormalized(s, UNORM_NFC) is TRUE");
387 if(!Normalizer::isNormalized(field[3], UNORM_NFKC, options, status)) {
388 dataerrln("Normalizer error: isNormalized(NFKC(s), UNORM_NFKC) is FALSE");
391 if(field[0]!=field[3] && Normalizer::isNormalized(field[0], UNORM_NFKC, options, status)) {
392 errln("Normalizer error: isNormalized(s, UNORM_NFKC) is TRUE");
397 Normalizer::normalize(field[0], UNORM_FCD, options, fcd, status);
398 if(UNORM_NO == Normalizer::quickCheck(fcd, UNORM_FCD, options, status)) {
399 errln("Normalizer error: quickCheck(FCD(s), UNORM_FCD) is UNORM_NO");
402 if(UNORM_NO == Normalizer::quickCheck(field[2], UNORM_FCD, options, status)) {
403 errln("Normalizer error: quickCheck(NFD(s), UNORM_FCD) is UNORM_NO");
406 if(UNORM_NO == Normalizer::quickCheck(field[4], UNORM_FCD, options, status)) {
407 errln("Normalizer error: quickCheck(NFKD(s), UNORM_FCD) is UNORM_NO");
411 Normalizer::normalize(fcd, UNORM_NFD, options, out, status);
413 dataerrln("Normalizer error: NFD(FCD(s))!=NFD(s)");
418 dataerrln("Normalizer::normalize returned error status: %s", u_errorName(status));
430 rc=Normalizer::compare(field[0], field[2], (options<<UNORM_COMPARE_NORM_OPTIONS_SHIFT)|U_COMPARE_IGNORE_CASE, status);
432 dataerrln("Normalizer::compare(case-insensitive) sets %s", u_errorName(status));
435 errln("Normalizer
455 normalizer.setText(str, status);
456 normalizer.setMode(mode);
457 normalizer.setOption(-1, 0); // reset all options
458 normalizer.setOption(options, 1); // set desired options
465 for (ch = normalizer.first(); ch != Normalizer::DONE;
466 ch = normalizer.next()) {
470 for (ch = normalizer.last(); ch != Normalizer::DONE;
471 ch = normalizer.previous()) {