/external/icu/icu4c/source/common/ |
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>0) { in doWriteForward() [all …]
|
D | ustr_wcs.cpp | 69 int32_t srcLength, in _strToWCS() argument 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() argument 244 if( (src==NULL && srcLength!=0) || srcLength < -1 || in u_strToWCS() 253 if(srcLength == -1){ in u_strToWCS() 254 srcLength = u_strlen(src); in u_strToWCS() [all …]
|
D | ustrtrns.cpp | 44 int32_t srcLength, in u_strFromUTF32WithSub() argument 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() argument 148 src, srcLength, in u_strFromUTF32() 158 int32_t srcLength, in u_strToUTF32WithSub() argument 173 if( (src==NULL && srcLength!=0) || srcLength < -1 || in u_strToUTF32WithSub() 190 if(srcLength < 0) { in u_strToUTF32WithSub() 206 srcLimit = (src!=NULL)?(src + srcLength):NULL; in u_strToUTF32WithSub() [all …]
|
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() 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 = u_strlen(src); in _internal_toASCII() 230 if(srcLength > b1Capacity){ in _internal_toASCII() [all …]
|
D | ucasemap.cpp | 316 const uint8_t *src, UCaseContext *csc, int32_t srcLength, in toUpper() argument 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() argument 436 csc.limit=srcLength; in ucasemap_internalUTF8ToTitle() 441 while(prev<srcLength) { in ucasemap_internalUTF8ToTitle() 450 if(index==UBRK_DONE || index>srcLength) { in ucasemap_internalUTF8ToTitle() 451 index=srcLength; in ucasemap_internalUTF8ToTitle() [all …]
|
D | ustrcase_locale.cpp | 46 const UChar *src, int32_t srcLength, in u_strToLower() argument 52 src, srcLength, in u_strToLower() 58 const UChar *src, int32_t srcLength, in u_strToUpper() argument 64 src, srcLength, in u_strToUpper() 72 const UChar *src, int32_t srcLength, in toLower() argument 78 src, srcLength, in toLower() 84 const UChar *src, int32_t srcLength, in toUpper() argument 90 src, srcLength, in toUpper()
|
D | ubiditransform.cpp | 83 …uint32_t srcLength; /* input text length - not really needed as we are zer… member 131 ubidi_setPara(pTransform->pBidi, pTransform->src, pTransform->srcLength, in action_resolve() 151 *pTransform->pDestLength = pTransform->srcLength; in action_reorder() 204 ubidi_writeReverse(pTransform->src, pTransform->srcLength, in action_reverse() 207 *pTransform->pDestLength = pTransform->srcLength; in action_reverse() 245 pTransform->srcLength = u_terminateUChars(pTransform->src, in updateSrc() 260 pTransform->srcLength, pTransform->dest, pTransform->destSize, in doShape() 311 if (pTransform->destSize < pTransform->srcLength) { in action_mirror() 317 U16_NEXT(pTransform->src, i, pTransform->srcLength, c); in action_mirror() 319 } while (i < pTransform->srcLength); in action_mirror() [all …]
|
D | unistr.cpp | 323 int32_t srcLength) { in UnicodeString() argument 325 setTo(that, srcStart, srcLength); in UnicodeString() 553 int32_t srcLength = src.length(); in copyFrom() local 554 if(allocate(srcLength)) { in copyFrom() 555 u_memcpy(getArrayStart(), src.getArrayStart(), srcLength); in copyFrom() 556 setLength(srcLength); in copyFrom() 669 int32_t srcLength) const in doCompare() 694 if(srcLength < 0) { in doCompare() 695 srcLength = u_strlen(srcChars + srcStart); in doCompare() 699 if(length != srcLength) { in doCompare() [all …]
|
D | ustr_titlecase_brkiter.cpp | 168 const UChar *src, int32_t srcLength, in toTitle() argument 176 UnicodeString s(srcLength<0, src, srcLength); in toTitle() 181 src, srcLength, in toTitle() 191 const UChar *src, int32_t srcLength, in u_strToTitle() argument 202 UnicodeString s(srcLength<0, src, srcLength); in u_strToTitle() 207 src, srcLength, in u_strToTitle() 214 const UChar *src, int32_t srcLength, in ucasemap_toTitle() argument 228 UnicodeString s(srcLength<0, src, srcLength); in ucasemap_toTitle() 233 src, srcLength, in ucasemap_toTitle()
|
D | unorm.cpp | 48 int32_t srcLength, in unorm_quickCheck() argument 52 return unorm2_quickCheck((const UNormalizer2 *)n2, src, srcLength, pErrorCode); in unorm_quickCheck() 56 unorm_quickCheckWithOptions(const UChar *src, int32_t srcLength, in unorm_quickCheckWithOptions() argument 64 src, srcLength, pErrorCode); in unorm_quickCheckWithOptions() 66 return unorm2_quickCheck((const UNormalizer2 *)n2, src, srcLength, pErrorCode); in unorm_quickCheckWithOptions() 71 unorm_isNormalized(const UChar *src, int32_t srcLength, in unorm_isNormalized() argument 75 return unorm2_isNormalized((const UNormalizer2 *)n2, src, srcLength, pErrorCode); in unorm_isNormalized() 79 unorm_isNormalizedWithOptions(const UChar *src, int32_t srcLength, in unorm_isNormalizedWithOptions() argument 87 src, srcLength, pErrorCode); in unorm_isNormalizedWithOptions() 89 return unorm2_isNormalized((const UNormalizer2 *)n2, src, srcLength, pErrorCode); in unorm_isNormalizedWithOptions() [all …]
|
D | punycode.cpp | 182 u_strToPunycode(const UChar *src, int32_t srcLength, in u_strToPunycode() argument 196 if(src==NULL || srcLength<-1 || (dest==NULL && destCapacity!=0)) { in u_strToPunycode() 200 if (srcLength>ENCODE_MAX_CODE_UNITS) { in u_strToPunycode() 210 if(srcLength==-1) { in u_strToPunycode() 246 for(j=0; j<srcLength; ++j) { in u_strToPunycode() 261 } else if(U16_IS_LEAD(c) && (j+1)<srcLength && U16_IS_TRAIL(c2=src[j+1])) { in u_strToPunycode() 374 u_strFromPunycode(const UChar *src, int32_t srcLength, in u_strFromPunycode() argument 387 if(src==NULL || srcLength<-1 || (dest==NULL && destCapacity!=0)) { in u_strFromPunycode() 392 if(srcLength==-1) { in u_strFromPunycode() 393 srcLength=u_strlen(src); in u_strFromPunycode() [all …]
|
D | ucasemap_imp.h | 143 const UChar *src, int32_t srcLength, 151 const UChar *src, int32_t srcLength, 162 const UChar *src, int32_t srcLength, 172 const UChar *src, int32_t srcLength, 183 const UChar *src, int32_t srcLength, 196 const UChar *src, int32_t srcLength, 211 const uint8_t *src, int32_t srcLength, 221 const uint8_t *src, int32_t srcLength, 229 const char *src, int32_t srcLength, 241 const char *src, int32_t srcLength,
|
/external/icu/libicu/cts_headers/unicode/ |
D | unistr.h | 74 const char16_t *src, int32_t srcLength, 427 int32_t srcLength) const; 442 int32_t srcLength) const; 483 int32_t srcLength) const; 575 int32_t srcLength) const; 596 int32_t srcLength) const; 646 int32_t srcLength) const; 746 int32_t srcLength, 769 int32_t srcLength, 823 int32_t srcLength, [all …]
|
D | casemap.h | 67 const char16_t *src, int32_t srcLength, 103 const char16_t *src, int32_t srcLength, 154 const char16_t *src, int32_t srcLength, 196 const char16_t *src, int32_t srcLength, 355 const char *src, int32_t srcLength, 391 const char *src, int32_t srcLength, 441 const char *src, int32_t srcLength, 483 const char *src, int32_t srcLength,
|
D | ustring.h | 1071 const UChar *src, int32_t srcLength, 1097 const UChar *src, int32_t srcLength, 1143 const UChar *src, int32_t srcLength, 1176 const UChar *src, int32_t srcLength, 1208 int32_t srcLength, 1237 int32_t srcLength, 1268 int32_t srcLength, 1298 int32_t srcLength, 1341 int32_t srcLength, 1386 int32_t srcLength, [all …]
|
/external/icu/icu4c/source/common/unicode/ |
D | unistr.h | 74 const char16_t *src, int32_t srcLength, 427 int32_t srcLength) const; 442 int32_t srcLength) const; 483 int32_t srcLength) const; 575 int32_t srcLength) const; 596 int32_t srcLength) const; 646 int32_t srcLength) const; 746 int32_t srcLength, 769 int32_t srcLength, 823 int32_t srcLength, [all …]
|
D | casemap.h | 67 const char16_t *src, int32_t srcLength, 103 const char16_t *src, int32_t srcLength, 154 const char16_t *src, int32_t srcLength, 196 const char16_t *src, int32_t srcLength, 355 const char *src, int32_t srcLength, 391 const char *src, int32_t srcLength, 441 const char *src, int32_t srcLength, 483 const char *src, int32_t srcLength,
|
D | ustring.h | 1071 const UChar *src, int32_t srcLength, 1097 const UChar *src, int32_t srcLength, 1143 const UChar *src, int32_t srcLength, 1176 const UChar *src, int32_t srcLength, 1208 int32_t srcLength, 1237 int32_t srcLength, 1268 int32_t srcLength, 1298 int32_t srcLength, 1341 int32_t srcLength, 1386 int32_t srcLength, [all …]
|
/external/icu/icu4c/source/test/intltest/ |
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() 225 punycode_status error = punycode_decode(srcLength,b1,(uint32_t*)&b2Len,b2,caseFlags); in convertFromPuny() 233 error = punycode_decode(srcLength,b1,(uint32_t*)&b2Len,b2,caseFlags); in convertFromPuny() 257 idnaref_toASCII(const UChar* src, int32_t srcLength, in idnaref_toASCII() argument [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | BidiWriter.java | 139 int srcLength = src.length(); in writeReverse() local 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 -= UTF16.getCharCount(c); in writeReverse() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | BidiWriter.java | 138 int srcLength = src.length(); in writeReverse() local 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 -= UTF16.getCharCount(c); in writeReverse() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
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 < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in nfs4_mixed_prepare() [all …]
|
/external/icu/libandroidicu/include/unicode/ |
D | ustring.h | 1071 const UChar *src, int32_t srcLength, 1097 const UChar *src, int32_t srcLength, 1143 const UChar *src, int32_t srcLength, 1176 const UChar *src, int32_t srcLength, 1208 int32_t srcLength, 1237 int32_t srcLength, 1268 int32_t srcLength, 1298 int32_t srcLength, 1341 int32_t srcLength, 1386 int32_t srcLength, [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | Punycode.java | 135 int srcLength = src.length(); in encode() local 136 if (srcLength > ENCODE_MAX_CODE_UNITS) { in encode() 138 "input too long: " + srcLength + " UTF-16 code units"); in encode() 140 int[] cpBuffer = new int[srcLength]; in encode() 141 StringBuilder dest = new StringBuilder(srcLength); in encode() 148 for(j=0; j<srcLength; ++j) { in encode() 157 …} else if(UTF16.isLeadSurrogate(c) && (j+1)<srcLength && UTF16.isTrailSurrogate(c2=src.charAt(j+1)… in encode() 278 int srcLength = src.length(); in decode() local 279 if (srcLength > DECODE_MAX_CHARS) { in decode() 280 throw new ICUInputTooLongException("input too long: " + srcLength + " characters"); in decode() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | Punycode.java | 133 int srcLength = src.length(); in encode() local 134 if (srcLength > ENCODE_MAX_CODE_UNITS) { in encode() 136 "input too long: " + srcLength + " UTF-16 code units"); in encode() 138 int[] cpBuffer = new int[srcLength]; in encode() 139 StringBuilder dest = new StringBuilder(srcLength); in encode() 146 for(j=0; j<srcLength; ++j) { in encode() 155 …} else if(UTF16.isLeadSurrogate(c) && (j+1)<srcLength && UTF16.isTrailSurrogate(c2=src.charAt(j+1)… in encode() 276 int srcLength = src.length(); in decode() local 277 if (srcLength > DECODE_MAX_CHARS) { in decode() 278 throw new ICUInputTooLongException("input too long: " + srcLength + " characters"); in decode() [all …]
|