Home
last modified time | relevance | path

Searched refs:edits (Results 1 – 25 of 97) sorted by relevance

1234

/external/icu/icu4c/source/common/
Ducasemap.cpp141 ByteSink &sink, uint32_t options, icu::Edits *edits, UErrorCode &errorCode) { in appendResult() argument
147 if(edits!=NULL) { in appendResult()
148 edits->addUnchanged(cpLength); in appendResult()
156 return ByteSinkUtil::appendChange(cpLength, s, result, sink, edits, errorCode); in appendResult()
158 ByteSinkUtil::appendCodePoint(cpLength, result, sink, edits); in appendResult()
206 icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) { in toLower() argument
238 sink, options, edits, errorCode); in toLower()
241 if (edits != nullptr) { in toLower()
242 edits->addReplace(1, 1); in toLower()
260 sink, options, edits, errorCode); in toLower()
[all …]
Dbytesinkutil.cpp22 ByteSink &sink, Edits *edits, UErrorCode &errorCode) { in appendChange() argument
52 if (edits != nullptr) { in appendChange()
53 edits->addReplace(length, s8Length); in appendChange()
61 ByteSink &sink, Edits *edits, UErrorCode &errorCode) { in appendChange() argument
67 return appendChange((int32_t)(limit - s), s16, s16Length, sink, edits, errorCode); in appendChange()
71 ByteSinkUtil::appendCodePoint(int32_t length, UChar32 c, ByteSink &sink, Edits *edits) { in appendCodePoint() argument
75 if (edits != nullptr) { in appendCodePoint()
76 edits->addReplace(length, s8Length); in appendCodePoint()
98 ByteSink &sink, uint32_t options, Edits *edits) { in appendNonEmptyUnchanged() argument
100 if (edits != nullptr) { in appendNonEmptyUnchanged()
[all …]
Dbytesinkutil.h26 ByteSink &sink, Edits *edits, UErrorCode &errorCode);
31 ByteSink &sink, Edits *edits, UErrorCode &errorCode);
34 static void appendCodePoint(int32_t length, UChar32 c, ByteSink &sink, Edits *edits = nullptr);
38 ByteSink &sink, Edits *edits = nullptr) {
39 appendCodePoint((int32_t)(nextSrc - src), c, sink, edits);
46 ByteSink &sink, uint32_t options, Edits *edits, in appendUnchanged() argument
49 if (length > 0) { appendNonEmptyUnchanged(s, length, sink, options, edits); } in appendUnchanged()
54 ByteSink &sink, uint32_t options, Edits *edits,
59 ByteSink &sink, uint32_t options, Edits *edits);
Dustrcase.cpp44 Edits *edits, UErrorCode &errorCode) { in checkOverflowAndEditsError() argument
48 } else if (edits != NULL) { in checkOverflowAndEditsError()
49 edits->copyErrorTo(errorCode); in checkOverflowAndEditsError()
59 int32_t cpLength, uint32_t options, icu::Edits *edits) { in appendResult() argument
66 if(edits!=NULL) { in appendResult()
67 edits->addUnchanged(cpLength); in appendResult()
84 if(edits!=NULL) { in appendResult()
85 edits->addReplace(cpLength, 1); in appendResult()
92 if(edits!=NULL) { in appendResult()
93 edits->addReplace(cpLength, length); in appendResult()
[all …]
Ducasemap_imp.h144 icu::Edits *edits,
152 icu::Edits *edits,
163 icu::Edits *edits,
173 icu::Edits *edits,
185 icu::Edits *edits,
212 icu::ByteSink &sink, icu::Edits *edits,
222 icu::ByteSink &sink, icu::Edits *edits,
231 icu::ByteSink &sink, icu::Edits *edits,
243 icu::Edits *edits,
Dustrcase_locale.cpp73 UChar *dest, int32_t destCapacity, Edits *edits, in toLower() argument
79 ustrcase_internalToLower, edits, errorCode); in toLower()
85 UChar *dest, int32_t destCapacity, Edits *edits, in toUpper() argument
91 ustrcase_internalToUpper, edits, errorCode); in toUpper()
Dfilterednormalizer2.cpp92 Edits *edits, UErrorCode &errorCode) const { in normalizeUTF8() argument
96 if (edits != nullptr && (options & U_EDITS_NO_RESET) == 0) { in normalizeUTF8()
97 edits->reset(); in normalizeUTF8()
100 normalizeUTF8(options, src.data(), src.length(), sink, edits, USET_SPAN_SIMPLE, errorCode); in normalizeUTF8()
105 ByteSink &sink, Edits *edits, in normalizeUTF8() argument
112 if (edits != nullptr) { in normalizeUTF8()
113 edits->addUnchanged(spanLength); in normalizeUTF8()
124 norm2.normalizeUTF8(options, StringPiece(src, spanLength), sink, edits, errorCode); in normalizeUTF8()
Dunistr_case.cpp157 Edits edits; in caseMap() local
167 oldArray, oldLength, &edits, errorCode); in caseMap()
170 newLength = oldLength + edits.lengthDelta(); in caseMap()
174 for (Edits::Iterator ei = edits.getCoarseChangesIterator(); ei.next(errorCode);) { in caseMap()
184 newLength = oldLength + edits.lengthDelta(); in caseMap()
Ducasemap_titlecase_brkiter.cpp36 StringPiece src, ByteSink &sink, Edits *edits, in utf8ToTitle() argument
53 ucasemap_internalUTF8ToTitle, sink, edits, errorCode); in utf8ToTitle()
60 char *dest, int32_t destCapacity, Edits *edits, in utf8ToTitle() argument
78 ucasemap_internalUTF8ToTitle, edits, errorCode); in utf8ToTitle()
Dnormalizer2.cpp51 Edits *edits, UErrorCode &errorCode) const { in normalizeUTF8() argument
55 if (edits != nullptr) { in normalizeUTF8()
102 Edits *edits, UErrorCode &errorCode) const U_OVERRIDE { in normalizeUTF8() argument
104 if (edits != nullptr) { in normalizeUTF8()
106 edits->reset(); in normalizeUTF8()
108 edits->addUnchanged(src.length()); in normalizeUTF8()
Dnormalizer2impl.cpp138 ByteSink &sink, Edits *edits) { in appendCodePointDelta() argument
161 if (edits != nullptr) { in appendCodePointDelta()
162 edits->addReplace(cpLength, length); in appendCodePointDelta()
1735 ByteSink *sink, Edits *edits, UErrorCode &errorCode) const { in composeUTF8() argument
1750 *sink, options, edits, errorCode); in composeUTF8()
1784 *sink, options, edits, errorCode)) { in composeUTF8()
1787 appendCodePointDelta(prevSrc, src, getAlgorithmicDelta(norm16), *sink, edits); in composeUTF8()
1797 *sink, options, edits, errorCode)) { in composeUTF8()
1803 *sink, edits, errorCode)) { in composeUTF8()
1817 *sink, options, edits, errorCode)) { in composeUTF8()
[all …]
Dnorm2allmodes.h236 Edits *edits, UErrorCode &errorCode) const U_OVERRIDE { in normalizeUTF8() argument
240 if (edits != nullptr && (options & U_EDITS_NO_RESET) == 0) { in normalizeUTF8()
241 edits->reset(); in normalizeUTF8()
245 &sink, edits, errorCode); in normalizeUTF8()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCaseMapImpl.java368 int cpLength, int options, Edits edits) throws IOException { in appendResult() argument
372 if (edits != null) { in appendResult()
373 edits.addUnchanged(cpLength); in appendResult()
381 if (edits != null) { in appendResult()
382 edits.addReplace(cpLength, result); in appendResult()
387 if (edits != null) { in appendResult()
388 edits.addReplace(cpLength, length); in appendResult()
394 Appendable dest, int options, Edits edits) throws IOException { in appendUnchanged() argument
396 if (edits != null) { in appendUnchanged()
397 edits.addUnchanged(length); in appendUnchanged()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DCaseMapImpl.java373 int cpLength, int options, Edits edits) throws IOException { in appendResult() argument
377 if (edits != null) { in appendResult()
378 edits.addUnchanged(cpLength); in appendResult()
386 if (edits != null) { in appendResult()
387 edits.addReplace(cpLength, result); in appendResult()
392 if (edits != null) { in appendResult()
393 edits.addReplace(cpLength, length); in appendResult()
399 Appendable dest, int options, Edits edits) throws IOException { in appendUnchanged() argument
401 if (edits != null) { in appendUnchanged()
402 edits.addUnchanged(length); in appendUnchanged()
[all …]
/external/icu/icu4c/source/common/unicode/
Dcasemap.h68 char16_t *dest, int32_t destCapacity, Edits *edits,
104 char16_t *dest, int32_t destCapacity, Edits *edits,
155 char16_t *dest, int32_t destCapacity, Edits *edits,
197 char16_t *dest, int32_t destCapacity, Edits *edits,
223 StringPiece src, ByteSink &sink, Edits *edits,
249 StringPiece src, ByteSink &sink, Edits *edits,
289 StringPiece src, ByteSink &sink, Edits *edits,
320 StringPiece src, ByteSink &sink, Edits *edits,
356 char *dest, int32_t destCapacity, Edits *edits,
392 char *dest, int32_t destCapacity, Edits *edits,
[all …]
Dnormalizer2.h250 Edits *edits, UErrorCode &errorCode) const;
568 Edits *edits, UErrorCode &errorCode) const U_OVERRIDE;
759 ByteSink &sink, Edits *edits,
/external/icu/icu4c/source/test/intltest/
Dstrcase.cpp925 Edits edits; in TestEdits() local
926 assertFalse("new Edits hasChanges", edits.hasChanges()); in TestEdits()
927 assertEquals("new Edits numberOfChanges", 0, edits.numberOfChanges()); in TestEdits()
928 assertEquals("new Edits", 0, edits.lengthDelta()); in TestEdits()
929 edits.addUnchanged(1); // multiple unchanged ranges are combined in TestEdits()
930 edits.addUnchanged(10000); // too long, and they are split in TestEdits()
931 edits.addReplace(0, 0); in TestEdits()
932 edits.addUnchanged(2); in TestEdits()
933 assertFalse("unchanged 10003 hasChanges", edits.hasChanges()); in TestEdits()
934 assertEquals("unchanged 10003 numberOfChanges", 0, edits.numberOfChanges()); in TestEdits()
[all …]
Dtstnorm.cpp1581 Edits edits; in TestNormalizeUTF8WithEdits() local
1582 nfkc_cf->normalizeUTF8(0, src, sink, &edits, errorCode); in TestNormalizeUTF8WithEdits()
1599 assertTrue("normalizeUTF8 with Edits hasChanges", edits.hasChanges()); in TestNormalizeUTF8WithEdits()
1600 assertEquals("normalizeUTF8 with Edits numberOfChanges", 9, edits.numberOfChanges()); in TestNormalizeUTF8WithEdits()
1602 edits.getFineIterator(), edits.getFineIterator(), in TestNormalizeUTF8WithEdits()
1612 edits.reset(); in TestNormalizeUTF8WithEdits()
1613 nfkc_cf->normalizeUTF8(U_OMIT_UNCHANGED_TEXT, src, sink, &edits, errorCode); in TestNormalizeUTF8WithEdits()
1616 assertTrue("normalizeUTF8 omit unchanged hasChanges", edits.hasChanges()); in TestNormalizeUTF8WithEdits()
1617 assertEquals("normalizeUTF8 omit unchanged numberOfChanges", 9, edits.numberOfChanges()); in TestNormalizeUTF8WithEdits()
1619 edits.getFineIterator(), edits.getFineIterator(), in TestNormalizeUTF8WithEdits()
[all …]
Dnormconf.cpp483 Edits edits; in checkNorm() local
484 Edits *editsPtr = (mode == UNORM_NFC || mode == UNORM_NFKC) ? &edits : nullptr; in checkNorm()
503 pass &= assertEquals("edits.hasChanges()", (UBool)(s8 != out8), edits.hasChanges()); in checkNorm()
505 (int32_t)(out8.length() - s8.length()), edits.lengthDelta()); in checkNorm()
506 Edits::Iterator iter = edits.getCoarseIterator(); in checkNorm()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUCharacterCaseTest.java1039 Edits edits = new Edits(); in TestEdits() local
1040 assertFalse("new Edits hasChanges", edits.hasChanges()); in TestEdits()
1041 assertEquals("new Edits numberOfChanges", 0, edits.numberOfChanges()); in TestEdits()
1042 assertEquals("new Edits", 0, edits.lengthDelta()); in TestEdits()
1043 edits.addUnchanged(1); // multiple unchanged ranges are combined in TestEdits()
1044 edits.addUnchanged(10000); // too long, and they are split in TestEdits()
1045 edits.addReplace(0, 0); in TestEdits()
1046 edits.addUnchanged(2); in TestEdits()
1047 assertFalse("unchanged 10003 hasChanges", edits.hasChanges()); in TestEdits()
1048 assertEquals("unchanged 10003 numberOfChanges", 0, edits.numberOfChanges()); in TestEdits()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUCharacterCaseTest.java1036 Edits edits = new Edits(); in TestEdits() local
1037 assertFalse("new Edits hasChanges", edits.hasChanges()); in TestEdits()
1038 assertEquals("new Edits numberOfChanges", 0, edits.numberOfChanges()); in TestEdits()
1039 assertEquals("new Edits", 0, edits.lengthDelta()); in TestEdits()
1040 edits.addUnchanged(1); // multiple unchanged ranges are combined in TestEdits()
1041 edits.addUnchanged(10000); // too long, and they are split in TestEdits()
1042 edits.addReplace(0, 0); in TestEdits()
1043 edits.addUnchanged(2); in TestEdits()
1044 assertFalse("unchanged 10003 hasChanges", edits.hasChanges()); in TestEdits()
1045 assertEquals("unchanged 10003 numberOfChanges", 0, edits.numberOfChanges()); in TestEdits()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCaseMap.java122 Locale locale, CharSequence src, A dest, Edits edits) { in apply() argument
123 return CaseMapImpl.toLower(getCaseLocale(locale), internalOptions, src, dest, edits); in apply()
182 Locale locale, CharSequence src, A dest, Edits edits) { in apply() argument
183 return CaseMapImpl.toUpper(getCaseLocale(locale), internalOptions, src, dest, edits); in apply()
364 Locale locale, BreakIterator iter, CharSequence src, A dest, Edits edits) { in apply() argument
371 getCaseLocale(locale), internalOptions, iter, src, dest, edits); in apply()
452 public <A extends Appendable> A apply(CharSequence src, A dest, Edits edits) { in apply() argument
453 return CaseMapImpl.fold(internalOptions, src, dest, edits); in apply()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCaseMap.java113 Locale locale, CharSequence src, A dest, Edits edits) { in apply() argument
114 return CaseMapImpl.toLower(getCaseLocale(locale), internalOptions, src, dest, edits); in apply()
169 Locale locale, CharSequence src, A dest, Edits edits) { in apply() argument
170 return CaseMapImpl.toUpper(getCaseLocale(locale), internalOptions, src, dest, edits); in apply()
342 Locale locale, BreakIterator iter, CharSequence src, A dest, Edits edits) { in apply() argument
349 getCaseLocale(locale), internalOptions, iter, src, dest, edits); in apply()
425 public <A extends Appendable> A apply(CharSequence src, A dest, Edits edits) { in apply() argument
426 return CaseMapImpl.fold(internalOptions, src, dest, edits); in apply()
/external/icu/tools/srcgen/javadoc_patches/patches/src/main/java/android/icu/text/
DEdits.java.patch5 …* The "fine changes" and "coarse changes" iterators will step through only the change edits when t…
17 - * The iterator can be moved between edits using the {@link #next()}, {@link #findSourceIndex(…
19 + * The iterator can be moved between edits using the {@link #next()} and
/external/google-breakpad/src/tools/windows/
Drefresh_binaries.bat9 REM Then run this batch file. It performs an SVN update, edits the
12 REM commit the pending edits to the repository.

1234