/third_party/icu/icu4c/source/common/ |
H A D | ustr_wcs.cpp | 69 int32_t srcLength, in _strToWCS() 91 if(srcLength == -1){ in _strToWCS() 92 srcLength = u_strlen(pSrc); in _strToWCS() 95 pSrcLimit = pSrc + srcLength; in _strToWCS() 110 int32_t newCapacity = 2 * srcLength; in _strToWCS() 192 nulVal = (nulLen < srcLength) ? 1 : 0; in _strToWCS() 236 int32_t srcLength, in u_strToWCS() 244 if( (src==NULL && srcLength!=0) || srcLength < -1 || in u_strToWCS() 253 if(srcLength in u_strToWCS() 65 _strToWCS(wchar_t *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *src, int32_t srcLength, UErrorCode *pErrorCode) _strToWCS() argument 232 u_strToWCS(wchar_t *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *src, int32_t srcLength, UErrorCode *pErrorCode) u_strToWCS() argument 283 _strFromWCS( UChar *dest, int32_t destCapacity, int32_t *pDestLength, const wchar_t *src, int32_t srcLength, UErrorCode *pErrorCode) _strFromWCS() argument 486 u_strFromWCS(UChar *dest, int32_t destCapacity, int32_t *pDestLength, const wchar_t *src, int32_t srcLength, UErrorCode *pErrorCode) u_strFromWCS() argument [all...] |
H A D | ubidiwrt.cpp | 59 doWriteForward(const UChar *src, int32_t srcLength, in doWriteForward() argument 67 int32_t length=srcLength; in doWriteForward() 70 return srcLength; in doWriteForward() 75 return srcLength; in doWriteForward() 82 if(destSize<srcLength) { in doWriteForward() 84 return srcLength; in doWriteForward() 87 U16_NEXT(src, i, srcLength, c); in doWriteForward() 90 } while(i<srcLength); in doWriteForward() 91 return srcLength; in doWriteForward() 104 while(--srcLength> in doWriteForward() 152 doWriteReverse(const UChar *src, int32_t srcLength, UChar *dest, int32_t destSize, uint16_t options, UErrorCode *pErrorCode) doWriteReverse() argument 309 ubidi_writeReverse(const UChar *src, int32_t srcLength, UChar *dest, int32_t destSize, uint16_t options, UErrorCode *pErrorCode) ubidi_writeReverse() argument [all...] |
H A D | uidna.cpp | 59 startsWithPrefix(const UChar* src , int32_t srcLength){ in startsWithPrefix() argument 60 if(srcLength < ACE_PREFIX_LENGTH){ in startsWithPrefix() 145 getNextSeparator(UChar *src, int32_t srcLength, in getNextSeparator() argument 147 if(srcLength == -1){ in getNextSeparator() 163 for(i=0;i<srcLength;i++){ in getNextSeparator() 170 // if(i==srcLength) in getNextSeparator() 171 *limit = src+srcLength; in getNextSeparator() 194 _internal_toASCII(const UChar* src, int32_t srcLength, in _internal_toASCII() argument 226 if(srcLength == -1){ in _internal_toASCII() 227 srcLength in _internal_toASCII() 394 _internal_toUnicode(const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, UStringPrepProfile* nameprep, UParseError* parseError, UErrorCode* status) _internal_toUnicode() argument 611 uidna_toASCII(const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, UParseError* parseError, UErrorCode* status) uidna_toASCII() argument 640 uidna_toUnicode(const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, UParseError* parseError, UErrorCode* status) uidna_toUnicode() argument 669 uidna_IDNToASCII( const UChar *src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, UParseError *parseError, UErrorCode *status) uidna_IDNToASCII() argument 762 uidna_IDNToUnicode( const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, UParseError* parseError, UErrorCode* status) uidna_IDNToUnicode() argument [all...] |
H A D | ustrtrns.cpp | 44 int32_t srcLength, in u_strFromUTF32WithSub() 58 if( (src==NULL && srcLength!=0) || srcLength < -1 || in u_strFromUTF32WithSub() 75 if(srcLength < 0) { in u_strFromUTF32WithSub() 92 srcLimit = (src!=NULL)?(src + srcLength):NULL; in u_strFromUTF32WithSub() 144 int32_t srcLength, in u_strFromUTF32() 148 src, srcLength, in u_strFromUTF32() 158 int32_t srcLength, in u_strToUTF32WithSub() 173 if( (src==NULL && srcLength!=0) || srcLength < in u_strToUTF32WithSub() 40 u_strFromUTF32WithSub(UChar *dest, int32_t destCapacity, int32_t *pDestLength, const UChar32 *src, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode) u_strFromUTF32WithSub() argument 140 u_strFromUTF32(UChar *dest, int32_t destCapacity, int32_t *pDestLength, const UChar32 *src, int32_t srcLength, UErrorCode *pErrorCode) u_strFromUTF32() argument 154 u_strToUTF32WithSub(UChar32 *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *src, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode) u_strToUTF32WithSub() argument 246 u_strToUTF32(UChar32 *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *src, int32_t srcLength, UErrorCode *pErrorCode) u_strToUTF32() argument 260 u_strFromUTF8WithSub(UChar *dest, int32_t destCapacity, int32_t *pDestLength, const char* src, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode) u_strFromUTF8WithSub() argument 540 u_strFromUTF8(UChar *dest, int32_t destCapacity, int32_t *pDestLength, const char* src, int32_t srcLength, UErrorCode *pErrorCode) u_strFromUTF8() argument 554 u_strFromUTF8Lenient(UChar *dest, int32_t destCapacity, int32_t *pDestLength, const char *src, int32_t srcLength, UErrorCode *pErrorCode) u_strFromUTF8Lenient() argument 793 u_strToUTF8WithSub(char *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *pSrc, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode) u_strToUTF8WithSub() argument 1057 u_strToUTF8(char *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *pSrc, int32_t srcLength, UErrorCode *pErrorCode) u_strToUTF8() argument 1071 u_strFromJavaModifiedUTF8WithSub( UChar *dest, int32_t destCapacity, int32_t *pDestLength, const char *src, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode) u_strFromJavaModifiedUTF8WithSub() argument 1313 u_strToJavaModifiedUTF8( char *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *src, int32_t srcLength, UErrorCode *pErrorCode) u_strToJavaModifiedUTF8() argument [all...] |
H A D | ucasemap.cpp | 200 * caseLocale >= 0: Lowercases [srcStart..srcLimit[ but takes context [0..srcLength[ into account. 315 const uint8_t *src, UCaseContext *csc, int32_t srcLength, in toUpper() 331 if (U_FAILURE(errorCode) || srcIndex >= srcLength) { in toUpper() 355 if (0xc2 <= lead && lead <= 0xc5 && srcIndex < srcLength && in toUpper() 376 (srcIndex + 2) <= srcLength && in toUpper() 383 U8_NEXT(src, srcIndex, srcLength, c); in toUpper() 516 const uint8_t *src, int32_t srcLength, 526 csc.limit=srcLength; 531 while(prev<srcLength) { 540 if(index==UBRK_DONE || index>srcLength) { 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 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 935 ucasemap_utf8ToLower(const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode) ucasemap_utf8ToLower() argument 947 ucasemap_utf8ToUpper(const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode) ucasemap_utf8ToUpper() argument 959 ucasemap_utf8FoldCase(const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode) ucasemap_utf8FoldCase() 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 D | ustrcase_locale.cpp | 46 const UChar *src, int32_t srcLength, in u_strToLower() 52 src, srcLength, in u_strToLower() 58 const UChar *src, int32_t srcLength, in u_strToUpper() 64 src, srcLength, in u_strToUpper() 72 const UChar *src, int32_t srcLength, in toLower() 78 src, srcLength, in toLower() 84 const UChar *src, int32_t srcLength, in toUpper() 90 src, srcLength, in toUpper() 45 u_strToLower(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode) u_strToLower() argument 57 u_strToUpper(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode) u_strToUpper() argument 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 D | ustr_wcs.cpp | 69 int32_t srcLength, in _strToWCS() 91 if(srcLength == -1){ in _strToWCS() 92 srcLength = u_strlen(pSrc); in _strToWCS() 95 pSrcLimit = pSrc + srcLength; in _strToWCS() 110 int32_t newCapacity = 2 * srcLength; in _strToWCS() 192 nulVal = (nulLen < srcLength) ? 1 : 0; in _strToWCS() 236 int32_t srcLength, in u_strToWCS() 244 if( (src==nullptr && srcLength!=0) || srcLength < -1 || in u_strToWCS() 253 if(srcLength in u_strToWCS() 65 _strToWCS(wchar_t *dest, int32_t destCapacity, int32_t *pDestLength, const char16_t *src, int32_t srcLength, UErrorCode *pErrorCode) _strToWCS() argument 232 u_strToWCS(wchar_t *dest, int32_t destCapacity, int32_t *pDestLength, const char16_t *src, int32_t srcLength, UErrorCode *pErrorCode) u_strToWCS() argument 283 _strFromWCS( char16_t *dest, int32_t destCapacity, int32_t *pDestLength, const wchar_t *src, int32_t srcLength, UErrorCode *pErrorCode) _strFromWCS() argument 486 u_strFromWCS(char16_t *dest, int32_t destCapacity, int32_t *pDestLength, const wchar_t *src, int32_t srcLength, UErrorCode *pErrorCode) u_strFromWCS() argument [all...] |
H A D | ubidiwrt.cpp | 59 doWriteForward(const char16_t *src, int32_t srcLength, in doWriteForward() argument 67 int32_t length=srcLength; in doWriteForward() 70 return srcLength; in doWriteForward() 75 return srcLength; in doWriteForward() 82 if(destSize<srcLength) { in doWriteForward() 84 return srcLength; in doWriteForward() 87 U16_NEXT(src, i, srcLength, c); in doWriteForward() 90 } while(i<srcLength); in doWriteForward() 91 return srcLength; in doWriteForward() 104 while(--srcLength> in doWriteForward() 152 doWriteReverse(const char16_t *src, int32_t srcLength, char16_t *dest, int32_t destSize, uint16_t options, UErrorCode *pErrorCode) doWriteReverse() argument 309 ubidi_writeReverse(const char16_t *src, int32_t srcLength, char16_t *dest, int32_t destSize, uint16_t options, UErrorCode *pErrorCode) ubidi_writeReverse() argument [all...] |
H A D | uidna.cpp | 59 startsWithPrefix(const char16_t* src , int32_t srcLength){ in startsWithPrefix() argument 60 if(srcLength < ACE_PREFIX_LENGTH){ in startsWithPrefix() 145 getNextSeparator(char16_t *src, int32_t srcLength, in getNextSeparator() argument 147 if(srcLength == -1){ in getNextSeparator() 163 for(i=0;i<srcLength;i++){ in getNextSeparator() 170 // if(i==srcLength) in getNextSeparator() 171 *limit = src+srcLength; in getNextSeparator() 194 _internal_toASCII(const char16_t* src, int32_t srcLength, in _internal_toASCII() argument 226 if(srcLength == -1){ in _internal_toASCII() 227 srcLength in _internal_toASCII() 394 _internal_toUnicode(const char16_t* src, int32_t srcLength, char16_t* dest, int32_t destCapacity, int32_t options, UStringPrepProfile* nameprep, UParseError* parseError, UErrorCode* status) _internal_toUnicode() argument 611 uidna_toASCII(const char16_t* src, int32_t srcLength, char16_t* dest, int32_t destCapacity, int32_t options, UParseError* parseError, UErrorCode* status) uidna_toASCII() argument 640 uidna_toUnicode(const char16_t* src, int32_t srcLength, char16_t* dest, int32_t destCapacity, int32_t options, UParseError* parseError, UErrorCode* status) uidna_toUnicode() argument 669 uidna_IDNToASCII( const char16_t *src, int32_t srcLength, char16_t* dest, int32_t destCapacity, int32_t options, UParseError *parseError, UErrorCode *status) uidna_IDNToASCII() argument 762 uidna_IDNToUnicode( const char16_t* src, int32_t srcLength, char16_t* dest, int32_t destCapacity, int32_t options, UParseError* parseError, UErrorCode* status) uidna_IDNToUnicode() argument [all...] |
H A D | ustrtrns.cpp | 44 int32_t srcLength, in u_strFromUTF32WithSub() 58 if( (src==nullptr && srcLength!=0) || srcLength < -1 || in u_strFromUTF32WithSub() 75 if(srcLength < 0) { in u_strFromUTF32WithSub() 92 srcLimit = (src!=nullptr)?(src + srcLength):nullptr; in u_strFromUTF32WithSub() 144 int32_t srcLength, in u_strFromUTF32() 148 src, srcLength, in u_strFromUTF32() 158 int32_t srcLength, in u_strToUTF32WithSub() 173 if( (src==nullptr && srcLength!=0) || srcLength < in u_strToUTF32WithSub() 40 u_strFromUTF32WithSub(char16_t *dest, int32_t destCapacity, int32_t *pDestLength, const UChar32 *src, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode) u_strFromUTF32WithSub() argument 140 u_strFromUTF32(char16_t *dest, int32_t destCapacity, int32_t *pDestLength, const UChar32 *src, int32_t srcLength, UErrorCode *pErrorCode) u_strFromUTF32() argument 154 u_strToUTF32WithSub(UChar32 *dest, int32_t destCapacity, int32_t *pDestLength, const char16_t *src, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode) u_strToUTF32WithSub() argument 246 u_strToUTF32(UChar32 *dest, int32_t destCapacity, int32_t *pDestLength, const char16_t *src, int32_t srcLength, UErrorCode *pErrorCode) u_strToUTF32() argument 260 u_strFromUTF8WithSub(char16_t *dest, int32_t destCapacity, int32_t *pDestLength, const char* src, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode) u_strFromUTF8WithSub() argument 540 u_strFromUTF8(char16_t *dest, int32_t destCapacity, int32_t *pDestLength, const char* src, int32_t srcLength, UErrorCode *pErrorCode) u_strFromUTF8() argument 554 u_strFromUTF8Lenient(char16_t *dest, int32_t destCapacity, int32_t *pDestLength, const char *src, int32_t srcLength, UErrorCode *pErrorCode) u_strFromUTF8Lenient() argument 793 u_strToUTF8WithSub(char *dest, int32_t destCapacity, int32_t *pDestLength, const char16_t *pSrc, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode) u_strToUTF8WithSub() argument 1057 u_strToUTF8(char *dest, int32_t destCapacity, int32_t *pDestLength, const char16_t *pSrc, int32_t srcLength, UErrorCode *pErrorCode) u_strToUTF8() argument 1071 u_strFromJavaModifiedUTF8WithSub( char16_t *dest, int32_t destCapacity, int32_t *pDestLength, const char *src, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode) u_strFromJavaModifiedUTF8WithSub() argument 1313 u_strToJavaModifiedUTF8( char *dest, int32_t destCapacity, int32_t *pDestLength, const char16_t *src, int32_t srcLength, UErrorCode *pErrorCode) u_strToJavaModifiedUTF8() argument [all...] |
H A D | ucasemap.cpp | 200 * caseLocale >= 0: Lowercases [srcStart..srcLimit[ but takes context [0..srcLength[ into account. 315 const uint8_t *src, UCaseContext *csc, int32_t srcLength, in toUpper() 331 if (U_FAILURE(errorCode) || srcIndex >= srcLength) { in toUpper() 355 if (0xc2 <= lead && lead <= 0xc5 && srcIndex < srcLength && in toUpper() 376 (srcIndex + 2) <= srcLength && in toUpper() 383 U8_NEXT(src, srcIndex, srcLength, c); in toUpper() 516 const uint8_t *src, int32_t srcLength, 526 csc.limit=srcLength; 531 while(prev<srcLength) { 540 if(index==UBRK_DONE || index>srcLength) { 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 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 940 ucasemap_utf8ToLower(const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode) ucasemap_utf8ToLower() argument 952 ucasemap_utf8ToUpper(const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode) ucasemap_utf8ToUpper() argument 964 ucasemap_utf8FoldCase(const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode) ucasemap_utf8FoldCase() 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 D | ustrcase_locale.cpp | 46 const char16_t *src, int32_t srcLength, in u_strToLower() 52 src, srcLength, in u_strToLower() 58 const char16_t *src, int32_t srcLength, in u_strToUpper() 64 src, srcLength, in u_strToUpper() 72 const char16_t *src, int32_t srcLength, in toLower() 78 src, srcLength, in toLower() 84 const char16_t *src, int32_t srcLength, in toUpper() 90 src, srcLength, in toUpper() 45 u_strToLower(char16_t *dest, int32_t destCapacity, const char16_t *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode) u_strToLower() argument 57 u_strToUpper(char16_t *dest, int32_t destCapacity, const char16_t *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode) u_strToUpper() argument 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/skia/third_party/externals/icu/source/common/ |
H A D | ustr_wcs.cpp | 69 int32_t srcLength, in _strToWCS() 91 if(srcLength == -1){ in _strToWCS() 92 srcLength = u_strlen(pSrc); in _strToWCS() 95 pSrcLimit = pSrc + srcLength; in _strToWCS() 110 int32_t newCapacity = 2 * srcLength; in _strToWCS() 192 nulVal = (nulLen < srcLength) ? 1 : 0; in _strToWCS() 236 int32_t srcLength, in u_strToWCS() 244 if( (src==NULL && srcLength!=0) || srcLength < -1 || in u_strToWCS() 253 if(srcLength in u_strToWCS() 65 _strToWCS(wchar_t *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *src, int32_t srcLength, UErrorCode *pErrorCode) _strToWCS() argument 232 u_strToWCS(wchar_t *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *src, int32_t srcLength, UErrorCode *pErrorCode) u_strToWCS() argument 283 _strFromWCS( UChar *dest, int32_t destCapacity, int32_t *pDestLength, const wchar_t *src, int32_t srcLength, UErrorCode *pErrorCode) _strFromWCS() argument 486 u_strFromWCS(UChar *dest, int32_t destCapacity, int32_t *pDestLength, const wchar_t *src, int32_t srcLength, UErrorCode *pErrorCode) u_strFromWCS() argument [all...] |
H A D | ubidiwrt.cpp | 59 doWriteForward(const UChar *src, int32_t srcLength, in doWriteForward() argument 67 int32_t length=srcLength; in doWriteForward() 70 return srcLength; in doWriteForward() 75 return srcLength; in doWriteForward() 82 if(destSize<srcLength) { in doWriteForward() 84 return srcLength; in doWriteForward() 87 U16_NEXT(src, i, srcLength, c); in doWriteForward() 90 } while(i<srcLength); in doWriteForward() 91 return srcLength; in doWriteForward() 104 while(--srcLength> in doWriteForward() 152 doWriteReverse(const UChar *src, int32_t srcLength, UChar *dest, int32_t destSize, uint16_t options, UErrorCode *pErrorCode) doWriteReverse() argument 309 ubidi_writeReverse(const UChar *src, int32_t srcLength, UChar *dest, int32_t destSize, uint16_t options, UErrorCode *pErrorCode) ubidi_writeReverse() argument [all...] |
H A D | uidna.cpp | 59 startsWithPrefix(const UChar* src , int32_t srcLength){ in startsWithPrefix() argument 60 if(srcLength < ACE_PREFIX_LENGTH){ in startsWithPrefix() 145 getNextSeparator(UChar *src, int32_t srcLength, in getNextSeparator() argument 147 if(srcLength == -1){ in getNextSeparator() 163 for(i=0;i<srcLength;i++){ in getNextSeparator() 170 // if(i==srcLength) in getNextSeparator() 171 *limit = src+srcLength; in getNextSeparator() 194 _internal_toASCII(const UChar* src, int32_t srcLength, in _internal_toASCII() argument 226 if(srcLength == -1){ in _internal_toASCII() 227 srcLength in _internal_toASCII() 394 _internal_toUnicode(const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, UStringPrepProfile* nameprep, UParseError* parseError, UErrorCode* status) _internal_toUnicode() argument 611 uidna_toASCII(const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, UParseError* parseError, UErrorCode* status) uidna_toASCII() argument 640 uidna_toUnicode(const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, UParseError* parseError, UErrorCode* status) uidna_toUnicode() argument 669 uidna_IDNToASCII( const UChar *src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, UParseError *parseError, UErrorCode *status) uidna_IDNToASCII() argument 762 uidna_IDNToUnicode( const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, UParseError* parseError, UErrorCode* status) uidna_IDNToUnicode() argument [all...] |
H A D | ustrtrns.cpp | 44 int32_t srcLength, in u_strFromUTF32WithSub() 58 if( (src==NULL && srcLength!=0) || srcLength < -1 || in u_strFromUTF32WithSub() 75 if(srcLength < 0) { in u_strFromUTF32WithSub() 92 srcLimit = (src!=NULL)?(src + srcLength):NULL; in u_strFromUTF32WithSub() 144 int32_t srcLength, in u_strFromUTF32() 148 src, srcLength, in u_strFromUTF32() 158 int32_t srcLength, in u_strToUTF32WithSub() 173 if( (src==NULL && srcLength!=0) || srcLength < in u_strToUTF32WithSub() 40 u_strFromUTF32WithSub(UChar *dest, int32_t destCapacity, int32_t *pDestLength, const UChar32 *src, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode) u_strFromUTF32WithSub() argument 140 u_strFromUTF32(UChar *dest, int32_t destCapacity, int32_t *pDestLength, const UChar32 *src, int32_t srcLength, UErrorCode *pErrorCode) u_strFromUTF32() argument 154 u_strToUTF32WithSub(UChar32 *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *src, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode) u_strToUTF32WithSub() argument 246 u_strToUTF32(UChar32 *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *src, int32_t srcLength, UErrorCode *pErrorCode) u_strToUTF32() argument 260 u_strFromUTF8WithSub(UChar *dest, int32_t destCapacity, int32_t *pDestLength, const char* src, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode) u_strFromUTF8WithSub() argument 540 u_strFromUTF8(UChar *dest, int32_t destCapacity, int32_t *pDestLength, const char* src, int32_t srcLength, UErrorCode *pErrorCode) u_strFromUTF8() argument 554 u_strFromUTF8Lenient(UChar *dest, int32_t destCapacity, int32_t *pDestLength, const char *src, int32_t srcLength, UErrorCode *pErrorCode) u_strFromUTF8Lenient() argument 793 u_strToUTF8WithSub(char *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *pSrc, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode) u_strToUTF8WithSub() argument 1057 u_strToUTF8(char *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *pSrc, int32_t srcLength, UErrorCode *pErrorCode) u_strToUTF8() argument 1071 u_strFromJavaModifiedUTF8WithSub( UChar *dest, int32_t destCapacity, int32_t *pDestLength, const char *src, int32_t srcLength, UChar32 subchar, int32_t *pNumSubstitutions, UErrorCode *pErrorCode) u_strFromJavaModifiedUTF8WithSub() argument 1313 u_strToJavaModifiedUTF8( char *dest, int32_t destCapacity, int32_t *pDestLength, const UChar *src, int32_t srcLength, UErrorCode *pErrorCode) u_strToJavaModifiedUTF8() argument [all...] |
H A D | ucasemap.cpp | 201 * caseLocale >= 0: Lowercases [srcStart..srcLimit[ but takes context [0..srcLength[ into account. 316 const uint8_t *src, UCaseContext *csc, int32_t srcLength, in toUpper() 332 if (U_FAILURE(errorCode) || srcIndex >= srcLength) { in toUpper() 356 if (0xc2 <= lead && lead <= 0xc5 && srcIndex < srcLength && in toUpper() 377 (srcIndex + 2) <= srcLength && in toUpper() 384 U8_NEXT(src, srcIndex, srcLength, c); in toUpper() 426 const uint8_t *src, int32_t srcLength, in ucasemap_internalUTF8ToTitle() 436 csc.limit=srcLength; in ucasemap_internalUTF8ToTitle() 441 while(prev<srcLength) { in ucasemap_internalUTF8ToTitle() 450 if(index==UBRK_DONE || index>srcLength) { in ucasemap_internalUTF8ToTitle() 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 850 ucasemap_utf8ToLower(const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode) ucasemap_utf8ToLower() argument 862 ucasemap_utf8ToUpper(const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode) ucasemap_utf8ToUpper() argument 874 ucasemap_utf8FoldCase(const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode) ucasemap_utf8FoldCase() 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 D | ustrcase_locale.cpp | 46 const UChar *src, int32_t srcLength, in u_strToLower() 52 src, srcLength, in u_strToLower() 58 const UChar *src, int32_t srcLength, in u_strToUpper() 64 src, srcLength, in u_strToUpper() 72 const UChar *src, int32_t srcLength, in toLower() 78 src, srcLength, in toLower() 84 const UChar *src, int32_t srcLength, in toUpper() 90 src, srcLength, in toUpper() 45 u_strToLower(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode) u_strToLower() argument 57 u_strToUpper(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode) u_strToUpper() argument 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/unicode/ |
H A D | unistr.h | 75 const char16_t *src, int32_t srcLength, 411 * [`srcStart`, `srcStart + srcLength`). 416 * @param srcLength the number of characters in `src` to compare 428 int32_t srcLength) const; 432 * `srcLength` characters in `srcChars`. 434 * @param srcLength the number of characters in `srcChars` to compare 443 int32_t srcLength) const; 467 * [`srcStart`, `srcStart + srcLength`). 472 * @param srcLength the number of characters in `srcChars` to compare 484 int32_t srcLength) cons 4116 doCaseCompare(int32_t start, int32_t thisLength, const UnicodeString &srcText, int32_t srcStart, int32_t srcLength, uint32_t options) const doCaseCompare() argument 4145 caseCompare(ConstChar16Ptr srcChars, int32_t srcLength, uint32_t options) const caseCompare() argument 4152 caseCompare(int32_t start, int32_t _length, const UnicodeString &srcText, int32_t srcStart, int32_t srcLength, uint32_t options) const caseCompare() argument 4170 caseCompare(int32_t start, int32_t _length, const char16_t *srcChars, int32_t srcStart, int32_t srcLength, uint32_t options) const caseCompare() argument 4190 indexOf(const UnicodeString& srcText, int32_t srcStart, int32_t srcLength, int32_t start, int32_t _length) const indexOf() argument 4223 indexOf(const char16_t *srcChars, int32_t srcLength, int32_t start) const indexOf() argument 4231 indexOf(ConstChar16Ptr srcChars, int32_t srcLength, int32_t start, int32_t _length) const indexOf() argument 4272 lastIndexOf(ConstChar16Ptr srcChars, int32_t srcLength, int32_t start, int32_t _length) const lastIndexOf() argument 4279 lastIndexOf(const char16_t *srcChars, int32_t srcLength, int32_t start) const lastIndexOf() argument 4287 lastIndexOf(const UnicodeString& srcText, int32_t srcStart, int32_t srcLength, int32_t start, int32_t _length) const lastIndexOf() argument 4425 replace(int32_t start, int32_t _length, const UnicodeString& srcText, int32_t srcStart, int32_t srcLength) replace() argument 4433 replace(int32_t start, int32_t _length, ConstChar16Ptr srcChars, int32_t srcLength) replace() argument 4440 replace(int32_t start, int32_t _length, const char16_t *srcChars, int32_t srcStart, int32_t srcLength) replace() argument 4603 setTo(const UnicodeString& srcText, int32_t srcStart, int32_t srcLength) setTo() argument 4627 setTo(const char16_t *srcChars, int32_t srcLength) setTo() argument 4649 append(const UnicodeString& srcText, int32_t srcStart, int32_t srcLength) append() argument 4659 append(const char16_t *srcChars, int32_t srcStart, int32_t srcLength) append() argument 4665 append(ConstChar16Ptr srcChars, int32_t srcLength) append() argument 4687 insert(int32_t start, const UnicodeString& srcText, int32_t srcStart, int32_t srcLength) insert() argument 4699 insert(int32_t start, const char16_t *srcChars, int32_t srcStart, int32_t srcLength) insert() argument 4706 insert(int32_t start, ConstChar16Ptr srcChars, int32_t srcLength) insert() argument [all...] |
/third_party/icu/icu4c/source/common/unicode/ |
H A D | unistr.h | 75 const char16_t *src, int32_t srcLength, 411 * [`srcStart`, `srcStart + srcLength`). 416 * @param srcLength the number of characters in `src` to compare 428 int32_t srcLength) const; 432 * `srcLength` characters in `srcChars`. 434 * @param srcLength the number of characters in `srcChars` to compare 443 int32_t srcLength) const; 467 * [`srcStart`, `srcStart + srcLength`). 472 * @param srcLength the number of characters in `srcChars` to compare 484 int32_t srcLength) cons 4088 doCaseCompare(int32_t start, int32_t thisLength, const UnicodeString &srcText, int32_t srcStart, int32_t srcLength, uint32_t options) const doCaseCompare() argument 4117 caseCompare(ConstChar16Ptr srcChars, int32_t srcLength, uint32_t options) const caseCompare() argument 4124 caseCompare(int32_t start, int32_t _length, const UnicodeString &srcText, int32_t srcStart, int32_t srcLength, uint32_t options) const caseCompare() argument 4142 caseCompare(int32_t start, int32_t _length, const char16_t *srcChars, int32_t srcStart, int32_t srcLength, uint32_t options) const caseCompare() argument 4162 indexOf(const UnicodeString& srcText, int32_t srcStart, int32_t srcLength, int32_t start, int32_t _length) const indexOf() argument 4195 indexOf(const char16_t *srcChars, int32_t srcLength, int32_t start) const indexOf() argument 4203 indexOf(ConstChar16Ptr srcChars, int32_t srcLength, int32_t start, int32_t _length) const indexOf() argument 4244 lastIndexOf(ConstChar16Ptr srcChars, int32_t srcLength, int32_t start, int32_t _length) const lastIndexOf() argument 4251 lastIndexOf(const char16_t *srcChars, int32_t srcLength, int32_t start) const lastIndexOf() argument 4259 lastIndexOf(const UnicodeString& srcText, int32_t srcStart, int32_t srcLength, int32_t start, int32_t _length) const lastIndexOf() argument 4398 replace(int32_t start, int32_t _length, const UnicodeString& srcText, int32_t srcStart, int32_t srcLength) replace() argument 4406 replace(int32_t start, int32_t _length, ConstChar16Ptr srcChars, int32_t srcLength) replace() argument 4413 replace(int32_t start, int32_t _length, const char16_t *srcChars, int32_t srcStart, int32_t srcLength) replace() argument 4576 setTo(const UnicodeString& srcText, int32_t srcStart, int32_t srcLength) setTo() argument 4600 setTo(const char16_t *srcChars, int32_t srcLength) setTo() argument 4622 append(const UnicodeString& srcText, int32_t srcStart, int32_t srcLength) append() argument 4632 append(const char16_t *srcChars, int32_t srcStart, int32_t srcLength) append() argument 4638 append(ConstChar16Ptr srcChars, int32_t srcLength) append() argument 4660 insert(int32_t start, const UnicodeString& srcText, int32_t srcStart, int32_t srcLength) insert() argument 4672 insert(int32_t start, const char16_t *srcChars, int32_t srcStart, int32_t srcLength) insert() argument 4679 insert(int32_t start, ConstChar16Ptr srcChars, int32_t srcLength) insert() argument [all...] |
/third_party/skia/third_party/externals/icu/source/common/unicode/ |
H A D | unistr.h | 75 const char16_t *src, int32_t srcLength, 411 * [`srcStart`, `srcStart + srcLength`). 416 * @param srcLength the number of characters in `src` to compare 428 int32_t srcLength) const; 432 * `srcLength` characters in `srcChars`. 434 * @param srcLength the number of characters in `srcChars` to compare 443 int32_t srcLength) const; 467 * [`srcStart`, `srcStart + srcLength`). 472 * @param srcLength the number of characters in `srcChars` to compare 484 int32_t srcLength) cons 4088 doCaseCompare(int32_t start, int32_t thisLength, const UnicodeString &srcText, int32_t srcStart, int32_t srcLength, uint32_t options) const doCaseCompare() argument 4117 caseCompare(ConstChar16Ptr srcChars, int32_t srcLength, uint32_t options) const caseCompare() argument 4124 caseCompare(int32_t start, int32_t _length, const UnicodeString &srcText, int32_t srcStart, int32_t srcLength, uint32_t options) const caseCompare() argument 4142 caseCompare(int32_t start, int32_t _length, const char16_t *srcChars, int32_t srcStart, int32_t srcLength, uint32_t options) const caseCompare() argument 4162 indexOf(const UnicodeString& srcText, int32_t srcStart, int32_t srcLength, int32_t start, int32_t _length) const indexOf() argument 4195 indexOf(const char16_t *srcChars, int32_t srcLength, int32_t start) const indexOf() argument 4203 indexOf(ConstChar16Ptr srcChars, int32_t srcLength, int32_t start, int32_t _length) const indexOf() argument 4244 lastIndexOf(ConstChar16Ptr srcChars, int32_t srcLength, int32_t start, int32_t _length) const lastIndexOf() argument 4251 lastIndexOf(const char16_t *srcChars, int32_t srcLength, int32_t start) const lastIndexOf() argument 4259 lastIndexOf(const UnicodeString& srcText, int32_t srcStart, int32_t srcLength, int32_t start, int32_t _length) const lastIndexOf() argument 4398 replace(int32_t start, int32_t _length, const UnicodeString& srcText, int32_t srcStart, int32_t srcLength) replace() argument 4406 replace(int32_t start, int32_t _length, ConstChar16Ptr srcChars, int32_t srcLength) replace() argument 4413 replace(int32_t start, int32_t _length, const char16_t *srcChars, int32_t srcStart, int32_t srcLength) replace() argument 4576 setTo(const UnicodeString& srcText, int32_t srcStart, int32_t srcLength) setTo() argument 4600 setTo(const char16_t *srcChars, int32_t srcLength) setTo() argument 4622 append(const UnicodeString& srcText, int32_t srcStart, int32_t srcLength) append() argument 4632 append(const char16_t *srcChars, int32_t srcStart, int32_t srcLength) append() argument 4638 append(ConstChar16Ptr srcChars, int32_t srcLength) append() argument 4660 insert(int32_t start, const UnicodeString& srcText, int32_t srcStart, int32_t srcLength) insert() argument 4672 insert(int32_t start, const char16_t *srcChars, int32_t srcStart, int32_t srcLength) insert() argument 4679 insert(int32_t start, ConstChar16Ptr srcChars, int32_t srcLength) insert() argument [all...] |
/third_party/icu/icu4c/source/test/intltest/ |
H A D | idnaref.cpp | 49 startsWithPrefix(const UChar* src , int32_t srcLength){ in startsWithPrefix() argument 52 if(srcLength < ACE_PREFIX_LENGTH){ in startsWithPrefix() 131 static int32_t convertToPuny(const UChar* src, int32_t srcLength, in convertToPuny() argument 143 u_strToUTF32((UChar32*)b1,b1Capacity,&b1Len,src,srcLength,&status); in convertToPuny() 155 u_strToUTF32((UChar32*)b1,b1Len,&b1Len,src,srcLength,&status); in convertToPuny() 212 static int32_t convertFromPuny( const UChar* src, int32_t srcLength, in convertFromPuny() argument 219 convertUCharsToASCII(src, b1,srcLength); in convertFromPuny() 224 unsigned char* caseFlags = NULL; //(unsigned char*) uprv_malloc(srcLength * sizeof(unsigned char*)); in convertFromPuny() 225 punycode_status error = punycode_decode(srcLength,b1,(uint32_t*)&b2Len,b2,caseFlags); in convertFromPuny() 233 error = punycode_decode(srcLength,b in convertFromPuny() 257 idnaref_toASCII(const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, UParseError* parseError, UErrorCode* status) idnaref_toASCII() argument 426 idnaref_toUnicode(const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, UParseError* parseError, UErrorCode* status) idnaref_toUnicode() argument 655 getNextSeparator(UChar *src,int32_t srcLength,NamePrepTransform* prep, UChar **limit, UBool *done, UErrorCode *status) getNextSeparator() argument 691 idnaref_IDNToASCII( const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, UParseError* parseError, UErrorCode* status) idnaref_IDNToASCII() argument 846 idnaref_IDNToUnicode( const UChar* src, int32_t srcLength, UChar* dest, int32_t destCapacity, int32_t options, UParseError* parseError, UErrorCode* status) idnaref_IDNToUnicode() argument [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | BidiWriter.java | 138 int srcLength = src.length(); in writeReverse() 144 int i = srcLength; in writeReverse() 147 srcLength -= UTF16.getCharCount(UTF16.charAt(src, in writeReverse() 148 srcLength - 1)); in writeReverse() 151 dest.append(src.substring(srcLength, i)); in writeReverse() 152 } while(srcLength > 0); in writeReverse() 163 srcLength = src.length(); in writeReverse() 170 int i = srcLength; in writeReverse() 175 c = UTF16.charAt(src, srcLength - 1); in writeReverse() 176 srcLength in writeReverse() [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
H A D | BidiWriter.java | 139 int srcLength = src.length(); in writeReverse() 145 int i = srcLength; in writeReverse() 148 srcLength -= UTF16.getCharCount(UTF16.charAt(src, in writeReverse() 149 srcLength - 1)); in writeReverse() 152 dest.append(src.substring(srcLength, i)); in writeReverse() 153 } while(srcLength > 0); in writeReverse() 164 srcLength = src.length(); in writeReverse() 171 int i = srcLength; in writeReverse() 176 c = UTF16.charAt(src, srcLength - 1); in writeReverse() 177 srcLength in writeReverse() [all...] |
/third_party/icu/icu4c/source/test/cintltst/ |
H A D | nfsprep.c | 42 nfs4_prepare( const char* src, int32_t srcLength, in nfs4_prepare() argument 68 if((src==NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in nfs4_prepare() 75 u_strFromUTF8(b1,b1Capacity,&b1Len,src,srcLength,status); in nfs4_prepare() 88 u_strFromUTF8(b1, b1Capacity, &b1Len, src, srcLength, status); in nfs4_prepare() 176 getPrefixSuffix(const char *src, int32_t srcLength, in getPrefixSuffix() argument 183 while(i<srcLength){ in getPrefixSuffix() 185 if((i+1) == srcLength){ in getPrefixSuffix() 198 *suffixLen = srcLength - i; in getPrefixSuffix() 208 nfs4_mixed_prepare( const char* src, int32_t srcLength, in nfs4_mixed_prepare() argument 226 if((src==NULL) || (srcLength < in nfs4_mixed_prepare() 282 nfs4_cis_prepare( const char* src, int32_t srcLength, char* dest, int32_t destCapacity, UParseError* parseError, UErrorCode* status) nfs4_cis_prepare() argument 291 nfs4_cs_prepare( const char* src, int32_t srcLength, char* dest, int32_t destCapacity, UBool isCaseSensitive, UParseError* parseError, UErrorCode* status) nfs4_cs_prepare() argument [all...] |