/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/apache-harmony/text/src/test/java/org/apache/harmony/text/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/icu4c/test/intltest/ |
tstnrapi.cpp | 22 // instantiate a Normalizer from a CharacterIterator 26 Normalizer norm(iter, UNORM_NFC); 28 dataerrln("error in Normalizer(CharacterIterator).next()"); 32 Normalizer copy(norm); 34 dataerrln("error in Normalizer(Normalizer(CharacterIterator)).next()"); 38 Normalizer *clone=copy.clone(); 40 errln("error in Normalizer(Normalizer(CharacterIterator)).clone()!=copy"); 44 errln("error in Normalizer(Normalizer(CharacterIterator)).clone()->hashCode()!=copy.hashCode()") [all...] |
normconf.cpp | 46 normalizer(UnicodeString(), UNORM_NFC) {} 63 if(Normalizer::compare(s1,s2,U_FOLD_CASE_DEFAULT,status)!=0){ 64 errln("Normalizer::compare() failed for s1: " + prettify(s1) + " s2: " +prettify(s2)); 150 * Test the conformance of Normalizer to 229 dataerrln("Something is wrong with the normalizer, skipping the rest of the test."); 265 dataerrln("Something is wrong with the normalizer, skipping the rest of the test.: %s", u_errorName(status)); 309 Normalizer::normalize(field[i], UNORM_NFC, options, out, status); 320 Normalizer::normalize(field[i], UNORM_NFD, options, out, status); 331 Normalizer::normalize(field[i], UNORM_NFKC, options, out, status); 342 Normalizer::normalize(field[i], UNORM_NFKD, options, out, status) [all...] |
tstnorm.h | 8 * Normalizer basic tests 68 void backAndForth(Normalizer* iter, const UnicodeString& input); 73 void iterateTest(Normalizer* iter, UnicodeString tests[][3], int length, int outCol); 77 Normalizer* result,
|
tstnorm.cpp | 165 Normalizer* norm = new Normalizer("", UNORM_NFD); 184 Normalizer* norm = new Normalizer("", UNORM_NFD); 192 Normalizer* norm = new Normalizer("", UNORM_NFKD); 202 Normalizer* norm = new Normalizer("", UNORM_NFC); 212 Normalizer* norm = new Normalizer("", UNORM_NFKC) [all...] |
normconf.h | 21 Normalizer normalizer; member in class:NormalizerConformanceTest 30 * Test the conformance of Normalizer to
|
/external/icu4c/samples/translit/answers/ |
unaccent.h | 36 * Unaccent a single character using normalizer. 40 Normalizer normalizer; member in class:UnaccentTransliterator
|
unaccent.cpp | 13 normalizer("", Normalizer::DECOMP), 24 * Remove accents from a character using Normalizer. 31 t->normalizer.setText(str, status); 35 return (UChar) t->normalizer.next();
|
main_4.cpp | 108 printf("Transliterated via normalizer unaccent: ");
|
/external/icu4c/samples/translit/ |
unaccent.cpp | 15 normalizer("", UNORM_NFD), 26 * Remove accents from a character using Normalizer. 33 t->normalizer.setText(str, status); 37 return (UChar) t->normalizer.next();
|
unaccent.h | 36 * Unaccent a single character using normalizer. 40 Normalizer normalizer; member in class:UnaccentTransliterator
|
main.cpp | 110 printf("Transliterated via normalizer unaccent: ");
|
README.TXT | 79 Problem 3: Transliterator subclassing; Normalizer (Difficult) 87 Use a Normalizer to remove accents from characters. You will need
|
/external/icu4c/common/ |
normlzr.cpp | 25 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Normalizer) 31 Normalizer::Normalizer(const UnicodeString& str, UNormalizationMode mode) : 40 Normalizer::Normalizer(const UChar *str, int32_t length, UNormalizationMode mode) : 49 Normalizer::Normalizer(const CharacterIterator& iter, UNormalizationMode mode) : 58 Normalizer::Normalizer(const Normalizer ©) [all...] |
/dalvik/tests/092-locale/ |
expected.txt | 8 Normalizer passed
|
/external/icu4c/common/unicode/ |
normlzr.h | 29 * The Normalizer class supports the standard normalization forms described in 35 * There is one exception: The new API does not provide a replacement for Normalizer::compare(). 37 * The Normalizer class consists of two parts: 39 * - a Normalizer object is an iterator that takes any kind of text and 42 * The Normalizer class is not suitable for subclassing. 47 * The iterator API with the Normalizer constructors and the non-static functions 56 * A possible use of the Normalizer iterator is also to report an index into the 63 * Normalizer allows to start normalizing from anywhere in the input text by 99 * Internally, the Normalizer iterator normalizes a small piece of text 125 * It is for this reason that Normalizer does not implement the CharacterIterator interface [all...] |
/libcore/luni/src/main/java/libcore/icu/ |
NativeNormalizer.java | 19 import java.text.Normalizer.Form; 39 throw new AssertionError("unknown Normalizer.Form " + form);
|
/libcore/luni/src/main/native/ |
libcore_icu_NativeNormalizer.cpp | 30 Normalizer::normalize(src.unicodeString(), mode, 0, dst, status); 39 UBool result = Normalizer::isNormalized(src.unicodeString(), mode, status);
|
/libcore/luni/src/main/java/java/text/ |
Normalizer.java | 29 public final class Normalizer { 31 * The normalization forms supported by the Normalizer. These are specified in 81 private Normalizer() {}
|
/dalvik/tests/092-locale/src/ |
Main.java | 19 import java.text.Normalizer; 126 res = Normalizer.normalize(composed, Normalizer.Form.NFD); 132 res = Normalizer.normalize(decomposed, Normalizer.Form.NFC); 138 System.out.println("Normalizer passed");
|
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/java/android/bordeaux/learning/ |
StochasticLinearRanker.java | 129 public boolean setModelWeights(String[] keys, float [] values, float normalizer){ 130 return nativeSetWeightClassifier(keys, values, normalizer, mNativeClassifier); 149 Log.i(TAG, "Normalizer is " + model.weightNormalizer); 180 private native void nativeGetWeightClassifier(String [] keys, float[] values, float normalizer, 189 float normalizer, int classifierPtr);
|
/frameworks/base/docs/html/sdk/api_diff/9/changes/ |
pkg_java.text.html | 84 <A NAME="Normalizer"></A> 85 <nobr><A HREF="../../../../reference/java/text/Normalizer.html" target="_top"><code>Normalizer</code></A></nobr> 91 <A NAME="Normalizer.Form"></A> 92 <nobr><A HREF="../../../../reference/java/text/Normalizer.Form.html" target="_top"><code>Normalizer.Form</code></A></nobr>
|
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/ |
sparse_weight_vector.h | 62 // 2. its normalizer is nan or inf or close to zero. 67 // Normalizer getters and setters. 81 // Divides all the values by the normalizer, then it resets it to 1.0
|
sparse_weight_vector.cpp | 377 // If the normalizer gets dangerously large or small, normalize the 379 // weights and the normalizer simultaneously all very small or 383 ALOGE("Resetting normalizer to 1.0 to prevent underflow. " 388 ALOGE("Resetting normalizer to 1.0 to prevent overflow. "
|