/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/normalizer/ |
D | ConformanceTest.java | 25 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 …]
|
D | BasicTest.java | 29 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 …]
|
D | TestDeprecatedNormalizerAPI.java | 21 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 …]
|
D | NormalizerRegressionTests.java | 18 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()
|
D | NormalizationMonkeyTest.java | 22 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()
|
D | TestCanonicalIterator.java | 26 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/ |
D | normlzr.cpp | 34 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 ©) : 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/ |
D | normlzr.cpp | 34 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 ©) : 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/ |
D | normlzr.cpp | 34 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 ©) : 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/ |
D | normlzr.cpp | 34 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 ©) : 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/ |
D | normlzr.h | 136 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/ |
D | normlzr.h | 136 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/ |
D | normlzr.h | 136 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/ |
D | normlzr.h | 134 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/ |
D | tstnrapi.cpp | 28 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 …]
|
D | normconf.cpp | 64 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 …]
|
D | tstnorm.cpp | 168 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 …]
|
D | tstnorm.h | 76 void backAndForth(Normalizer* iter, const UnicodeString& input); 81 void iterateTest(Normalizer* iter, UnicodeString tests[][3], int length, int outCol); 85 Normalizer* result,
|
D | transrt.cpp | 139 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/ |
D | ComposedCharIter.java | 70 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;
|
D | CjkBreakEngine.java | 102 … 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()
|
D | FilteredNormalizer2.java | 138 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/ |
D | RoundTripTest.java | 31 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 …]
|
D | WriteCharts.java | 26 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/ |
D | Norm2AllModes.java | 16 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()
|