HomeSort by relevance Sort by last modified time
    Searched defs:Normalizer (Results 1 - 25 of 47) sorted by null

1 2

  /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/android_icu4j/src/main/tests/android/icu/dev/test/normalizer/
TestDeprecatedNormalizerAPI.java 10 package android.icu.dev.test.normalizer;
21 import android.icu.text.Normalizer;
34 // instantiate a Normalizer from a CharacterIterator
39 Normalizer norm = new Normalizer(iter, Normalizer.NFC,0);
41 errln("error in Normalizer(CharacterIterator).next()");
43 Normalizer norm2 = new Normalizer(s,Normalizer.NFC,0)
    [all...]
BasicTest.java 11 package android.icu.dev.test.normalizer;
29 import android.icu.text.Normalizer;
129 staticTest(Normalizer.NFC, hangulCanon, 2);
131 staticTest(Normalizer.NFKC, hangulCompat, 2);
134 Normalizer norm = new Normalizer("", Normalizer.NFC,0);
137 norm.setMode(Normalizer.NFKD);
142 norm.setMode(Normalizer.NFC);
150 staticTest(Normalizer.NFD, hangulCanon, 1)
    [all...]
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/
TestDeprecatedNormalizerAPI.java 9 package com.ibm.icu.dev.test.normalizer;
20 import com.ibm.icu.text.Normalizer;
31 // instantiate a Normalizer from a CharacterIterator
36 Normalizer norm = new Normalizer(iter, Normalizer.NFC,0);
38 errln("error in Normalizer(CharacterIterator).next()");
40 Normalizer norm2 = new Normalizer(s,Normalizer.NFC,0)
    [all...]
BasicTest.java 10 package com.ibm.icu.dev.test.normalizer;
28 import com.ibm.icu.text.Normalizer;
126 staticTest(Normalizer.NFC, hangulCanon, 2);
128 staticTest(Normalizer.NFKC, hangulCompat, 2);
131 Normalizer norm = new Normalizer("", Normalizer.NFC,0);
134 norm.setMode(Normalizer.NFKD);
139 norm.setMode(Normalizer.NFC);
147 staticTest(Normalizer.NFD, hangulCanon, 1)
    [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...]
  /external/icu/icu4c/source/common/unicode/
normlzr.h 35 * There is one exception: The new API does not provide a replacement for Normalizer::compare().
37 * The Normalizer class supports the standard normalization forms described in
41 * The Normalizer class consists of two parts:
43 * - a Normalizer object is an iterator that takes any kind of text and
46 * The Normalizer class is not suitable for subclassing.
51 * The iterator API with the Normalizer constructors and the non-static functions
60 * A possible use of the Normalizer iterator is also to report an index into the
67 * Normalizer allows to start normalizing from anywhere in the input text by
103 * Internally, the Normalizer iterator normalizes a small piece of text
129 * It is for this reason that Normalizer does not implement the CharacterIterator interface
    [all...]
  /libcore/ojluni/src/main/java/java/text/
