Home
last modified time | relevance | path

Searched refs:Normalizer (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/test/java/libcore/java/text/
DNormalizerTest.java19 import java.text.Normalizer;
26 assertEquals(src, Normalizer.normalize(src, Normalizer.Form.NFC)); in testNormalize()
30 Normalizer.normalize(src, Normalizer.Form.NFD)); in testNormalize()
33 assertEquals("\u038e\u03ab\u1e61", Normalizer.normalize(src, Normalizer.Form.NFKC)); in testNormalize()
37 Normalizer.normalize(src, Normalizer.Form.NFKD)); in testNormalize()
40 assertEquals("\u00e9", Normalizer.normalize("\u0065\u0301", Normalizer.Form.NFC)); in testNormalize()
43 assertEquals("\u1e69", Normalizer.normalize("\u1e9b\u0323", Normalizer.Form.NFKC)); in testNormalize()
46 Normalizer.normalize(null, Normalizer.Form.NFC); in testNormalize()
57 assertTrue(Normalizer.isNormalized(target, Normalizer.Form.NFC)); in testIsNormalized()
58 assertFalse(Normalizer.isNormalized(target, Normalizer.Form.NFD)); in testIsNormalized()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DNormalizerTest.java20 import java.text.Normalizer;
21 import java.text.Normalizer.Form;
81 assertTrue(Normalizer.isNormalized(src, Form.NFC)); in test_isNormalized()
82 assertFalse(Normalizer.isNormalized(src, Form.NFD)); in test_isNormalized()
83 assertTrue(Normalizer.isNormalized(src, Form.NFKC)); in test_isNormalized()
84 assertFalse(Normalizer.isNormalized(src, Form.NFKD)); in test_isNormalized()
87 assertFalse(Normalizer.isNormalized(src, Form.NFC)); in test_isNormalized()
88 assertTrue(Normalizer.isNormalized(src, Form.NFD)); in test_isNormalized()
89 assertFalse(Normalizer.isNormalized(src, Form.NFKC)); in test_isNormalized()
90 assertTrue(Normalizer.isNormalized(src, Form.NFKD)); in test_isNormalized()
[all …]
/libcore/ojluni/src/main/java/java/text/
DNormalizer.java107 public final class Normalizer { class
109 private Normalizer() {}; in Normalizer() method in Normalizer
126 NFD(android.icu.text.Normalizer.NFD),
131 NFC(android.icu.text.Normalizer.NFC),
136 NFKD(android.icu.text.Normalizer.NFKD),
141 NFKC(android.icu.text.Normalizer.NFKC);
143 private final android.icu.text.Normalizer.Mode icuMode;
145 Form(android.icu.text.Normalizer.Mode icuMode) { in Form()
167 return android.icu.text.Normalizer.normalize(src.toString(), form.icuMode); in normalize()
185 return android.icu.text.Normalizer.isNormalized(src.toString(), form.icuMode, 0); in isNormalized()
/libcore/ojluni/src/main/java/sun/security/x509/
DAVA.java34 import java.text.Normalizer;
1023 return Normalizer.normalize(canon, Normalizer.Form.NFKD); in toRFC2253CanonicalString()
/libcore/ojluni/src/main/java/java/net/
DURI.java40 import java.text.Normalizer;
2768 String ns = Normalizer.normalize(s, Normalizer.Form.NFC); in encode()
/libcore/
Dopenjdk_java_files.bp765 "ojluni/src/main/java/java/text/Normalizer.java",