/external/icu/icu4c/source/common/ |
D | ubidiwrt.c | 62 doWriteForward(const UChar *src, int32_t srcLength, in doWriteForward() argument 70 int32_t length=srcLength; in doWriteForward() 73 return srcLength; in doWriteForward() 78 return srcLength; in doWriteForward() 85 if(destSize<srcLength) { in doWriteForward() 87 return srcLength; in doWriteForward() 90 U16_NEXT(src, i, srcLength, c); in doWriteForward() 93 } while(i<srcLength); in doWriteForward() 94 return srcLength; in doWriteForward() 107 while(--srcLength>0) { in doWriteForward() [all …]
|
D | ustr_wcs.cpp | 67 int32_t srcLength, in _strToWCS() argument 89 if(srcLength == -1){ in _strToWCS() 90 srcLength = u_strlen(pSrc); in _strToWCS() 93 pSrcLimit = pSrc + srcLength; in _strToWCS() 108 int32_t newCapacity = 2 * srcLength; in _strToWCS() 190 nulVal = (nulLen < srcLength) ? 1 : 0; in _strToWCS() 234 int32_t srcLength, in u_strToWCS() argument 242 if( (src==NULL && srcLength!=0) || srcLength < -1 || in u_strToWCS() 251 if(srcLength == -1){ in u_strToWCS() 252 srcLength = u_strlen(src); in u_strToWCS() [all …]
|
D | uidna.cpp | 57 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 | ustrtrns.cpp | 42 int32_t srcLength, in u_strFromUTF32WithSub() argument 56 if( (src==NULL && srcLength!=0) || srcLength < -1 || in u_strFromUTF32WithSub() 73 if(srcLength < 0) { in u_strFromUTF32WithSub() 90 srcLimit = (src!=NULL)?(src + srcLength):NULL; in u_strFromUTF32WithSub() 142 int32_t srcLength, in u_strFromUTF32() argument 146 src, srcLength, in u_strFromUTF32() 156 int32_t srcLength, in u_strToUTF32WithSub() argument 171 if( (src==NULL && srcLength!=0) || srcLength < -1 || in u_strToUTF32WithSub() 188 if(srcLength < 0) { in u_strToUTF32WithSub() 204 srcLimit = (src!=NULL)?(src + srcLength):NULL; in u_strToUTF32WithSub() [all …]
|
D | ucasemap.cpp | 260 const uint8_t *src, int32_t srcLength, in ucasemap_internalUTF8ToTitle() argument 279 csc.limit=srcLength; in ucasemap_internalUTF8ToTitle() 285 while(prev<srcLength) { in ucasemap_internalUTF8ToTitle() 293 if(idx==UBRK_DONE || idx>srcLength) { in ucasemap_internalUTF8ToTitle() 294 idx=srcLength; in ucasemap_internalUTF8ToTitle() 392 const uint8_t *src, int32_t srcLength, in ucasemap_internalUTF8ToLower() argument 396 csc.limit=srcLength; in ucasemap_internalUTF8ToLower() 400 src, &csc, 0, srcLength, in ucasemap_internalUTF8ToLower() 407 const uint8_t *src, int32_t srcLength, in ucasemap_internalUTF8ToUpper() argument 411 csc.limit=srcLength; in ucasemap_internalUTF8ToUpper() [all …]
|
D | ustr_titlecase_brkiter.cpp | 52 const UChar *src, int32_t srcLength, in u_strToTitle() argument 59 ubrk_setText(csm.iter=titleIter, src, srcLength, pErrorCode); in u_strToTitle() 61 csm.iter=ubrk_open(UBRK_WORD, csm.locale, src, srcLength, pErrorCode); in u_strToTitle() 66 src, srcLength, in u_strToTitle() 77 const UChar *src, int32_t srcLength, in ucasemap_toTitle() argument 80 ubrk_setText(csm->iter, src, srcLength, pErrorCode); in ucasemap_toTitle() 82 csm->iter=ubrk_open(UBRK_WORD, csm->locale, src, srcLength, pErrorCode); in ucasemap_toTitle() 87 src, srcLength, in ucasemap_toTitle()
|
D | unorm.cpp | 46 int32_t srcLength, in unorm_quickCheck() argument 50 return unorm2_quickCheck((const UNormalizer2 *)n2, src, srcLength, pErrorCode); in unorm_quickCheck() 54 unorm_quickCheckWithOptions(const UChar *src, int32_t srcLength, in unorm_quickCheckWithOptions() argument 62 src, srcLength, pErrorCode); in unorm_quickCheckWithOptions() 64 return unorm2_quickCheck((const UNormalizer2 *)n2, src, srcLength, pErrorCode); in unorm_quickCheckWithOptions() 69 unorm_isNormalized(const UChar *src, int32_t srcLength, in unorm_isNormalized() argument 73 return unorm2_isNormalized((const UNormalizer2 *)n2, src, srcLength, pErrorCode); in unorm_isNormalized() 77 unorm_isNormalizedWithOptions(const UChar *src, int32_t srcLength, in unorm_isNormalizedWithOptions() argument 85 src, srcLength, pErrorCode); in unorm_isNormalizedWithOptions() 87 return unorm2_isNormalized((const UNormalizer2 *)n2, src, srcLength, pErrorCode); in unorm_isNormalizedWithOptions() [all …]
|
D | ustr_imp.h | 142 const UChar *src, int32_t srcLength, 151 const UChar *src, int32_t srcLength, 158 const UChar *src, int32_t srcLength, 167 const UChar *src, int32_t srcLength, 176 const UChar *src, int32_t srcLength, 186 const UChar *src, int32_t srcLength, 200 const uint8_t *src, int32_t srcLength, 207 const uint8_t *src, int32_t srcLength, 217 const uint8_t *src, int32_t srcLength,
|
D | ustrcase.cpp | 166 const UChar *src, int32_t srcLength, in ustrcase_internalToTitle() argument 185 csc.limit=srcLength; in ustrcase_internalToTitle() 191 while(prev<srcLength) { in ustrcase_internalToTitle() 199 if(idx==UBRK_DONE || idx>srcLength) { in ustrcase_internalToTitle() 200 idx=srcLength; in ustrcase_internalToTitle() 301 const UChar *src, int32_t srcLength, in ustrcase_internalToLower() argument 305 csc.limit=srcLength; in ustrcase_internalToLower() 309 src, &csc, 0, srcLength, in ustrcase_internalToLower() 316 const UChar *src, int32_t srcLength, in ustrcase_internalToUpper() argument 320 csc.limit=srcLength; in ustrcase_internalToUpper() [all …]
|
D | unistr_case.cpp | 40 int32_t srcLength, in doCaseCompare() argument 53 srcStart = srcLength = 0; in doCaseCompare() 66 int32_t result=u_strcmpFold(chars, length, srcChars, srcLength, in doCaseCompare() 73 if(srcLength < 0) { in doCaseCompare() 74 srcLength = u_strlen(srcChars + srcStart); in doCaseCompare() 76 if(length != srcLength) { in doCaseCompare() 77 return (int8_t)((length - srcLength) >> 24 | 1); in doCaseCompare()
|
D | unistr.cpp | 317 int32_t srcLength) { in UnicodeString() argument 319 setTo(that, srcStart, srcLength); in UnicodeString() 487 int32_t srcLength = src.length(); in copyFrom() local 488 if(allocate(srcLength)) { in copyFrom() 489 uprv_memcpy(getArrayStart(), src.getArrayStart(), srcLength * U_SIZEOF_UCHAR); in copyFrom() 490 setLength(srcLength); in copyFrom() 554 int32_t srcLength) const in doCompare() 579 if(srcLength < 0) { in doCompare() 580 srcLength = u_strlen(srcChars + srcStart); in doCompare() 584 if(length != srcLength) { in doCompare() [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() 206 if(srcLength==-1) { in u_strToPunycode() 243 for(j=0; j<srcLength; ++j) { in u_strToPunycode() 263 } else if(U16_IS_LEAD(c) && (j+1)<srcLength && U16_IS_TRAIL(c2=src[j+1])) { in u_strToPunycode() 375 u_strFromPunycode(const UChar *src, int32_t srcLength, in u_strFromPunycode() argument 388 if(src==NULL || srcLength<-1 || (dest==NULL && destCapacity!=0)) { in u_strFromPunycode() 393 if(srcLength==-1) { in u_strFromPunycode() 394 srcLength=u_strlen(src); in u_strFromPunycode() 405 for(j=srcLength; j>0;) { in u_strFromPunycode() [all …]
|
D | ustrcase_locale.cpp | 86 const UChar *src, int32_t srcLength, in u_strToLower() argument 94 src, srcLength, in u_strToLower() 100 const UChar *src, int32_t srcLength, in u_strToUpper() argument 108 src, srcLength, in u_strToUpper()
|
D | unistr_cnv.cpp | 77 UnicodeString::UnicodeString(const char *src, int32_t srcLength, in UnicodeString() argument 85 } else if(srcLength<-1) { in UnicodeString() 89 if(srcLength==-1) { in UnicodeString() 90 srcLength=(int32_t)uprv_strlen(src); in UnicodeString() 92 if(srcLength>0) { in UnicodeString() 96 doCodepageCreate(src, srcLength, cnv, errorCode); in UnicodeString() 100 doCodepageCreate(src, srcLength, cnv, errorCode); in UnicodeString()
|
D | ucasemap_titlecase_brkiter.cpp | 46 const char *src, int32_t srcLength, in ucasemap_utf8ToTitle() argument 49 utext_openUTF8(&utext, (const char *)src, srcLength, pErrorCode); in ucasemap_utf8ToTitle() 61 (const uint8_t *)src, srcLength, in ucasemap_utf8ToTitle()
|
/external/icu/icu4c/source/common/unicode/ |
D | unistr.h | 71 const UChar *src, int32_t srcLength, 378 int32_t srcLength) const; 393 int32_t srcLength) const; 434 int32_t srcLength) const; 526 int32_t srcLength) const; 547 int32_t srcLength) const; 597 int32_t srcLength) const; 697 int32_t srcLength, 720 int32_t srcLength, 774 int32_t srcLength, [all …]
|
D | ustring.h | 1082 const UChar *src, int32_t srcLength, 1108 const UChar *src, int32_t srcLength, 1154 const UChar *src, int32_t srcLength, 1187 const UChar *src, int32_t srcLength, 1219 int32_t srcLength, 1248 int32_t srcLength, 1279 int32_t srcLength, 1309 int32_t srcLength, 1352 int32_t srcLength, 1397 int32_t srcLength, [all …]
|
D | ucasemap.h | 270 const UChar *src, int32_t srcLength, 301 const char *src, int32_t srcLength, 330 const char *src, int32_t srcLength, 382 const char *src, int32_t srcLength, 420 const char *src, int32_t srcLength,
|
/external/icu/icu4c/source/test/intltest/ |
D | idnaref.cpp | 47 startsWithPrefix(const UChar* src , int32_t srcLength){ in startsWithPrefix() argument 50 if(srcLength < ACE_PREFIX_LENGTH){ in startsWithPrefix() 129 static int32_t convertToPuny(const UChar* src, int32_t srcLength, in convertToPuny() argument 141 u_strToUTF32((UChar32*)b1,b1Capacity,&b1Len,src,srcLength,&status); in convertToPuny() 153 u_strToUTF32((UChar32*)b1,b1Len,&b1Len,src,srcLength,&status); in convertToPuny() 199 static int32_t convertFromPuny( const UChar* src, int32_t srcLength, in convertFromPuny() argument 206 convertUCharsToASCII(src, b1,srcLength); in convertFromPuny() 212 punycode_status error = punycode_decode(srcLength,b1,(uint32_t*)&b2Len,b2,caseFlags); in convertFromPuny() 220 error = punycode_decode(srcLength,b1,(uint32_t*)&b2Len,b2,caseFlags); in convertFromPuny() 244 idnaref_toASCII(const UChar* src, int32_t srcLength, in idnaref_toASCII() argument [all …]
|
D | idnaref.h | 62 idnaref_toASCII(const UChar* src, int32_t srcLength, 100 idnaref_toUnicode(const UChar* src, int32_t srcLength, 143 idnaref_IDNToASCII( const UChar* src, int32_t srcLength, 182 idnaref_IDNToUnicode( const UChar* src, int32_t srcLength,
|
D | nptrans.cpp | 139 int32_t NamePrepTransform::map(const UChar* src, int32_t srcLength, in map() argument 149 if(src==NULL || srcLength<-1 || (dest==NULL && destCapacity!=0)) { in map() 154 UnicodeString rsource(src,srcLength); in map() 184 int32_t NamePrepTransform::process( const UChar* src, int32_t srcLength, in process() argument 195 if(src==NULL || srcLength<-1 || (dest==NULL && destCapacity!=0)) { in process() 208 b1Len = map(src, srcLength, b1, b1String.getCapacity(), allowUnassigned, parseError, status); in process() 216 … b1Len = map(src, srcLength, b1, b1String.getCapacity(), allowUnassigned, parseError, status); in process()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | BidiWriter.java | 136 int srcLength = src.length(); in writeReverse() local 142 int i = srcLength; in writeReverse() 145 srcLength -= UTF16.getCharCount(UTF16.charAt(src, in writeReverse() 146 srcLength - 1)); in writeReverse() 149 dest.append(src.substring(srcLength, i)); in writeReverse() 150 } while(srcLength > 0); in writeReverse() 161 srcLength = src.length(); in writeReverse() 168 int i = srcLength; in writeReverse() 173 c = UTF16.charAt(src, srcLength - 1); in writeReverse() 174 srcLength -= UTF16.getCharCount(c); in writeReverse() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | nfsprep.c | 40 nfs4_prepare( const char* src, int32_t srcLength, in nfs4_prepare() argument 66 if((src==NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in nfs4_prepare() 73 u_strFromUTF8(b1,b1Capacity,&b1Len,src,srcLength,status); in nfs4_prepare() 86 u_strFromUTF8(b1, b1Capacity, &b1Len, src, srcLength, status); in nfs4_prepare() 174 getPrefixSuffix(const char *src, int32_t srcLength, in getPrefixSuffix() argument 181 while(i<srcLength){ in getPrefixSuffix() 183 if((i+1) == srcLength){ in getPrefixSuffix() 196 *suffixLen = srcLength - i; in getPrefixSuffix() 206 nfs4_mixed_prepare( const char* src, int32_t srcLength, in nfs4_mixed_prepare() argument 224 if((src==NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in nfs4_mixed_prepare() [all …]
|
D | nfsprep.h | 52 nfs4_prepare(const char* src, int32_t srcLength, 68 nfs4_mixed_prepare( const char* src, int32_t srcLength, 83 nfs4_cis_prepare( const char* src, int32_t srcLength, 98 nfs4_cs_prepare( const char* src, int32_t srcLength,
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | Punycode.java | 133 int srcLength = src.length(); in encode() local 134 int[] cpBuffer = new int[srcLength]; in encode() 135 StringBuilder dest = new StringBuilder(srcLength); in encode() 142 for(j=0; j<srcLength; ++j) { in encode() 151 …} else if(UTF16.isLeadSurrogate(c) && (j+1)<srcLength && UTF16.isTrailSurrogate(c2=src.charAt(j+1)… in encode() 272 int srcLength = src.length(); in decode() local 286 for(j=srcLength; j>0;) { in decode() 316 for(in=basicLength>0 ? basicLength+1 : 0; in<srcLength; /* no op */) { in decode() 327 if(in>=srcLength) { in decode()
|