Normalizer.java 107 public final class Normalizer {
109 private 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) {
157 * {@link java.text.Normalizer.Form#NFC},
158 * {@link java.text.Normalizer.Form#NFD}
    [all...]
  /external/icu/icu4c/source/common/
normlzr.cpp 34 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Normalizer)
40 Normalizer::Normalizer(const UnicodeString& str, UNormalizationMode mode) :
49 Normalizer::Normalizer(ConstChar16Ptr str, int32_t length, UNormalizationMode mode) :
58 Normalizer::Normalizer(const CharacterIterator& iter, UNormalizationMode mode) :
67 Normalizer::Normalizer(const Normalizer &copy)
    [all...]
  /external/perf_data_converter/src/
perf_data_handler.cc 29 // Normalizer processes a PerfDataProto and maintains tables to the
32 class Normalizer {
34 Normalizer(const PerfDataProto& perf_proto, PerfDataHandler* handler)
65 Normalizer(const Normalizer&) = delete;
66 Normalizer& operator=(const Normalizer&) = delete;
68 ~Normalizer() {}
152 void Normalizer::UpdateMapsWithForkEvent(
187 void Normalizer::Normalize()
    [all...]
  /frameworks/base/core/tests/coretests/src/android/text/
StaticLayoutTest.java 39 import java.text.Normalizer;
654 private List<CharSequence> buildTestCharSequences(String testString, Normalizer.Form[] forms) {
658 for (Normalizer.Form form: forms) {
659 normalizedStrings.add(Normalizer.normalize(testString, form));
674 if (Normalizer.isNormalized(seq, Normalizer.Form.NFC)) {
676 } else if (Normalizer.isNormalized(seq, Normalizer.Form.NFD)) {
678 } else if (Normalizer.isNormalized(seq, Normalizer.Form.NFKC))
    [all...]
  /cts/tests/tests/text/src/android/text/cts/
StaticLayoutTest.java 64 import java.text.Normalizer;
611 private List<CharSequence> buildTestCharSequences(String testString, Normalizer.Form[] forms) {
615 for (Normalizer.Form form: forms) {
616 normalizedStrings.add(Normalizer.normalize(testString, form));
631 if (Normalizer.isNormalized(seq, Normalizer.Form.NFC)) {
633 } else if (Normalizer.isNormalized(seq, Normalizer.Form.NFD)) {
635 } else if (Normalizer.isNormalized(seq, Normalizer.Form.NFKC))
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/text/
Normalizer.java 123 * <p>Note: The Normalizer class also provides API for iterative normalization.
130 * It is for this reason that Normalizer does not implement the CharacterIterator interface.
132 public final class Normalizer implements Cloneable {
225 * Only the Mode constants provided by the Normalizer class should be used,
356 * Null operation for use with the {@link android.icu.text.Normalizer constructors}
358 * the <tt>Normalizer</tt> to do nothing but return unprocessed characters
362 * than having a separate code path that bypasses <tt>Normalizer</tt>
375 * {@link android.icu.text.Normalizer constructors} and the static
395 * Used with the {@link android.icu.text.Normalizer constructors} and the static
406 * @deprecated ICU 2.8. Use Normalizer.NFK
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
Normalizer.java 122 * <p>Note: The Normalizer class also provides API for iterative normalization.
129 * It is for this reason that Normalizer does not implement the CharacterIterator interface.
133 public final class Normalizer implements Cloneable {
224 * Only the Mode constants provided by the Normalizer class should be used,
345 * Null operation for use with the {@link com.ibm.icu.text.Normalizer constructors}
347 * the <tt>Normalizer</tt> to do nothing but return unprocessed characters
351 * than having a separate code path that bypasses <tt>Normalizer</tt>
363 * {@link com.ibm.icu.text.Normalizer constructors} and the static
382 * Used with the {@link com.ibm.icu.text.Normalizer constructors} and the static
393 * @deprecated ICU 2.8. Use Normalizer.NFK
    [all...]
  /prebuilts/tools/common/m2/repository/com/ibm/icu/icu4j/2.6.1/
icu4j-2.6.1.jar 
  /prebuilts/misc/common/icu4j/
icu4j.jar 
  /prebuilts/misc/common/robolectric/3.1.1/lib/
icu4j-53.1.jar 
  /prebuilts/misc/common/robolectric/3.4.2/lib/
icu4j-53.1.jar 
  /prebuilts/misc/common/robolectric/3.5.1/lib/
icu4j-53.1.jar 
  /prebuilts/misc/common/robolectric/3.6.1/lib/
icu4j-53.1.jar 
  /prebuilts/tools/common/m2/repository/com/ibm/icu/icu4j/53.1/
icu4j-53.1.jar 
  /prebuilts/tools/common/m2/repository/com/ibm/icu/icu4j/54.1.1/
icu4j-54.1.1.jar 
  /prebuilts/sdk/current/
core.jar 
  /prebuilts/misc/common/robolectric/android-all/
android-all-4.1.2_r1-robolectric-r1.jar 
android-all-4.2.2_r1.2-robolectric-r1.jar 

Completed in 6003 milliseconds

1 2