/libcore/luni/src/test/java/libcore/java/text/ |
NormalizerTest.java | 19 import java.text.Normalizer; 26 assertEquals(src, Normalizer.normalize(src, Normalizer.Form.NFC)); 30 Normalizer.normalize(src, Normalizer.Form.NFD)); 33 assertEquals("\u038e\u03ab\u1e61", Normalizer.normalize(src, Normalizer.Form.NFKC)); 37 Normalizer.normalize(src, Normalizer.Form.NFKD)); 40 assertEquals("\u00e9", Normalizer.normalize("\u0065\u0301", Normalizer.Form.NFC)) [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/ |
NormalizerRegressionTests.java | 8 package com.ibm.icu.dev.test.normalizer; 11 import com.ibm.icu.text.Normalizer; 21 logln("Normalized: " + Normalizer.isNormalized(tamil, Normalizer.NFC, 0)); 39 logln("Normalized: " + Normalizer.isNormalized(sample, Normalizer.NFC, 0)); 44 logln("Normalized: " + Normalizer.isNormalized(sample2, Normalizer.NFC, 0));
|
ConformanceTest.java | 8 package com.ibm.icu.dev.test.normalizer; 17 import com.ibm.icu.text.Normalizer; 23 Normalizer normalizer; field in class:ConformanceTest 32 normalizer = new Normalizer("", Normalizer.NFC, 0); 44 * Test the conformance of Normalizer to 52 runConformance("unicode/NormalizationTest-3.2.0.txt",Normalizer.UNICODE_3_2); 155 out = Normalizer.normalize(field[i], Normalizer.NFC, options) [all...] |
BasicTest.java | 8 package com.ibm.icu.dev.test.normalizer; 22 import com.ibm.icu.text.Normalizer; 122 staticTest(Normalizer.NFC, hangulCanon, 2); 124 staticTest(Normalizer.NFKC, hangulCompat, 2); 127 Normalizer norm = new Normalizer("", Normalizer.NFC,0); 130 norm.setMode(Normalizer.NFKD); 135 norm.setMode(Normalizer.NFC); 142 staticTest(Normalizer.NFD, hangulCanon, 1) [all...] |
TestDeprecatedNormalizerAPI.java | 7 package com.ibm.icu.dev.test.normalizer; 14 import com.ibm.icu.text.Normalizer; 47 // instantiate a Normalizer from a CharacterIterator 52 Normalizer norm = new Normalizer(iter, Normalizer.NFC,0); 54 errln("error in Normalizer(CharacterIterator).next()"); 56 Normalizer norm2 = new Normalizer(s,Normalizer.NFC,0) [all...] |
NormalizationMonkeyTest.java | 8 package com.ibm.icu.dev.test.normalizer; 15 import com.ibm.icu.text.Normalizer; 58 String icuNorm = Normalizer.normalize(source, Normalizer.NFD); 66 icuNorm = Normalizer.normalize(source, Normalizer.NFC); 74 icuNorm = Normalizer.normalize(source, Normalizer.NFKD); 82 icuNorm = Normalizer.normalize(source, Normalizer.NFKC) [all...] |
/libcore/ojluni/src/main/java/java/text/ |
Normalizer.java | 111 public final class Normalizer { 113 private Normalizer() { 130 NFD(android.icu.text.Normalizer.NFD), 135 NFC(android.icu.text.Normalizer.NFC), 140 NFKD(android.icu.text.Normalizer.NFKD), 145 NFKC(android.icu.text.Normalizer.NFKC); 147 private final android.icu.text.Normalizer.Mode icuMode; 149 Form(android.icu.text.Normalizer.Mode icuMode) { 161 * {@link java.text.Normalizer.Form#NFC}, 162 * {@link java.text.Normalizer.Form#NFD} [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
NormalizerTest.java | 20 import java.text.Normalizer; 21 import java.text.Normalizer.Form; 27 * @tests java.text.Normalizer.Form#values() 39 * @tests java.text.Normalizer.Form#valueOf(String) 77 * @tests java.text.Normalizer#isNormalized(CharSequence, Form) 81 assertTrue(Normalizer.isNormalized(src, Form.NFC)); 82 assertFalse(Normalizer.isNormalized(src, Form.NFD)); 83 assertTrue(Normalizer.isNormalized(src, Form.NFKC)); 84 assertFalse(Normalizer.isNormalized(src, Form.NFKD)); 87 assertFalse(Normalizer.isNormalized(src, Form.NFC)) [all...] |