Home
last modified time | relevance | path

Searched refs:normalize (Results 1 – 25 of 58) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DNormalizerTest.java135 assertEquals("\u00c1", Normalizer.normalize(src, Form.NFC)); in test_normalize()
136 assertEquals("\u0041\u0301", Normalizer.normalize(src, Form.NFD)); in test_normalize()
137 assertEquals("\u00c1", Normalizer.normalize(src, Form.NFKC)); in test_normalize()
138 assertEquals("\u0041\u0301", Normalizer.normalize(src, Form.NFKD)); in test_normalize()
141 assertEquals("\u00c1", Normalizer.normalize(src, Form.NFC)); in test_normalize()
142 assertEquals("\u0041\u0301", Normalizer.normalize(src, Form.NFD)); in test_normalize()
143 assertEquals("\u00c1", Normalizer.normalize(src, Form.NFKC)); in test_normalize()
144 assertEquals("\u0041\u0301", Normalizer.normalize(src, Form.NFKD)); in test_normalize()
147 assertEquals("\ufb03", Normalizer.normalize(src, Form.NFC)); in test_normalize()
148 assertEquals("\ufb03", Normalizer.normalize(src, Form.NFD)); in test_normalize()
[all …]
/libcore/ojluni/src/test/java/nio/file/Path/
DPathOps.java185 PathOps normalize(String expected) { in normalize() method in PathOps
187 check(path.normalize(), expected); in normalize()
438 .normalize("/"); in doUnixTests()
440 .normalize("foo"); in doUnixTests()
442 .normalize("/foo"); in doUnixTests()
444 .normalize(""); in doUnixTests()
446 .normalize(""); in doUnixTests()
448 .normalize(".."); in doUnixTests()
450 .normalize("/"); in doUnixTests()
452 .normalize("/"); in doUnixTests()
[all …]
/libcore/luni/src/test/java/libcore/java/text/
DNormalizerTest.java26 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()
/libcore/ojluni/src/main/java/java/util/
DDate.java336 d.normalize(udate); in UTC()
672 return normalize().getYear() - 1900; in getYear()
708 return normalize().getMonth() - 1; // adjust 1-based to 0-based in getMonth()
756 return normalize().getDayOfMonth(); in getDate()
795 return normalize().getDayOfWeek() - BaseCalendar.SUNDAY; in getDay()
812 return normalize().getHours(); in getHours()
844 return normalize().getMinutes(); in getMinutes()
877 return normalize().getSeconds(); in getSeconds()
910 normalize(); in getTimeImpl()
1053 BaseCalendar.Date date = normalize(); in toString()
[all …]
DJapaneseImperialCalendar.java658 jcal.normalize(jd); in roll()
664 jcal.normalize(jd); in roll()
682 jcal.normalize(jd); in roll()
688 jcal.normalize(jd); in roll()
1194 jcal.normalize(jd);
1210 jcal.normalize(jd);
1232 jcal.normalize(d);
1235 jcal.normalize(jd);
1340 jcal.normalize(d1);
1358 jcal.normalize(d);
[all …]
/libcore/ojluni/src/main/java/sun/util/locale/
DBaseLocale.java140 boolean normalize) { in BaseLocale() argument
141 if (normalize) { in BaseLocale()
316 String variant, boolean normalize) { in Key() argument
317 BaseLocale locale = new BaseLocale(language, script, region, variant, normalize); in Key()
318 this.normalized = normalize; in Key()
390 public static Key normalize(Key key) { in normalize() method in Key
421 return Key.normalize(key); in normalizeKey()
428 key = Key.normalize(key); in createObject()
/libcore/ojluni/src/main/java/sun/nio/ch/
DIOStatus.java59 public static int normalize(int n) { in normalize() method in IOStatus
69 public static long normalize(long n) { in normalize() method in IOStatus
DSinkChannelImpl.java169 return IOStatus.normalize(n); in write()
192 return IOStatus.normalize(n); in write()
DFileChannelImpl.java196 return IOStatus.normalize(n); in read()
224 return IOStatus.normalize(n); in read()
248 return IOStatus.normalize(n); in write()
276 return IOStatus.normalize(n); in write()
309 return IOStatus.normalize(p); in position()
359 return IOStatus.normalize(s); in size()
491 return IOStatus.normalize(n); in transferToDirectlyInternal()
792 return IOStatus.normalize(n); in readInternal()
829 return IOStatus.normalize(n); in writeInternal()
DSourceChannelImpl.java174 return IOStatus.normalize(n); in read()
205 return IOStatus.normalize(n); in read()
/libcore/ojluni/src/main/java/java/text/
DNormalizer.java169 public static String normalize(CharSequence src, Form form) { in normalize() method in Normalizer
171 return form.icuNormalizer.get().normalize(src); in normalize()
/libcore/ojluni/src/main/java/java/io/
DFile.java290 this.path = fs.normalize(pathname); in File()
332 this.path = fs.resolve(fs.normalize(parent), in File()
333 fs.normalize(child)); in File()
336 this.path = fs.normalize(child); in File()
373 fs.normalize(child)); in File()
376 fs.normalize(child)); in File()
379 this.path = fs.normalize(child); in File()
444 this.path = fs.normalize(p); in File()
2172 String path = fs.normalize(pathField); in readObject()
/libcore/luni/src/test/java/tests/org/w3c/dom/
DHCNodeDocumentFragmentNormalize.java62 docFragment.normalize(); in testNodeDocumentFragmentNormalize1()
78 docFragment.normalize(); in testNodeDocumentFragmentNormalize2()
DNormalize.java84 root.normalize(); in testNormalize()
/libcore/luni/src/main/java/javax/xml/datatype/
DXMLGregorianCalendar.java652 public abstract XMLGregorianCalendar normalize(); in normalize() method in XMLGregorianCalendar
690 gc = this.normalize(); in hashCode()
/libcore/luni/src/test/java/libcore/xml/
DNormalizeTest.java343 document.getDocumentElement().normalize(); in testCdataSectionsNotHonoredByNodeNormalize()
348 document.getDocumentElement().normalize(); in testCdataSectionsNotHonoredByNodeNormalize()
368 document.getDocumentElement().normalize(); in testMergeAdjacentTextNodes()
374 document.getDocumentElement().normalize(); in testMergeAdjacentEmptyTextNodes()
380 document.getDocumentElement().normalize(); in testMergeAdjacentNodesWithNonTextSiblings()
386 document.getDocumentElement().normalize(); in testMergeAdjacentNodesEliminatesEmptyTexts()
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
Dhc_nodedocumentfragmentnormalize2.java68 docFragment.normalize(); in runTest()
Dnormalize01.java79 root.normalize(); in runTest()
Dhc_nodedocumentfragmentnormalize1.java70 docFragment.normalize(); in runTest()
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
Delementnormalize.java73 root.normalize(); in runTest()
Dcdatasectionnormalize.java72 lChild.normalize(); in runTest()
Dhc_elementnormalize.java75 root.normalize(); in runTest()
Dhc_elementnormalize2.java76 element.normalize(); in runTest()
Dhc_attrnormalize.java78 ((Element) /*Node */testNode).normalize(); in runTest()
/libcore/ojluni/src/main/java/sun/util/calendar/
DLocalGregorianCalendar.java257 normalize(tmp); in validate()
281 public boolean normalize(CalendarDate date) { in normalize() method in LocalGregorianCalendar
290 super.normalize(ldate); in normalize()

123