Home
last modified time | relevance | path

Searched refs:edits (Results 1 - 25 of 70) sorted by relevance

123

/third_party/skia/third_party/externals/icu/source/common/
H A Ducasemap.cpp25 #include "unicode/edits.h"
141 ByteSink &sink, uint32_t options, icu::Edits *edits, UErrorCode &errorCode) { in appendResult()
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()
238 sink, options, edits, errorCode); in toLower()
241 if (edits != nullptr) { in toLower()
242 edits in toLower()
140 appendResult(int32_t cpLength, int32_t result, const UChar *s, ByteSink &sink, uint32_t options, icu::Edits *edits, UErrorCode &errorCode) appendResult() argument
204 toLower(int32_t caseLocale, uint32_t options, const uint8_t *src, UCaseContext *csc, int32_t srcStart, int32_t srcLimit, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) toLower() argument
315 toUpper(int32_t caseLocale, uint32_t options, const uint8_t *src, UCaseContext *csc, int32_t srcLength, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) toUpper() argument
424 ucasemap_internalUTF8ToTitle( int32_t caseLocale, uint32_t options, BreakIterator *iter, const uint8_t *src, int32_t srcLength, ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) ucasemap_internalUTF8ToTitle() argument
570 toUpper(uint32_t options, const uint8_t *src, int32_t srcLength, ByteSink &sink, Edits *edits, UErrorCode &errorCode) toUpper() argument
722 ucasemap_internalUTF8ToLower(int32_t caseLocale, uint32_t options, UCASEMAP_BREAK_ITERATOR_UNUSED const uint8_t *src, int32_t srcLength, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) ucasemap_internalUTF8ToLower() argument
736 ucasemap_internalUTF8ToUpper(int32_t caseLocale, uint32_t options, UCASEMAP_BREAK_ITERATOR_UNUSED const uint8_t *src, int32_t srcLength, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) ucasemap_internalUTF8ToUpper() argument
754 ucasemap_internalUTF8Fold(int32_t , uint32_t options, UCASEMAP_BREAK_ITERATOR_UNUSED const uint8_t *src, int32_t srcLength, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) ucasemap_internalUTF8Fold() argument
765 ucasemap_mapUTF8(int32_t caseLocale, uint32_t options, UCASEMAP_BREAK_ITERATOR_PARAM const char *src, int32_t srcLength, UTF8CaseMapper *stringCaseMapper, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) ucasemap_mapUTF8() argument
798 ucasemap_mapUTF8(int32_t caseLocale, uint32_t options, UCASEMAP_BREAK_ITERATOR_PARAM char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UTF8CaseMapper *stringCaseMapper, icu::Edits *edits, UErrorCode &errorCode) ucasemap_mapUTF8() argument
887 utf8ToLower( const char *locale, uint32_t options, StringPiece src, ByteSink &sink, Edits *edits, UErrorCode &errorCode) utf8ToLower() argument
894 ucasemap_internalUTF8ToLower, sink, edits, errorCode); utf8ToLower() local
897 utf8ToUpper( const char *locale, uint32_t options, StringPiece src, ByteSink &sink, Edits *edits, UErrorCode &errorCode) utf8ToUpper() argument
904 ucasemap_internalUTF8ToUpper, sink, edits, errorCode); utf8ToUpper() local
907 utf8Fold( uint32_t options, StringPiece src, ByteSink &sink, Edits *edits, UErrorCode &errorCode) utf8Fold() argument
917 utf8ToLower( const char *locale, uint32_t options, const char *src, int32_t srcLength, char *dest, int32_t destCapacity, Edits *edits, UErrorCode &errorCode) utf8ToLower() argument
929 utf8ToUpper( const char *locale, uint32_t options, const char *src, int32_t srcLength, char *dest, int32_t destCapacity, Edits *edits, UErrorCode &errorCode) utf8ToUpper() argument
941 utf8Fold( uint32_t options, const char *src, int32_t srcLength, char *dest, int32_t destCapacity, Edits *edits, UErrorCode &errorCode) utf8Fold() argument
[all...]
H A Dbytesinkutil.cpp9 #include "unicode/edits.h"
22 ByteSink &sink, Edits *edits, UErrorCode &errorCode) { in appendChange()
52 if (edits != nullptr) { in appendChange()
53 edits->addReplace(length, s8Length); in appendChange()
61 ByteSink &sink, Edits *edits, UErrorCode &errorCode) { in appendChange()
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()
21 appendChange(int32_t length, const char16_t *s16, int32_t s16Length, ByteSink &sink, Edits *edits, UErrorCode &errorCode) appendChange() argument
59 appendChange(const uint8_t *s, const uint8_t *limit, const char16_t *s16, int32_t s16Length, ByteSink &sink, Edits *edits, UErrorCode &errorCode) appendChange() argument
97 appendNonEmptyUnchanged(const uint8_t *s, int32_t length, ByteSink &sink, uint32_t options, Edits *edits) appendNonEmptyUnchanged() argument
109 appendUnchanged(const uint8_t *s, const uint8_t *limit, ByteSink &sink, uint32_t options, Edits *edits, UErrorCode &errorCode) appendUnchanged() argument
[all...]
H A Dbytesinkutil.h9 #include "unicode/edits.h"
26 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) { in appendCodePoint()
39 appendCodePoint((int32_t)(nextSrc - src), c, sink, edits); in appendCodePoint()
46 ByteSink &sink, uint32_t options, Edits *edits, in appendUnchanged()
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);
45 appendUnchanged(const uint8_t *s, int32_t length, ByteSink &sink, uint32_t options, Edits *edits, UErrorCode &errorCode) appendUnchanged() argument
[all...]
H A Dustrcase.cpp26 #include "unicode/edits.h"
44 Edits *edits, UErrorCode &errorCode) { in checkOverflowAndEditsError()
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()
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! in appendResult()
43 checkOverflowAndEditsError(int32_t destIndex, int32_t destCapacity, Edits *edits, UErrorCode &errorCode) checkOverflowAndEditsError() argument
57 appendResult(UChar *dest, int32_t destIndex, int32_t destCapacity, int32_t result, const UChar *s, int32_t cpLength, uint32_t options, icu::Edits *edits) appendResult() argument
140 appendNonEmptyUnchanged(UChar *dest, int32_t destIndex, int32_t destCapacity, const UChar *s, int32_t length, uint32_t options, icu::Edits *edits) appendNonEmptyUnchanged() argument
158 appendUnchanged(UChar *dest, int32_t destIndex, int32_t destCapacity, const UChar *s, int32_t length, uint32_t options, icu::Edits *edits) appendUnchanged() argument
202 toLower(int32_t caseLocale, uint32_t options, UChar *dest, int32_t destCapacity, const UChar *src, UCaseContext *csc, int32_t srcStart, int32_t srcLimit, icu::Edits *edits, UErrorCode &errorCode) toLower() argument
300 toUpper(int32_t caseLocale, uint32_t options, UChar *dest, int32_t destCapacity, const UChar *src, UCaseContext *csc, int32_t srcLength, icu::Edits *edits, UErrorCode &errorCode) toUpper() argument
400 ustrcase_internalToTitle(int32_t caseLocale, uint32_t options, BreakIterator *iter, UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, icu::Edits *edits, UErrorCode &errorCode) ustrcase_internalToTitle() argument
1022 toUpper(uint32_t options, UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, Edits *edits, UErrorCode &errorCode) toUpper() argument
1171 ustrcase_internalToLower(int32_t caseLocale, uint32_t options, UCASEMAP_BREAK_ITERATOR_UNUSED UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, icu::Edits *edits, UErrorCode &errorCode) ustrcase_internalToLower() argument
1188 ustrcase_internalToUpper(int32_t caseLocale, uint32_t options, UCASEMAP_BREAK_ITERATOR_UNUSED UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, icu::Edits *edits, UErrorCode &errorCode) ustrcase_internalToUpper() argument
1211 ustrcase_internalFold(int32_t , uint32_t options, UCASEMAP_BREAK_ITERATOR_UNUSED UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, icu::Edits *edits, UErrorCode &errorCode) ustrcase_internalFold() argument
1225 ustrcase_map(int32_t caseLocale, uint32_t options, UCASEMAP_BREAK_ITERATOR_PARAM UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, UStringCaseMapper *stringCaseMapper, icu::Edits *edits, UErrorCode &errorCode) ustrcase_map() argument
1349 fold( uint32_t options, const UChar *src, int32_t srcLength, UChar *dest, int32_t destCapacity, Edits *edits, UErrorCode &errorCode) fold() argument
[all...]
H A 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,
/third_party/icu/icu4c/source/common/
H A Ducasemap.cpp25 #include "unicode/edits.h"
140 ByteSink &sink, uint32_t options, icu::Edits *edits, UErrorCode &errorCode) { in appendResult()
146 if(edits!=NULL) { in appendResult()
147 edits->addUnchanged(cpLength); in appendResult()
155 return ByteSinkUtil::appendChange(cpLength, s, result, sink, edits, errorCode); in appendResult()
157 ByteSinkUtil::appendCodePoint(cpLength, result, sink, edits); in appendResult()
205 icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) { in toLower()
237 sink, options, edits, errorCode); in toLower()
240 if (edits != nullptr) { in toLower()
241 edits in toLower()
139 appendResult(int32_t cpLength, int32_t result, const UChar *s, ByteSink &sink, uint32_t options, icu::Edits *edits, UErrorCode &errorCode) appendResult() argument
203 toLower(int32_t caseLocale, uint32_t options, const uint8_t *src, UCaseContext *csc, int32_t srcStart, int32_t srcLimit, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) toLower() argument
314 toUpper(int32_t caseLocale, uint32_t options, const uint8_t *src, UCaseContext *csc, int32_t srcLength, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) toUpper() argument
437 maybeTitleDutchIJ(const uint8_t *src, UChar32 c, int32_t start, int32_t segmentLimit, ByteSink &sink, uint32_t options, icu::Edits *edits, UErrorCode &errorCode) maybeTitleDutchIJ() argument
439 U_ASSERT(start < segmentLimit); int32_t index = start; bool withAcute = false; int32_t unchanged1 = 0; bool doTitleJ = false; int32_t unchanged2 = 0; UChar32 c2; c2 = src[index++]; if (c == u�) { if (c2 == ACUTE_BYTE0 && index < segmentLimit && src[index++] == ACUTE_BYTE1) { withAcute = true; unchanged1 = 2; if (index == segmentLimit) { return start; } c2 = src[index++]; } } else { withAcute = true; } if (c2 == u�) { doTitleJ = true; } else if (c2 == u�) { ++unchanged1; } else { return start; } if (withAcute) { if ((index + 1) >= segmentLimit || src[index++] != ACUTE_BYTE0 || src[index++] != ACUTE_BYTE1) { return start; } if (doTitleJ) { unchanged2 = 2; } else { unchanged1 = unchanged1 + 2; } } if (index < segmentLimit) { int32_t cp; int32_t i = index; U8_NEXT(src, i, segmentLimit, cp); uint32_t typeMask = U_GET_GC_MASK(cp); if ((typeMask & U_GC_M_MASK) != 0) { return start; } } ByteSinkUtil::appendUnchanged(src + start, unchanged1, sink, options, edits, errorCode); start += unchanged1; if (doTitleJ) { ByteSinkUtil::appendCodePoint(1, u�, sink, edits); ++start; } ByteSinkUtil::appendUnchanged(src + start, unchanged2, sink, options, edits, errorCode); U_ASSERT(start + unchanged2 == index); return index; } } U_CFUNC void U_CALLCONV ucasemap_internalUTF8ToTitle( int32_t caseLocale, uint32_t options, BreakIterator *iter, const uint8_t *src, int32_t srcLength, ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) { if (!ustrcase_checkTitleAdjustmentOptions(options, errorCode)) { return; } UCaseContext csc=UCASECONTEXT_INITIALIZER; csc.p=(void *)src; csc.limit=srcLength; int32_t prev=0; UBool isFirstIndex=true; while(prev<srcLength) { int32_t index; if(isFirstIndex) { isFirstIndex=false; index=iter->first(); } else { index=iter->next(); } if(index==UBRK_DONE || index>srcLength) maybeTitleDutchIJ() argument
655 toUpper(uint32_t options, const uint8_t *src, int32_t srcLength, ByteSink &sink, Edits *edits, UErrorCode &errorCode) toUpper() argument
807 ucasemap_internalUTF8ToLower(int32_t caseLocale, uint32_t options, UCASEMAP_BREAK_ITERATOR_UNUSED const uint8_t *src, int32_t srcLength, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) ucasemap_internalUTF8ToLower() argument
821 ucasemap_internalUTF8ToUpper(int32_t caseLocale, uint32_t options, UCASEMAP_BREAK_ITERATOR_UNUSED const uint8_t *src, int32_t srcLength, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) ucasemap_internalUTF8ToUpper() argument
839 ucasemap_internalUTF8Fold(int32_t , uint32_t options, UCASEMAP_BREAK_ITERATOR_UNUSED const uint8_t *src, int32_t srcLength, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) ucasemap_internalUTF8Fold() argument
850 ucasemap_mapUTF8(int32_t caseLocale, uint32_t options, UCASEMAP_BREAK_ITERATOR_PARAM const char *src, int32_t srcLength, UTF8CaseMapper *stringCaseMapper, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) ucasemap_mapUTF8() argument
883 ucasemap_mapUTF8(int32_t caseLocale, uint32_t options, UCASEMAP_BREAK_ITERATOR_PARAM char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UTF8CaseMapper *stringCaseMapper, icu::Edits *edits, UErrorCode &errorCode) ucasemap_mapUTF8() argument
972 utf8ToLower( const char *locale, uint32_t options, StringPiece src, ByteSink &sink, Edits *edits, UErrorCode &errorCode) utf8ToLower() argument
979 ucasemap_internalUTF8ToLower, sink, edits, errorCode); utf8ToLower() local
982 utf8ToUpper( const char *locale, uint32_t options, StringPiece src, ByteSink &sink, Edits *edits, UErrorCode &errorCode) utf8ToUpper() argument
989 ucasemap_internalUTF8ToUpper, sink, edits, errorCode); utf8ToUpper() local
992 utf8Fold( uint32_t options, StringPiece src, ByteSink &sink, Edits *edits, UErrorCode &errorCode) utf8Fold() argument
1002 utf8ToLower( const char *locale, uint32_t options, const char *src, int32_t srcLength, char *dest, int32_t destCapacity, Edits *edits, UErrorCode &errorCode) utf8ToLower() argument
1014 utf8ToUpper( const char *locale, uint32_t options, const char *src, int32_t srcLength, char *dest, int32_t destCapacity, Edits *edits, UErrorCode &errorCode) utf8ToUpper() argument
1026 utf8Fold( uint32_t options, const char *src, int32_t srcLength, char *dest, int32_t destCapacity, Edits *edits, UErrorCode &errorCode) utf8Fold() argument
[all...]
H A Dbytesinkutil.cpp9 #include "unicode/edits.h"
22 ByteSink &sink, Edits *edits, UErrorCode &errorCode) { in appendChange()
52 if (edits != nullptr) { in appendChange()
53 edits->addReplace(length, s8Length); in appendChange()
61 ByteSink &sink, Edits *edits, UErrorCode &errorCode) { in appendChange()
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()
21 appendChange(int32_t length, const char16_t *s16, int32_t s16Length, ByteSink &sink, Edits *edits, UErrorCode &errorCode) appendChange() argument
59 appendChange(const uint8_t *s, const uint8_t *limit, const char16_t *s16, int32_t s16Length, ByteSink &sink, Edits *edits, UErrorCode &errorCode) appendChange() argument
97 appendNonEmptyUnchanged(const uint8_t *s, int32_t length, ByteSink &sink, uint32_t options, Edits *edits) appendNonEmptyUnchanged() argument
109 appendUnchanged(const uint8_t *s, const uint8_t *limit, ByteSink &sink, uint32_t options, Edits *edits, UErrorCode &errorCode) appendUnchanged() argument
[all...]
H A Dbytesinkutil.h12 #include "unicode/edits.h"
29 ByteSink &sink, Edits *edits, UErrorCode &errorCode);
34 ByteSink &sink, Edits *edits, UErrorCode &errorCode);
37 static void appendCodePoint(int32_t length, UChar32 c, ByteSink &sink, Edits *edits = nullptr);
41 ByteSink &sink, Edits *edits = nullptr) { in appendCodePoint()
42 appendCodePoint((int32_t)(nextSrc - src), c, sink, edits); in appendCodePoint()
49 ByteSink &sink, uint32_t options, Edits *edits, in appendUnchanged()
52 if (length > 0) { appendNonEmptyUnchanged(s, length, sink, options, edits); } in appendUnchanged()
57 ByteSink &sink, uint32_t options, Edits *edits,
62 ByteSink &sink, uint32_t options, Edits *edits);
48 appendUnchanged(const uint8_t *s, int32_t length, ByteSink &sink, uint32_t options, Edits *edits, UErrorCode &errorCode) appendUnchanged() argument
[all...]
H A Dustrcase.cpp26 #include "unicode/edits.h"
50 Edits *edits, UErrorCode &errorCode) { in checkOverflowAndEditsError()
54 } else if (edits != NULL) { in checkOverflowAndEditsError()
55 edits->copyErrorTo(errorCode); in checkOverflowAndEditsError()
65 int32_t cpLength, uint32_t options, icu::Edits *edits) { in appendResult()
72 if(edits!=NULL) { in appendResult()
73 edits->addUnchanged(cpLength); in appendResult()
90 if(edits!=NULL) { in appendResult()
91 edits->addReplace(cpLength, 1); in appendResult()
98 if(edits! in appendResult()
49 checkOverflowAndEditsError(int32_t destIndex, int32_t destCapacity, Edits *edits, UErrorCode &errorCode) checkOverflowAndEditsError() argument
63 appendResult(UChar *dest, int32_t destIndex, int32_t destCapacity, int32_t result, const UChar *s, int32_t cpLength, uint32_t options, icu::Edits *edits) appendResult() argument
146 appendNonEmptyUnchanged(UChar *dest, int32_t destIndex, int32_t destCapacity, const UChar *s, int32_t length, uint32_t options, icu::Edits *edits) appendNonEmptyUnchanged() argument
164 appendUnchanged(UChar *dest, int32_t destIndex, int32_t destCapacity, const UChar *s, int32_t length, uint32_t options, icu::Edits *edits) appendUnchanged() argument
208 toLower(int32_t caseLocale, uint32_t options, UChar *dest, int32_t destCapacity, const UChar *src, UCaseContext *csc, int32_t srcStart, int32_t srcLimit, icu::Edits *edits, UErrorCode &errorCode) toLower() argument
306 toUpper(int32_t caseLocale, uint32_t options, UChar *dest, int32_t destCapacity, const UChar *src, UCaseContext *csc, int32_t srcLength, icu::Edits *edits, UErrorCode &errorCode) toUpper() argument
416 maybeTitleDutchIJ(const UChar *src, UChar32 c, int32_t start, int32_t segmentLimit, UChar *dest, int32_t &destIndex, int32_t destCapacity, uint32_t options, icu::Edits *edits) maybeTitleDutchIJ() argument
[all...]
H A 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,
H A Dustrcase_locale.cpp73 UChar *dest, int32_t destCapacity, Edits *edits, in toLower()
79 ustrcase_internalToLower, edits, errorCode); in toLower()
85 UChar *dest, int32_t destCapacity, Edits *edits, in toUpper()
91 ustrcase_internalToUpper, edits, errorCode); in toUpper()
70 toLower( const char *locale, uint32_t options, const UChar *src, int32_t srcLength, UChar *dest, int32_t destCapacity, Edits *edits, UErrorCode &errorCode) toLower() argument
82 toUpper( const char *locale, uint32_t options, const UChar *src, int32_t srcLength, UChar *dest, int32_t destCapacity, Edits *edits, UErrorCode &errorCode) toUpper() argument
/third_party/node/deps/icu-small/source/common/
H A Ducasemap.cpp25 #include "unicode/edits.h"
140 ByteSink &sink, uint32_t options, icu::Edits *edits, UErrorCode &errorCode) { in appendResult()
146 if(edits!=nullptr) { in appendResult()
147 edits->addUnchanged(cpLength); in appendResult()
155 return ByteSinkUtil::appendChange(cpLength, s, result, sink, edits, errorCode); in appendResult()
157 ByteSinkUtil::appendCodePoint(cpLength, result, sink, edits); in appendResult()
205 icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) { in toLower()
237 sink, options, edits, errorCode); in toLower()
240 if (edits != nullptr) { in toLower()
241 edits in toLower()
139 appendResult(int32_t cpLength, int32_t result, const char16_t *s, ByteSink &sink, uint32_t options, icu::Edits *edits, UErrorCode &errorCode) appendResult() argument
203 toLower(int32_t caseLocale, uint32_t options, const uint8_t *src, UCaseContext *csc, int32_t srcStart, int32_t srcLimit, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) toLower() argument
314 toUpper(int32_t caseLocale, uint32_t options, const uint8_t *src, UCaseContext *csc, int32_t srcLength, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) toUpper() argument
437 maybeTitleDutchIJ(const uint8_t *src, UChar32 c, int32_t start, int32_t segmentLimit, ByteSink &sink, uint32_t options, icu::Edits *edits, UErrorCode &errorCode) maybeTitleDutchIJ() argument
439 U_ASSERT(start < segmentLimit); int32_t index = start; bool withAcute = false; int32_t unchanged1 = 0; bool doTitleJ = false; int32_t unchanged2 = 0; UChar32 c2; c2 = src[index++]; if (c == u�) { if (c2 == ACUTE_BYTE0 && index < segmentLimit && src[index++] == ACUTE_BYTE1) { withAcute = true; unchanged1 = 2; if (index == segmentLimit) { return start; } c2 = src[index++]; } } else { withAcute = true; } if (c2 == u�) { doTitleJ = true; } else if (c2 == u�) { ++unchanged1; } else { return start; } if (withAcute) { if ((index + 1) >= segmentLimit || src[index++] != ACUTE_BYTE0 || src[index++] != ACUTE_BYTE1) { return start; } if (doTitleJ) { unchanged2 = 2; } else { unchanged1 = unchanged1 + 2; } } if (index < segmentLimit) { int32_t cp; int32_t i = index; U8_NEXT(src, i, segmentLimit, cp); uint32_t typeMask = U_GET_GC_MASK(cp); if ((typeMask & U_GC_M_MASK) != 0) { return start; } } ByteSinkUtil::appendUnchanged(src + start, unchanged1, sink, options, edits, errorCode); start += unchanged1; if (doTitleJ) { ByteSinkUtil::appendCodePoint(1, u�, sink, edits); ++start; } ByteSinkUtil::appendUnchanged(src + start, unchanged2, sink, options, edits, errorCode); U_ASSERT(start + unchanged2 == index); return index; } } U_CFUNC void U_CALLCONV ucasemap_internalUTF8ToTitle( int32_t caseLocale, uint32_t options, BreakIterator *iter, const uint8_t *src, int32_t srcLength, ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) { if (!ustrcase_checkTitleAdjustmentOptions(options, errorCode)) { return; } UCaseContext csc=UCASECONTEXT_INITIALIZER; csc.p=(void *)src; csc.limit=srcLength; int32_t prev=0; UBool isFirstIndex=true; while(prev<srcLength) { int32_t index; if(isFirstIndex) { isFirstIndex=false; index=iter->first(); } else { index=iter->next(); } if(index==UBRK_DONE || index>srcLength) maybeTitleDutchIJ() argument
655 toUpper(uint32_t options, const uint8_t *src, int32_t srcLength, ByteSink &sink, Edits *edits, UErrorCode &errorCode) toUpper() argument
812 ucasemap_internalUTF8ToLower(int32_t caseLocale, uint32_t options, UCASEMAP_BREAK_ITERATOR_UNUSED const uint8_t *src, int32_t srcLength, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) ucasemap_internalUTF8ToLower() argument
826 ucasemap_internalUTF8ToUpper(int32_t caseLocale, uint32_t options, UCASEMAP_BREAK_ITERATOR_UNUSED const uint8_t *src, int32_t srcLength, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) ucasemap_internalUTF8ToUpper() argument
844 ucasemap_internalUTF8Fold(int32_t , uint32_t options, UCASEMAP_BREAK_ITERATOR_UNUSED const uint8_t *src, int32_t srcLength, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) ucasemap_internalUTF8Fold() argument
855 ucasemap_mapUTF8(int32_t caseLocale, uint32_t options, UCASEMAP_BREAK_ITERATOR_PARAM const char *src, int32_t srcLength, UTF8CaseMapper *stringCaseMapper, icu::ByteSink &sink, icu::Edits *edits, UErrorCode &errorCode) ucasemap_mapUTF8() argument
888 ucasemap_mapUTF8(int32_t caseLocale, uint32_t options, UCASEMAP_BREAK_ITERATOR_PARAM char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UTF8CaseMapper *stringCaseMapper, icu::Edits *edits, UErrorCode &errorCode) ucasemap_mapUTF8() argument
977 utf8ToLower( const char *locale, uint32_t options, StringPiece src, ByteSink &sink, Edits *edits, UErrorCode &errorCode) utf8ToLower() argument
984 ucasemap_internalUTF8ToLower, sink, edits, errorCode); utf8ToLower() local
987 utf8ToUpper( const char *locale, uint32_t options, StringPiece src, ByteSink &sink, Edits *edits, UErrorCode &errorCode) utf8ToUpper() argument
994 ucasemap_internalUTF8ToUpper, sink, edits, errorCode); utf8ToUpper() local
997 utf8Fold( uint32_t options, StringPiece src, ByteSink &sink, Edits *edits, UErrorCode &errorCode) utf8Fold() argument
1007 utf8ToLower( const char *locale, uint32_t options, const char *src, int32_t srcLength, char *dest, int32_t destCapacity, Edits *edits, UErrorCode &errorCode) utf8ToLower() argument
1019 utf8ToUpper( const char *locale, uint32_t options, const char *src, int32_t srcLength, char *dest, int32_t destCapacity, Edits *edits, UErrorCode &errorCode) utf8ToUpper() argument
1031 utf8Fold( uint32_t options, const char *src, int32_t srcLength, char *dest, int32_t destCapacity, Edits *edits, UErrorCode &errorCode) utf8Fold() argument
[all...]
H A Dbytesinkutil.cpp9 #include "unicode/edits.h"
22 ByteSink &sink, Edits *edits, UErrorCode &errorCode) { in appendChange()
52 if (edits != nullptr) { in appendChange()
53 edits->addReplace(length, s8Length); in appendChange()
61 ByteSink &sink, Edits *edits, UErrorCode &errorCode) { in appendChange()
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()
21 appendChange(int32_t length, const char16_t *s16, int32_t s16Length, ByteSink &sink, Edits *edits, UErrorCode &errorCode) appendChange() argument
59 appendChange(const uint8_t *s, const uint8_t *limit, const char16_t *s16, int32_t s16Length, ByteSink &sink, Edits *edits, UErrorCode &errorCode) appendChange() argument
97 appendNonEmptyUnchanged(const uint8_t *s, int32_t length, ByteSink &sink, uint32_t options, Edits *edits) appendNonEmptyUnchanged() argument
109 appendUnchanged(const uint8_t *s, const uint8_t *limit, ByteSink &sink, uint32_t options, Edits *edits, UErrorCode &errorCode) appendUnchanged() argument
[all...]
H A Dbytesinkutil.h12 #include "unicode/edits.h"
29 ByteSink &sink, Edits *edits, UErrorCode &errorCode);
34 ByteSink &sink, Edits *edits, UErrorCode &errorCode);
37 static void appendCodePoint(int32_t length, UChar32 c, ByteSink &sink, Edits *edits = nullptr);
41 ByteSink &sink, Edits *edits = nullptr) { in appendCodePoint()
42 appendCodePoint((int32_t)(nextSrc - src), c, sink, edits); in appendCodePoint()
49 ByteSink &sink, uint32_t options, Edits *edits, in appendUnchanged()
52 if (length > 0) { appendNonEmptyUnchanged(s, length, sink, options, edits); } in appendUnchanged()
57 ByteSink &sink, uint32_t options, Edits *edits,
62 ByteSink &sink, uint32_t options, Edits *edits);
48 appendUnchanged(const uint8_t *s, int32_t length, ByteSink &sink, uint32_t options, Edits *edits, UErrorCode &errorCode) appendUnchanged() argument
[all...]
H A Dustrcase.cpp26 #include "unicode/edits.h"
50 Edits *edits, UErrorCode &errorCode) { in checkOverflowAndEditsError()
54 } else if (edits != nullptr) { in checkOverflowAndEditsError()
55 edits->copyErrorTo(errorCode); in checkOverflowAndEditsError()
65 int32_t cpLength, uint32_t options, icu::Edits *edits) { in appendResult()
72 if(edits!=nullptr) { in appendResult()
73 edits->addUnchanged(cpLength); in appendResult()
90 if(edits!=nullptr) { in appendResult()
91 edits->addReplace(cpLength, 1); in appendResult()
98 if(edits! in appendResult()
49 checkOverflowAndEditsError(int32_t destIndex, int32_t destCapacity, Edits *edits, UErrorCode &errorCode) checkOverflowAndEditsError() argument
63 appendResult(char16_t *dest, int32_t destIndex, int32_t destCapacity, int32_t result, const char16_t *s, int32_t cpLength, uint32_t options, icu::Edits *edits) appendResult() argument
146 appendNonEmptyUnchanged(char16_t *dest, int32_t destIndex, int32_t destCapacity, const char16_t *s, int32_t length, uint32_t options, icu::Edits *edits) appendNonEmptyUnchanged() argument
164 appendUnchanged(char16_t *dest, int32_t destIndex, int32_t destCapacity, const char16_t *s, int32_t length, uint32_t options, icu::Edits *edits) appendUnchanged() argument
208 toLower(int32_t caseLocale, uint32_t options, char16_t *dest, int32_t destCapacity, const char16_t *src, UCaseContext *csc, int32_t srcStart, int32_t srcLimit, icu::Edits *edits, UErrorCode &errorCode) toLower() argument
306 toUpper(int32_t caseLocale, uint32_t options, char16_t *dest, int32_t destCapacity, const char16_t *src, UCaseContext *csc, int32_t srcLength, icu::Edits *edits, UErrorCode &errorCode) toUpper() argument
416 maybeTitleDutchIJ(const char16_t *src, UChar32 c, int32_t start, int32_t segmentLimit, char16_t *dest, int32_t &destIndex, int32_t destCapacity, uint32_t options, icu::Edits *edits) maybeTitleDutchIJ() argument
[all...]
H A 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,
H A Dustrcase_locale.cpp73 char16_t *dest, int32_t destCapacity, Edits *edits, in toLower()
79 ustrcase_internalToLower, edits, errorCode); in toLower()
85 char16_t *dest, int32_t destCapacity, Edits *edits, in toUpper()
91 ustrcase_internalToUpper, edits, errorCode); in toUpper()
70 toLower( const char *locale, uint32_t options, const char16_t *src, int32_t srcLength, char16_t *dest, int32_t destCapacity, Edits *edits, UErrorCode &errorCode) toLower() argument
82 toUpper( const char *locale, uint32_t options, const char16_t *src, int32_t srcLength, char16_t *dest, int32_t destCapacity, Edits *edits, UErrorCode &errorCode) toUpper() argument
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DCaseMapImpl.java379 int cpLength, int options, Edits edits) throws IOException { in appendResult()
383 if (edits != null) { in appendResult()
384 edits.addUnchanged(cpLength); in appendResult()
392 if (edits != null) { in appendResult()
393 edits.addReplace(cpLength, result); in appendResult()
398 if (edits != null) { in appendResult()
399 edits.addReplace(cpLength, length); in appendResult()
405 Appendable dest, int options, Edits edits) throws IOException { in appendUnchanged()
407 if (edits != null) { in appendUnchanged()
408 edits in appendUnchanged()
378 appendResult(int result, Appendable dest, int cpLength, int options, Edits edits) appendResult() argument
404 appendUnchanged(CharSequence src, int start, int length, Appendable dest, int options, Edits edits) appendUnchanged() argument
417 applyEdits(CharSequence src, StringBuilder replacementChars, Edits edits) applyEdits() argument
440 internalToLower(int caseLocale, int options, CharSequence src, int srcStart, int srcLimit, StringContextIterator iter, Appendable dest, Edits edits) internalToLower() argument
523 internalToUpper(int caseLocale, int options, CharSequence src, Appendable dest, Edits edits) internalToUpper() argument
617 toLower(int caseLocale, int options, CharSequence src, A dest, Edits edits) toLower() argument
647 toUpper(int caseLocale, int options, CharSequence src, A dest, Edits edits) toUpper() argument
681 toTitle( int caseLocale, int options, BreakIterator titleIter, CharSequence src, A dest, Edits edits) toTitle() argument
794 maybeTitleDutchIJ( CharSequence src, int c, int start, int segmentLimit, A dest, int options, Edits edits) maybeTitleDutchIJ() argument
878 fold(int options, CharSequence src, A dest, Edits edits) fold() argument
1395 toUpper(int options, CharSequence src, A dest, Edits edits) toUpper() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DCaseMapImpl.java373 int cpLength, int options, Edits edits) throws IOException { in appendResult()
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()
401 if (edits != null) { in appendUnchanged()
402 edits in appendUnchanged()
372 appendResult(int result, Appendable dest, int cpLength, int options, Edits edits) appendResult() argument
398 appendUnchanged(CharSequence src, int start, int length, Appendable dest, int options, Edits edits) appendUnchanged() argument
411 applyEdits(CharSequence src, StringBuilder replacementChars, Edits edits) applyEdits() argument
434 internalToLower(int caseLocale, int options, CharSequence src, int srcStart, int srcLimit, StringContextIterator iter, Appendable dest, Edits edits) internalToLower() argument
517 internalToUpper(int caseLocale, int options, CharSequence src, Appendable dest, Edits edits) internalToUpper() argument
611 toLower(int caseLocale, int options, CharSequence src, A dest, Edits edits) toLower() argument
641 toUpper(int caseLocale, int options, CharSequence src, A dest, Edits edits) toUpper() argument
675 toTitle( int caseLocale, int options, BreakIterator titleIter, CharSequence src, A dest, Edits edits) toTitle() argument
803 fold(int options, CharSequence src, A dest, Edits edits) fold() argument
1320 toUpper(int options, CharSequence src, A dest, Edits edits) toUpper() argument
[all...]
/third_party/icu/icu4c/source/common/unicode/
H A Dcasemap.h36 * Lowercases a UTF-16 string and optionally records edits.
51 * @param edits Records edits for index mapping, working with styled text,
54 * This function calls edits->reset() first unless
55 * options includes U_EDITS_NO_RESET. edits can be NULL.
68 char16_t *dest, int32_t destCapacity, Edits *edits,
72 * Uppercases a UTF-16 string and optionally records edits.
87 * @param edits Records edits for index mapping, working with styled text,
90 * This function calls edits
[all...]
/third_party/node/deps/icu-small/source/common/unicode/
H A Dcasemap.h36 * Lowercases a UTF-16 string and optionally records edits.
51 * @param edits Records edits for index mapping, working with styled text,
54 * This function calls edits->reset() first unless
55 * options includes U_EDITS_NO_RESET. edits can be nullptr.
68 char16_t *dest, int32_t destCapacity, Edits *edits,
72 * Uppercases a UTF-16 string and optionally records edits.
87 * @param edits Records edits for index mapping, working with styled text,
90 * This function calls edits
[all...]
/third_party/skia/third_party/externals/icu/source/common/unicode/
H A Dcasemap.h36 * Lowercases a UTF-16 string and optionally records edits.
51 * @param edits Records edits for index mapping, working with styled text,
54 * This function calls edits->reset() first unless
55 * options includes U_EDITS_NO_RESET. edits can be NULL.
68 char16_t *dest, int32_t destCapacity, Edits *edits,
72 * Uppercases a UTF-16 string and optionally records edits.
87 * @param edits Records edits for index mapping, working with styled text,
90 * This function calls edits
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dstrcase.cpp24 #include "unicode/edits.h"
1050 Edits edits; in TestEdits() local
1051 assertFalse("new Edits hasChanges", edits.hasChanges()); in TestEdits()
1052 assertEquals("new Edits numberOfChanges", 0, edits.numberOfChanges()); in TestEdits()
1053 assertEquals("new Edits", 0, edits.lengthDelta()); in TestEdits()
1054 edits.addUnchanged(1); // multiple unchanged ranges are combined in TestEdits()
1055 edits.addUnchanged(10000); // too long, and they are split in TestEdits()
1056 edits.addReplace(0, 0); in TestEdits()
1057 edits.addUnchanged(2); in TestEdits()
1058 assertFalse("unchanged 10003 hasChanges", edits in TestEdits()
1358 Edits edits; TestCaseMapWithEdits() local
1439 Edits edits; TestCaseMapUTF8WithEdits() local
1676 Edits edits; TestCaseMapEditsIteratorDocs() local
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DCaseMap.java105 * Lowercases a string and optionally records edits (see {@link #omitUnchangedText}).
113 * @param edits Records edits for index mapping, working with styled text,
115 * This function calls edits.reset() first. edits can be null.
122 Locale locale, CharSequence src, A dest, Edits edits) { in apply()
123 return CaseMapImpl.toLower(getCaseLocale(locale), internalOptions, src, dest, edits); in apply()
165 * Uppercases a string and optionally records edits (see {@link #omitUnchangedText}).
173 * @param edits Records edits fo
121 apply( Locale locale, CharSequence src, A dest, Edits edits) apply() argument
181 apply( Locale locale, CharSequence src, A dest, Edits edits) apply() argument
363 apply( Locale locale, BreakIterator iter, CharSequence src, A dest, Edits edits) apply() argument
452 apply(CharSequence src, A dest, Edits edits) apply() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DCaseMap.java97 * Lowercases a string and optionally records edits (see {@link #omitUnchangedText}).
105 * @param edits Records edits for index mapping, working with styled text,
107 * This function calls edits.reset() first. edits can be null.
113 Locale locale, CharSequence src, A dest, Edits edits) { in apply()
114 return CaseMapImpl.toLower(getCaseLocale(locale), internalOptions, src, dest, edits); in apply()
153 * Uppercases a string and optionally records edits (see {@link #omitUnchangedText}).
161 * @param edits Records edits fo
112 apply( Locale locale, CharSequence src, A dest, Edits edits) apply() argument
168 apply( Locale locale, CharSequence src, A dest, Edits edits) apply() argument
341 apply( Locale locale, BreakIterator iter, CharSequence src, A dest, Edits edits) apply() argument
425 apply(CharSequence src, A dest, Edits edits) apply() argument
[all...]

Completed in 16 milliseconds

123