Home
last modified time | relevance | path

Searched refs:nfkc (Results 1 – 25 of 32) sorted by relevance

12

/external/rust/crates/unicode-normalization/src/
Dlib.rs113 fn nfkc(self) -> Recompositions<I>; in nfkc() method
149 fn nfkc(self) -> Recompositions<Chars<'a>> { in nfkc() method
181 fn nfkc(self) -> Recompositions<I> { in nfkc() method
Dtest.rs89 assert_eq!($input.nfkc().to_string(), $expected); in test_nfkc()
Dquick_check.rs122 IsNormalized::Maybe => s.chars().eq(s.chars().nfkc()), in is_nfkc()
/external/icu/icu4c/source/test/intltest/
Dtstnrapi.cpp59 UnicodeString tel, nfkc, nfkd; in TestNormalizerAPI() local
64 Normalizer::compose(tel, TRUE, 0, nfkc, errorCode); in TestNormalizerAPI()
69 nfkc!=UnicodeString("TE\\u0139TELTELTELTELTELTELTELTELTEL", "").unescape() || in TestNormalizerAPI()
Dtstnorm.cpp1769 const Normalizer2 *nfkc = Normalizer2::getNFKCInstance(errorCode); in TestComposeJamoTBase() local
1775 UnicodeString result = nfkc->normalize(s, errorCode); in TestComposeJamoTBase()
1778 assertFalse("isNormalized(LV+11A7)", nfkc->isNormalized(s, errorCode)); in TestComposeJamoTBase()
1779 assertTrue("isNormalized(normalized)", nfkc->isNormalized(result, errorCode)); in TestComposeJamoTBase()
1785 nfkc->normalizeUTF8(0, s8, sink, nullptr, errorCode); in TestComposeJamoTBase()
1788 assertFalse("isNormalizedUTF8(LV+11A7)", nfkc->isNormalizedUTF8(s8, errorCode)); in TestComposeJamoTBase()
1789 assertTrue("isNormalizedUTF8(normalized)", nfkc->isNormalizedUTF8(result8, errorCode)); in TestComposeJamoTBase()
1795 const Normalizer2 *nfkc = Normalizer2::getNFKCInstance(errorCode); in TestComposeBoundaryAfter() local
1802 UnicodeString result = nfkc->normalize(s, errorCode); in TestComposeBoundaryAfter()
1805 assertFalse("U+02DA boundary-after", nfkc->hasBoundaryAfter(0x2DA)); in TestComposeBoundaryAfter()
[all …]
Dnormconf.cpp44 nfkc = Normalizer2::getNFKCInstance(errorCode); in NormalizerConformanceTest()
321 pass &= checkNorm(UNORM_NFKC, options, nfkc, field[i], field[3], fieldNum); in checkConformance()
372 if(options==0 && !isNormalizedUTF8(*nfkc, field[3], status)) { in checkConformance()
381 if(options==0 && isNormalizedUTF8(*nfkc, field[0], status)) { in checkConformance()
Dnormconf.h25 const Normalizer2 *nfc, *nfd, *nfkc, *nfkd; variable
/external/rust/crates/unicode-normalization/benches/
Dbench.rs98 b.iter(|| ASCII.nfkc().count()); in bench_nfkc_ascii()
109 b.iter(|| long.nfkc().count()); in bench_nfkc_long()
/external/tflite-support/third_party/
Dicu.BUILD36 name = "nfkc",
/external/icu/icu4c/source/data/translit/
DHan_Spacedhan.txt13 :: [[㆒-㆟㈠-㉇㊀-㊰㋀-㋋㍘-㍰㍻-㍿㏠-㏾ ��-����-����-������][:ideographic:][:sc=han:]] nfkc;
/external/rust/crates/unicode-normalization/scripts/
Dunicode.py190 source, nfc, nfd, nfkc, nfkd = [[c.strip() for c in p.split()] for p in test_pieces[:5]]
191 tests.append(NormalizationTest(source, nfc, nfd, nfkc, nfkd))
458 out.write(" nfkc: %s,\n" % str_literal(test.nfkc))
/external/icu/icu4c/source/common/
Duprops.cpp764 const Normalizer2 *nfkc=Normalizer2::getNFKCInstance(*pErrorCode); in u_getFC_NFKC_Closure() local
773 const Normalizer2Impl *nfkcImpl=Normalizer2Factory::getImpl(nfkc); in u_getFC_NFKC_Closure()
785 UnicodeString kc1=nfkc->normalize(folded1String, *pErrorCode); in u_getFC_NFKC_Closure()
788 UnicodeString kc2=nfkc->normalize(folded2String.foldCase(), *pErrorCode); in u_getFC_NFKC_Closure()
/external/cldr/tools/java/org/unicode/cldr/util/
DCollationMapMaker.java409 Set nfkc = new HashSet(); in addExpansionResults() local
414 nfkc.add(Normalizer.compose(source, true)); in addExpansionResults()
461 if (contractions.contains(result) || nfkc.contains(result)) { in addExpansionResults()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/
DBasicTest.java1465 String nfkc, nfkd; in TestNormalizerAPI() local
1469 nfkc=Normalizer.compose(tel.toString(), true); in TestNormalizerAPI()
1472 !nfkc.equals(Utility.unescape("TE\u0139TELTELTELTELTELTELTELTELTEL"))|| in TestNormalizerAPI()
2874 Normalizer2 nfkc = Normalizer2.getNFKCInstance(); in TestComposeJamoTBase() local
2877 String result = nfkc.normalize(s); in TestComposeJamoTBase()
2879 assertFalse("isNormalized(LV+11A7)", nfkc.isNormalized(s)); in TestComposeJamoTBase()
2880 assertTrue("isNormalized(normalized)", nfkc.isNormalized(result)); in TestComposeJamoTBase()
2885 Normalizer2 nfkc = Normalizer2.getNFKCInstance(); in TestComposeBoundaryAfter() local
2889 String result = nfkc.normalize(s); in TestComposeBoundaryAfter()
2891 assertFalse("U+02DA boundary-after", nfkc.hasBoundaryAfter(0x2DA)); in TestComposeBoundaryAfter()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/normalizer/
DBasicTest.java1468 String nfkc, nfkd; in TestNormalizerAPI() local
1472 nfkc=Normalizer.compose(tel.toString(), true); in TestNormalizerAPI()
1475 !nfkc.equals(Utility.unescape("TE\u0139TELTELTELTELTELTELTELTELTEL"))|| in TestNormalizerAPI()
2877 Normalizer2 nfkc = Normalizer2.getNFKCInstance(); in TestComposeJamoTBase() local
2880 String result = nfkc.normalize(s); in TestComposeJamoTBase()
2882 assertFalse("isNormalized(LV+11A7)", nfkc.isNormalized(s)); in TestComposeJamoTBase()
2883 assertTrue("isNormalized(normalized)", nfkc.isNormalized(result)); in TestComposeJamoTBase()
2888 Normalizer2 nfkc = Normalizer2.getNFKCInstance(); in TestComposeBoundaryAfter() local
2892 String result = nfkc.normalize(s); in TestComposeBoundaryAfter()
2894 assertFalse("U+02DA boundary-after", nfkc.hasBoundaryAfter(0x2DA)); in TestComposeBoundaryAfter()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNormalizer.java1475 Normalizer2 nfkc=NFKCModeImpl.INSTANCE.normalizer2; in getFC_NFKC_Closure() local
1481 Normalizer2Impl nfkcImpl=((Norm2AllModes.Normalizer2WithImpl)nfkc).impl; in getFC_NFKC_Closure()
1491 String kc1=nfkc.normalize(folded); in getFC_NFKC_Closure()
1493 String kc2=nfkc.normalize(UCharacter.foldCase(kc1, 0)); in getFC_NFKC_Closure()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNormalizer.java1449 Normalizer2 nfkc=NFKCModeImpl.INSTANCE.normalizer2; in getFC_NFKC_Closure() local
1455 Normalizer2Impl nfkcImpl=((Norm2AllModes.Normalizer2WithImpl)nfkc).impl; in getFC_NFKC_Closure()
1465 String kc1=nfkc.normalize(folded); in getFC_NFKC_Closure()
1467 String kc2=nfkc.normalize(UCharacter.foldCase(kc1, 0)); in getFC_NFKC_Closure()
/external/icu/icu4c/source/test/cintltst/
Dcnormtst.c1162 nfkc[]={ in TestNextPrevious() local
1205 …_testIter(src, UPRV_LENGTHOF(src), &iter, UNORM_NFKC, TRUE, nfkc, UPRV_LENGTHOF(nfkc), nfkcIndexes… in TestNextPrevious()
1216 …_testIter(src, UPRV_LENGTHOF(src), &iter, UNORM_NFKC, FALSE, nfkc, UPRV_LENGTHOF(nfkc), nfkcIndexe… in TestNextPrevious()
Dcucdtst.c944 const UNormalizer2 *nfkc;
979 const UNormalizer2 *nfc, *nfkc; in unicodeDataLineFn() local
1017 nfkc=((UnicodeDataContext *)context)->nfkc; in unicodeDataLineFn()
1018 if(value!=unorm2_getCombiningClass(nfkc, c)) { in unicodeDataLineFn()
1019 …CombiningClass(nfkc, U+%04lx)==%hu instead of %lu\n", c, unorm2_getCombiningClass(nfkc, c), value); in unicodeDataLineFn()
1081 length=unorm2_getRawDecomposition(nfkc, c, s, 32, pErrorCode); in unicodeDataLineFn()
1347 context.nfkc=unorm2_getNFKCInstance(&errorCode); in TestUnicodeData()
/external/icu/icu4c/source/data/unidata/
Dchanges.txt173 bin/gennorm2 -o $ICU4C_DATA_IN/nfkc.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt
174 bin/gennorm2 -o $ICU4C_DATA_IN/nfkc_cf.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt nfkc_cf.txt
447 bin/gennorm2 -o $ICU4C_DATA_IN/nfkc.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt
448 bin/gennorm2 -o $ICU4C_DATA_IN/nfkc_cf.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt nfkc_cf.txt
760 bin/gennorm2 -o $ICU4C_DATA_IN/nfkc.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt
761 bin/gennorm2 -o $ICU4C_DATA_IN/nfkc_cf.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt nfkc_cf.txt
1247 bin/gennorm2 -o $ICU4C_DATA_IN/nfkc.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt
1248 bin/gennorm2 -o $ICU4C_DATA_IN/nfkc_cf.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt nfkc_cf.txt
1639 bin/gennorm2 -o $ICU4C_DATA_IN/nfkc.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt
1640 bin/gennorm2 -o $ICU4C_DATA_IN/nfkc_cf.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt nfkc_cf.txt
[all …]
/external/icu/icu4c/source/data/misc/
DkeyTypeData.txt488 nfkc{""}
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestBasic.java422 String nfkc = Normalizer.normalize(fishyCodepoint, Normalizer.NFKC); in TestCurrencyFallback() local
423 if (!nfkc.equals(UTF16.valueOf(fishyCodepoint))) { in TestCurrencyFallback()
430 fallbackList.add(nfkc); in TestCurrencyFallback()
/external/icu/icu4c/source/data/
Dmakedata.mak493 "$(ICUBLD_PKG)\nfkc.nrm": $(ICUSRCDATA_RELATIVE_PATH)\in\nfkc.nrm
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUCharacterTest.java706 Normalizer2 nfkc = Normalizer2.getNFKCInstance(); in TestUnicodeData() local
754 if (nfkc.getCombiningClass(ch) != cc) in TestUnicodeData()
832 String mapping=nfkc.getRawDecomposition(ch); in TestUnicodeData()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUCharacterTest.java703 Normalizer2 nfkc = Normalizer2.getNFKCInstance(); in TestUnicodeData() local
751 if (nfkc.getCombiningClass(ch) != cc) in TestUnicodeData()
829 String mapping=nfkc.getRawDecomposition(ch); in TestUnicodeData()

12