Home
last modified time | relevance | path

Searched refs:decomp (Results 1 – 25 of 31) sorted by relevance

12

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/
DTestDeprecatedNormalizerAPI.java134 String decomp = Normalizer.decompose(xString, compat); in assertNoDecomp() local
135 if (!decomp.equals(xString)) { in assertNoDecomp()
136 errln("ERROR: " + hex(x) + " has decomposition (" + hex(decomp) + ")" in assertNoDecomp()
152 String decomp = iter.decomposition(); in TestRoundTrip() local
153 String comp = Normalizer.compose(decomp, compat); in TestRoundTrip()
161 if (decomp.length() == 4) continue; in TestRoundTrip()
164 errln("ERROR: Round trip invalid: " + hex(chStr) + " --> " + hex(decomp) in TestRoundTrip()
167 errln(" char decomp is '" + decomp + "'"); in TestRoundTrip()
DNormalizerBuilder.java173 String decomp = fromHex(segment); in buildDecompositionTables() local
188 int decompLen = UTF16Util.countCodePoint(decomp); in buildDecompositionTables()
192 decompose.put(value, decomp); in buildDecompositionTables()
199 int second = UTF16Util.nextCodePoint(decomp, 0); in buildDecompositionTables()
202 second = UTF16Util.nextCodePoint(decomp, in buildDecompositionTables()
214 System.out.println("Excluding: " + decomp); in buildDecompositionTables()
416 String decomp = decomposeData[i+1]; in setMinimalDecomp() local
419 decompose.put(value, decomp); in setMinimalDecomp()
422 int second = UTF16Util.nextCodePoint(decomp, 0); in setMinimalDecomp()
423 if (decomp.length() > 1) { in setMinimalDecomp()
[all …]
DNormalizerData.java62 String decomp = decompose.get(ch); in getRecursiveDecomposition() local
63 if (decomp != null && !(canonical && isCompatibility.get(ch))) { in getRecursiveDecomposition()
64 for (int i = 0; i < decomp.length(); i+=UTF16Util.codePointLength(ch)) { in getRecursiveDecomposition()
65 ch = UTF16Util.nextCodePoint(decomp, i); in getRecursiveDecomposition()
DTestCanonicalIterator.java198 String decomp = Normalizer.decompose(s, false); in characterTest() local
203 if (s.equals(decomp) && s.equals(comp)) return; in characterTest()
211 if (item.equals(decomp)) gotDecomp = true; in characterTest()
220 + (item.equals(decomp) ? "\t(*decomp*)" : "") in characterTest()
252 errln("FAIL CanonicalIterator: " + s + " decomp: " +decomp+" comp: "+comp); in characterTest()
DBasicTest.java222 String[][] decomp = { in TestTibetan() local
229 staticTest(Normalizer.NFD, decomp, 1); in TestTibetan()
230 staticTest(Normalizer.NFKD,decomp, 2); in TestTibetan()
2520 String decomp=n2.getDecomposition(0x20); in TestGetDecomposition() local
2521 assertEquals("fcc.getDecomposition(space) failed", null, decomp); in TestGetDecomposition()
2522 decomp=n2.getDecomposition(0xe4); in TestGetDecomposition()
2523 assertEquals("fcc.getDecomposition(a-umlaut) failed", "a\u0308", decomp); in TestGetDecomposition()
2524 decomp=n2.getDecomposition(0xac01); in TestGetDecomposition()
2525 … assertEquals("fcc.getDecomposition(Hangul syllable U+AC01) failed", "\u1100\u1161\u11a8", decomp); in TestGetDecomposition()
2535 String decomp=n2.getRawDecomposition(0x20); in TestGetRawDecomposition() local
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcnormtst.c1476 UChar decomp[32]; in TestGetDecomposition() local
1486 length=unorm2_getDecomposition(n2, 0x20, decomp, UPRV_LENGTHOF(decomp), &errorCode); in TestGetDecomposition()
1491 length=unorm2_getDecomposition(n2, 0xe4, decomp, UPRV_LENGTHOF(decomp), &errorCode); in TestGetDecomposition()
1492 if(U_FAILURE(errorCode) || length!=2 || decomp[0]!=0x61 || decomp[1]!=0x308 || decomp[2]!=0) { in TestGetDecomposition()
1496 length=unorm2_getDecomposition(n2, 0xac01, decomp, UPRV_LENGTHOF(decomp), &errorCode); in TestGetDecomposition()
1497 …if(U_FAILURE(errorCode) || length!=3 || decomp[0]!=0x1100 || decomp[1]!=0x1161 || decomp[2]!=0x11a… in TestGetDecomposition()
1506 length=unorm2_getDecomposition(n2, 0xac01, decomp, -1, &errorCode); in TestGetDecomposition()
1519 UChar decomp[32]; in TestGetRawDecomposition() local
1533 length=unorm2_getRawDecomposition(n2, 0x20, decomp, UPRV_LENGTHOF(decomp), &errorCode); in TestGetRawDecomposition()
1538 length=unorm2_getRawDecomposition(n2, 0xe4, decomp, UPRV_LENGTHOF(decomp), &errorCode); in TestGetRawDecomposition()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCanonicalIterator.java52 nfd = allModes.decomp; in CanonicalIterator()
370 String decomp = nfcImpl.getDecomposition(comp); in extract() local
371 if (decomp == null) { in extract()
372 decomp = UTF16.valueOf(comp); in extract()
379 int decompCp = UTF16.charAt(decomp,0); in extract()
388 if (decompPos == decomp.length()) { // done, have all decomp characters! in extract()
393 decompCp = UTF16.charAt(decomp, decompPos); in extract()
DNormalizer2.java132 return Norm2AllModes.getNFCInstance().decomp; in getNFDInstance()
154 return Norm2AllModes.getNFKCInstance().decomp; in getNFKDInstance()
203 case DECOMPOSE: return all2Modes.decomp; in getInstance()
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
DRoundTripTest.java265 String decomp = Normalizer.decompose(charStr, false); in addRepresentativeHangul() local
266 if (decomp.length() != leng) { in addRepresentativeHangul()
269 if (decomp.startsWith("\u110B ") != noFirstConsonant) { in addRepresentativeHangul()
272 if (!notYetSeen.containsAll(decomp)) { in addRepresentativeHangul()
274 notYetSeen.addAll(decomp); in addRepresentativeHangul()
910 String decomp = Normalizer.normalize(sourceString, Normalizer.NFD); in is() local
911 for (int i = 0; i < decomp.length(); ++i) { // don't worry about surrogates in is()
912 switch (getType(decomp.charAt(i))) { in is()
914 t = getType(decomp.charAt(i+1)); in is()
918 t = getType(decomp.charAt(i-1)); in is()
[all …]
/external/icu/icu4c/source/test/intltest/
Dcanittst.cpp178 UnicodeString decomp, comp; in characterTest() local
183 Normalizer::decompose(s, FALSE, 0, decomp, status); in characterTest()
188 if (s == decomp && s == comp) { in characterTest()
198 if (item == decomp) gotDecomp = TRUE; in characterTest()
Dtransrt.cpp134 UnicodeString decomp; in is() local
136 Normalizer::decompose(sourceString, FALSE, 0, decomp, ec); in is()
140 for (int i = 0; i < decomp.length(); ++i) { // don't worry about surrogates in is()
141 switch (getType(decomp.charAt(i))) { in is()
142 case 0: t = getType(decomp.charAt(i+1)); in is()
145 case 1: t = getType(decomp.charAt(i-1)); in is()
148 case 2: t = getType(decomp.charAt(i-1)); in is()
180 UnicodeString decomp; in is() local
182 Normalizer::decompose(sourceString, FALSE, 0, decomp, ec); in is()
191 for (int32_t i = 0; i < decomp.length(); ++i) { in is()
[all …]
Dtstnorm.cpp271 UnicodeString decomp[1][3]; in TestTibetan() local
272 decomp[0][0] = str("\\u0f77"); in TestTibetan()
273 decomp[0][1] = str("\\u0f77"); in TestTibetan()
274 decomp[0][2] = str("\\u0fb2\\u0f71\\u0f80"); in TestTibetan()
281 staticTest(UNORM_NFD, 0, decomp, ARRAY_LENGTH(decomp), 1); in TestTibetan()
282 staticTest(UNORM_NFKD, 0, decomp, ARRAY_LENGTH(decomp), 2); in TestTibetan()
Ducdtest.cpp340 UnicodeString decomp=nfd->normalize(UnicodeString(start), errorCode); in TestConsistency() local
341 if(decomp.length()>1 && decomp[0]==0x49) { in TestConsistency()
Dregcoll.cpp177 static const UChar decomp[][CollationRegressionTest::MAX_TOKEN_LEN] = in Test4054734() local
192 compareArray(*c, decomp, ARRAY_LENGTH(decomp)); in Test4054734()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationBuilder.java920 String decomp = nfd.getDecomposition(composite);
921 if(!mergeCompositeIntoString(nfdString, indexAfterLastStarter, composite, decomp,
955 int composite, CharSequence decomp,
958 Character.codePointAt(decomp, 0));
959 int lastStarterLength = Character.offsetByCodePoints(decomp, 0, 1);
960 if(lastStarterLength == decomp.length()) {
965 if(equalSubSequences(nfdString, indexAfterLastStarter, decomp, lastStarterLength)) {
999 if(decompIndex >= decomp.length()) { break; }
1000 int decompChar = Character.codePointAt(decomp, decompIndex);
1032 … } else if(decompIndex < decomp.length()) { // more characters from decomp, not from nfdString
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DNorm2AllModes.java286 decomp=new DecomposeNormalizer2(ni); in Norm2AllModes()
293 public final DecomposeNormalizer2 decomp; field in Norm2AllModes
315 case 0: return getNFCInstance().decomp; // NFD in getN2WithImpl()
316 case 1: return getNFKCInstance().decomp; // NFKD in getN2WithImpl()
/external/icu/icu4c/source/i18n/
Dcollationbuilder.cpp1172 UnicodeString decomp; in addTailComposites() local
1179 nfd.getDecomposition(composite, decomp); in addTailComposites()
1180 if(!mergeCompositeIntoString(nfdString, indexAfterLastStarter, composite, decomp, in addTailComposites()
1216 UChar32 composite, const UnicodeString &decomp, in mergeCompositeIntoString() argument
1220 U_ASSERT(nfdString.char32At(indexAfterLastStarter - 1) == decomp.char32At(0)); in mergeCompositeIntoString()
1221 int32_t lastStarterLength = decomp.moveIndex32(0, 1); in mergeCompositeIntoString()
1222 if(lastStarterLength == decomp.length()) { in mergeCompositeIntoString()
1228 decomp, lastStarterLength, 0x7fffffff) == 0) { in mergeCompositeIntoString()
1259 if(decompIndex >= decomp.length()) { break; } in mergeCompositeIntoString()
1260 UChar32 decompChar = decomp.char32At(decompIndex); in mergeCompositeIntoString()
[all …]
Drulebasedcollator.cpp794 U16_NEXT_UNSAFE(decomp, index, c); in nextCodePoint()
808 decomp = nfcImpl.getDecomposition(c, buffer, length); in nextDecomposedCodePoint()
809 if(decomp == NULL) { return c; } in nextDecomposedCodePoint()
811 U16_NEXT_UNSAFE(decomp, index, c); in nextDecomposedCodePoint()
821 const UChar *decomp; member in __anonce12549f0211::NFDIterator
Dcollationbuilder.h136 UChar32 composite, const UnicodeString &decomp,
/external/icu/icu4c/source/common/
Dcaniter.cpp511 const UChar *decomp=decompString.getBuffer(); in extract() local
519 U16_NEXT(decomp, decompPos, decompLen, decompCp); in extract()
534 U16_NEXT(decomp, decompPos, decompLen, decompCp); in extract()
Dloadednormalizer2impl.cpp194 return allModes!=NULL ? &allModes->decomp : NULL; in getNFKDInstance()
268 return &allModes->decomp; in getInstance()
Dnorm2allmodes.h318 : impl(i), comp(*i, FALSE), decomp(*i), fcd(*i), fcc(*i, TRUE) {} in Norm2AllModes()
333 DecomposeNormalizer2 decomp; member
/external/zlib/src/contrib/blast/
Dblast.c278 local int decomp(struct state *s) in decomp() function
401 err = decomp(&s); /* decompress */ in blast()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DRuleBasedCollator.java1527 if(index == decomp.length()) { in nextCodePoint()
1530 int c = Character.codePointAt(decomp, index); in nextCodePoint()
1545 decomp = nfcImpl.getDecomposition(c); in nextDecomposedCodePoint()
1546 if(decomp == null) { return c; } in nextDecomposedCodePoint()
1547 c = Character.codePointAt(decomp, 0); in nextDecomposedCodePoint()
1558 private String decomp; field in RuleBasedCollator.NFDIterator
/external/harfbuzz_ng/src/
Dhb-ot-shape-complex-indic.cc1800 case 0x0B57u : *a = no decomp, -> RIGHT; return true; in decompose_indic()
1801 case 0x1C29u : *a = no decomp, -> LEFT; return true; in decompose_indic()
1802 case 0xA9C0u : *a = no decomp, -> RIGHT; return true; in decompose_indic()
1803 case 0x111BuF : *a = no decomp, -> ABOVE; return true; in decompose_indic()

12