Home
last modified time | relevance | path

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

123

/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/normalizer/
DConformanceTest.java25 import ohos.global.icu.text.Normalizer;
34 Normalizer normalizer;
39 normalizer = new Normalizer("", Normalizer.NFC, 0); in ConformanceTest()
61 runConformance("unicode/NormalizationTest-3.2.0.txt",Normalizer.UNICODE_3_2); in TestConformance_3_2()
165 pass &= checkNorm(Normalizer.NFC, options, field[i], field[1], fieldNum); in checkConformance()
166 pass &= checkNorm(Normalizer.NFD, options, field[i], field[2], fieldNum); in checkConformance()
168 pass &= checkNorm(Normalizer.NFKC, options, field[i], field[3], fieldNum); in checkConformance()
169 pass &= checkNorm(Normalizer.NFKD, options, field[i], field[4], fieldNum); in checkConformance()
170 cross(field[4] /*NFKD String*/, field[3]/*NFKC String*/, Normalizer.NFKC); in checkConformance()
171 cross(field[3] /*NFKC String*/, field[4]/*NFKD String*/, Normalizer.NFKD); in checkConformance()
[all …]
DBasicTest.java29 import ohos.global.icu.text.Normalizer;
129 staticTest(Normalizer.NFC, hangulCanon, 2); in TestHangulCompose()
131 staticTest(Normalizer.NFKC, hangulCompat, 2); in TestHangulCompose()
134 Normalizer norm = new Normalizer("", Normalizer.NFC,0); in TestHangulCompose()
137 norm.setMode(Normalizer.NFKD); in TestHangulCompose()
142 norm.setMode(Normalizer.NFC); in TestHangulCompose()
150 staticTest(Normalizer.NFD, hangulCanon, 1); in TestHangulDecomp()
152 staticTest(Normalizer.NFKD, hangulCompat, 1); in TestHangulDecomp()
156 Normalizer norm = new Normalizer("", Normalizer.NFD,0); in TestHangulDecomp()
159 norm.setMode(Normalizer.NFKD); in TestHangulDecomp()
[all …]
DTestDeprecatedNormalizerAPI.java21 import ohos.global.icu.text.Normalizer;
39 Normalizer norm = new Normalizer(iter, Normalizer.NFC,0); in TestNormalizerAPI()
43 Normalizer norm2 = new Normalizer(s,Normalizer.NFC,0); in TestNormalizerAPI()
48 Normalizer clone=(Normalizer)norm.clone(); in TestNormalizerAPI()
63 Normalizer.normalize(s,Normalizer.NFC,0); in TestNormalizerAPI()
65 Normalizer.compose(s,false,0); in TestNormalizerAPI()
67 Normalizer.decompose(s,false,0); in TestNormalizerAPI()
88 int options = Normalizer.IGNORE_HANGUL; in doTestComposedChars()
105 String normDecomp = Normalizer.decompose(chString, compat); in doTestComposedChars()
122 String decomp = Normalizer.decompose(xString, compat); in assertNoDecomp()
[all …]
DNormalizerRegressionTests.java18 import ohos.global.icu.text.Normalizer;
28 logln("Normalized: " + Normalizer.isNormalized(tamil, Normalizer.NFC, 0)); in TestJB4472()
46 logln("Normalized: " + Normalizer.isNormalized(sample, Normalizer.NFC, 0)); in TestJB4472()
51 logln("Normalized: " + Normalizer.isNormalized(sample2, Normalizer.NFC, 0)); in TestJB4472()
DNormalizationMonkeyTest.java22 import ohos.global.icu.text.Normalizer;
60 String icuNorm = Normalizer.normalize(source, Normalizer.NFD); in TestNormalize()
68 icuNorm = Normalizer.normalize(source, Normalizer.NFC); in TestNormalize()
76 icuNorm = Normalizer.normalize(source, Normalizer.NFKD); in TestNormalize()
84 icuNorm = Normalizer.normalize(source, Normalizer.NFKC); in TestNormalize()
DTestCanonicalIterator.java26 import ohos.global.icu.text.Normalizer;
168 if(!it.getSource().equals(Normalizer.normalize(testArray[i][0],Normalizer.NFD))){ in TestBasic()
206 String decomp = Normalizer.decompose(s, false); in characterTest()
207 String comp = Normalizer.compose(s, false); in characterTest()
/third_party/flutter/skia/third_party/externals/icu/source/common/
Dnormlzr.cpp34 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Normalizer) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
40 Normalizer::Normalizer(const UnicodeString& str, UNormalizationMode mode) : in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
49 Normalizer::Normalizer(ConstChar16Ptr str, int32_t length, UNormalizationMode mode) : in Normalizer() function in Normalizer
58 Normalizer::Normalizer(const CharacterIterator& iter, UNormalizationMode mode) : in Normalizer() function in Normalizer
67 Normalizer::Normalizer(const Normalizer &copy) : in Normalizer() function in Normalizer
77 Normalizer::init() { in init()
91 Normalizer::~Normalizer() in ~Normalizer()
97 Normalizer*
98 Normalizer::clone() const in clone()
100 return new Normalizer(*this); in clone()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Dnormlzr.cpp34 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Normalizer) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
40 Normalizer::Normalizer(const UnicodeString& str, UNormalizationMode mode) : in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
49 Normalizer::Normalizer(ConstChar16Ptr str, int32_t length, UNormalizationMode mode) : in Normalizer() function in Normalizer
58 Normalizer::Normalizer(const CharacterIterator& iter, UNormalizationMode mode) : in Normalizer() function in Normalizer
67 Normalizer::Normalizer(const Normalizer &copy) : in Normalizer() function in Normalizer
77 Normalizer::init() { in init()
91 Normalizer::~Normalizer() in ~Normalizer()
97 Normalizer*
98 Normalizer::clone() const in clone()
100 return new Normalizer(*this); in clone()
[all …]
/third_party/node/deps/icu-small/source/common/
Dnormlzr.cpp34 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Normalizer) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
40 Normalizer::Normalizer(const UnicodeString& str, UNormalizationMode mode) : in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
49 Normalizer::Normalizer(ConstChar16Ptr str, int32_t length, UNormalizationMode mode) : in Normalizer() function in Normalizer
58 Normalizer::Normalizer(const CharacterIterator& iter, UNormalizationMode mode) : in Normalizer() function in Normalizer
67 Normalizer::Normalizer(const Normalizer &copy) : in Normalizer() function in Normalizer
77 Normalizer::init() { in init()
91 Normalizer::~Normalizer() in ~Normalizer()
97 Normalizer*
98 Normalizer::clone() const in clone()
100 return new Normalizer(*this); in clone()
[all …]
/third_party/icu/icu4c/source/common/
Dnormlzr.cpp34 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Normalizer) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
40 Normalizer::Normalizer(const UnicodeString& str, UNormalizationMode mode) : in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
49 Normalizer::Normalizer(ConstChar16Ptr str, int32_t length, UNormalizationMode mode) : in Normalizer() function in Normalizer
58 Normalizer::Normalizer(const CharacterIterator& iter, UNormalizationMode mode) : in Normalizer() function in Normalizer
67 Normalizer::Normalizer(const Normalizer &copy) : in Normalizer() function in Normalizer
77 Normalizer::init() { in init()
91 Normalizer::~Normalizer() in ~Normalizer()
97 Normalizer*
98 Normalizer::clone() const in clone()
100 return new Normalizer(*this); in clone()
[all …]
/third_party/node/deps/icu-small/source/common/unicode/
Dnormlzr.h136 class U_COMMON_API Normalizer : public UObject {
160 Normalizer(const UnicodeString& str, UNormalizationMode mode);
173 Normalizer(ConstChar16Ptr str, int32_t length, UNormalizationMode mode);
185 Normalizer(const CharacterIterator& iter, UNormalizationMode mode);
194 Normalizer(const Normalizer& copy);
200 virtual ~Normalizer();
587 bool operator==(const Normalizer& that) const;
597 inline bool operator!=(const Normalizer& that) const;
605 Normalizer* clone() const;
743 Normalizer(); // default constructor not implemented
[all …]
/third_party/icu/icu4c/source/common/unicode/
Dnormlzr.h136 class U_COMMON_API Normalizer : public UObject {
160 Normalizer(const UnicodeString& str, UNormalizationMode mode);
173 Normalizer(ConstChar16Ptr str, int32_t length, UNormalizationMode mode);
185 Normalizer(const CharacterIterator& iter, UNormalizationMode mode);
194 Normalizer(const Normalizer& copy);
200 virtual ~Normalizer();
587 UBool operator==(const Normalizer& that) const;
597 inline UBool operator!=(const Normalizer& that) const;
605 Normalizer* clone() const;
743 Normalizer(); // default constructor not implemented
[all …]
/third_party/skia/third_party/externals/icu/source/common/unicode/
Dnormlzr.h136 class U_COMMON_API Normalizer : public UObject {
160 Normalizer(const UnicodeString& str, UNormalizationMode mode);
173 Normalizer(ConstChar16Ptr str, int32_t length, UNormalizationMode mode);
185 Normalizer(const CharacterIterator& iter, UNormalizationMode mode);
194 Normalizer(const Normalizer& copy);
200 virtual ~Normalizer();
587 UBool operator==(const Normalizer& that) const;
597 inline UBool operator!=(const Normalizer& that) const;
605 Normalizer* clone() const;
743 Normalizer(); // default constructor not implemented
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/common/unicode/
Dnormlzr.h134 class U_COMMON_API Normalizer : public UObject {
158 Normalizer(const UnicodeString& str, UNormalizationMode mode);
171 Normalizer(ConstChar16Ptr str, int32_t length, UNormalizationMode mode);
183 Normalizer(const CharacterIterator& iter, UNormalizationMode mode);
191 Normalizer(const Normalizer& copy);
197 virtual ~Normalizer();
584 UBool operator==(const Normalizer& that) const;
594 inline UBool operator!=(const Normalizer& that) const;
602 Normalizer* clone(void) const;
738 Normalizer(); // default constructor not implemented
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dtstnrapi.cpp28 Normalizer norm(iter, UNORM_NFC); in TestNormalizerAPI()
34 Normalizer copy(norm); in TestNormalizerAPI()
40 Normalizer *clone=copy.clone(); in TestNormalizerAPI()
64 Normalizer::compose(tel, TRUE, 0, nfkc, errorCode); in TestNormalizerAPI()
65 Normalizer::decompose(tel, TRUE, 0, nfkd, errorCode); in TestNormalizerAPI()
140 Normalizer::normalize(s, UNORM_NONE, 0, out, status); in TestNormalizerAPI()
147 Normalizer::normalize(s, UNORM_NFD, 0, s, status); in TestNormalizerAPI()
151 Normalizer::normalize(s, UNORM_NFC, 0, s, status); in TestNormalizerAPI()
155 Normalizer::decompose(s, FALSE, 0, s, status); in TestNormalizerAPI()
159 Normalizer::compose(s, FALSE, 0, s, status); in TestNormalizerAPI()
[all …]
Dnormconf.cpp64 if(Normalizer::compare(s1,s2,U_FOLD_CASE_DEFAULT,status)!=0){ in compare()
327 if(UNORM_NO == Normalizer::quickCheck(field[1], UNORM_NFC, options, status)) { in checkConformance()
331 if(UNORM_NO == Normalizer::quickCheck(field[2], UNORM_NFD, options, status)) { in checkConformance()
335 if(UNORM_NO == Normalizer::quickCheck(field[3], UNORM_NFKC, options, status)) { in checkConformance()
339 if(UNORM_NO == Normalizer::quickCheck(field[4], UNORM_NFKD, options, status)) { in checkConformance()
346 result = Normalizer::isNormalized(field[1], UNORM_NFC, status); in checkConformance()
348 result = Normalizer::isNormalized(field[1], UNORM_NFC, options, status); in checkConformance()
359 if(Normalizer::isNormalized(field[0], UNORM_NFC, options, status)) { in checkConformance()
368 if(!Normalizer::isNormalized(field[3], UNORM_NFKC, options, status)) { in checkConformance()
377 if(Normalizer::isNormalized(field[0], UNORM_NFKC, options, status)) { in checkConformance()
[all …]
Dtstnorm.cpp168 Normalizer* norm = new Normalizer("", UNORM_NFD); in TestPrevious()
187 Normalizer* norm = new Normalizer("", UNORM_NFD); in TestDecomp()
195 Normalizer* norm = new Normalizer("", UNORM_NFKD); in TestCompatDecomp()
205 Normalizer* norm = new Normalizer("", UNORM_NFC); in TestCanonCompose()
215 Normalizer* norm = new Normalizer("", UNORM_NFKC); in TestCompatCompose()
235 Normalizer* norm = new Normalizer("", UNORM_NFC); in TestHangulCompose()
257 Normalizer* norm = new Normalizer("", UNORM_NFD); in TestHangulDecomp()
323 Normalizer::normalize(a, UNORM_NFKD, 0, b, status); in TestCompositionExclusion()
324 Normalizer::normalize(b, UNORM_NFC, 0, c, status); in TestCompositionExclusion()
363 Normalizer::normalize(a, UNORM_NFKC, 0, b, status); in TestZeroIndex()
[all …]
Dtstnorm.h76 void backAndForth(Normalizer* iter, const UnicodeString& input);
81 void iterateTest(Normalizer* iter, UnicodeString tests[][3], int length, int outCol);
85 Normalizer* result,
Dtransrt.cpp139 Normalizer::decompose(sourceString, FALSE, 0, decomp, ec); in is()
185 Normalizer::decompose(sourceString, FALSE, 0, decomp, ec); in is()
435 Normalizer::decompose(a, FALSE, 0, aa, ec); in isSame()
436 Normalizer::decompose(b, FALSE, 0, bb, ec); in isSame()
675 Normalizer::decompose(targ, FALSE, 0, targD, status); in test2()
689 Normalizer::decompose(srcStr, FALSE, 0, cs2, status); in test2()
725 Normalizer::decompose(targ, FALSE, 0, targD, status); in test2()
737 Normalizer::decompose(srcStr, FALSE, 0, cs2, status); in test2()
775 Normalizer::decompose(targ, FALSE, 0, targD, status); in test2()
800 Normalizer::decompose(targ, FALSE, 0, targ2, status); in test2()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DComposedCharIter.java70 public static final char DONE = (char) Normalizer.DONE;
109 if (nextChar == Normalizer.DONE) { in hasNext()
112 return nextChar != Normalizer.DONE; in hasNext()
125 if (nextChar == Normalizer.DONE) { in next()
129 nextChar = Normalizer.DONE; in next()
164 c=Normalizer.DONE; in findNextChar()
174 private int nextChar = Normalizer.DONE;
DCjkBreakEngine.java102 … boolean isNormalized = Normalizer.quickCheck(prenormstr, Normalizer.NFKC) == Normalizer.YES || in divideUpDictionaryRange()
103 Normalizer.isNormalized(prenormstr, Normalizer.NFKC, 0); in divideUpDictionaryRange()
117 String normStr = Normalizer.normalize(prenormstr, Normalizer.NFKC); in divideUpDictionaryRange()
120 Normalizer normalizer = new Normalizer(prenormstr, Normalizer.NFKC, 0); in divideUpDictionaryRange()
DFilteredNormalizer2.java138 public Normalizer.QuickCheckResult quickCheck(CharSequence s) { in quickCheck()
139 Normalizer.QuickCheckResult result=Normalizer.YES; in quickCheck()
146 Normalizer.QuickCheckResult qcResult= in quickCheck()
148 if(qcResult==Normalizer.NO) { in quickCheck()
150 } else if(qcResult==Normalizer.MAYBE) { in quickCheck()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/translit/
DRoundTripTest.java31 import ohos.global.icu.text.Normalizer;
246 String trial = Normalizer.compose(sample, false); in getRepresentativeBoundaryHangul()
259 String trial = Normalizer.compose(sample, false); in getRepresentativeBoundaryHangul()
267 String trial = Normalizer.compose(sample, false); in getRepresentativeBoundaryHangul()
280 String decomp = Normalizer.decompose(charStr, false); in addRepresentativeHangul()
938 String decomp = Normalizer.normalize(sourceString, Normalizer.NFD); in is()
1040 String decomp = Normalizer.normalize(sourceString, Normalizer.NFD); in is()
1141 a = Normalizer.normalize(a, Normalizer.NFD); in isSame()
1142 b = Normalizer.normalize(b, Normalizer.NFD); in isSame()
1425 String targD = Normalizer.normalize(targ, Normalizer.NFD); in checkSourceTargetSingles()
[all …]
DWriteCharts.java26 import ohos.global.icu.text.Normalizer;
212 map.put(group + UCharacter.toLowerCase(Normalizer.normalize(ss, Normalizer.NFKD)) in print()
276 … map.put(group + UCharacter.toLowerCase(Normalizer.normalize(ts, Normalizer.NFKD)) + ts, in print()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DNorm2AllModes.java16 import ohos.global.icu.text.Normalizer;
76 public Normalizer.QuickCheckResult quickCheck(CharSequence s) { return Normalizer.YES; } in quickCheck()
166 public Normalizer.QuickCheckResult quickCheck(CharSequence s) { in quickCheck()
167 return isNormalized(s) ? Normalizer.YES : Normalizer.NO; in quickCheck()
235 public Normalizer.QuickCheckResult quickCheck(CharSequence s) { in quickCheck()
238 return Normalizer.MAYBE; in quickCheck()
240 return Normalizer.YES; in quickCheck()
242 return Normalizer.NO; in quickCheck()

123