/external/icu4c/common/ |
D | ubidiwrt.c | 61 doWriteForward(const UChar *src, int32_t srcLength, in doWriteForward() argument 69 int32_t length=srcLength; in doWriteForward() 72 return srcLength; in doWriteForward() 77 return srcLength; in doWriteForward() 84 if(destSize<srcLength) { in doWriteForward() 86 return srcLength; in doWriteForward() 89 UTF_NEXT_CHAR(src, i, srcLength, c); in doWriteForward() 92 } while(i<srcLength); in doWriteForward() 93 return srcLength; in doWriteForward() 106 while(--srcLength>0) { in doWriteForward() [all …]
|
D | ustr_wcs.c | 71 int32_t srcLength, in _strToWCS() argument 93 if(srcLength == -1){ in _strToWCS() 94 srcLength = u_strlen(pSrc); in _strToWCS() 97 pSrcLimit = pSrc + srcLength; in _strToWCS() 113 (_BUFFER_CAPACITY_MULTIPLIER * (srcLength)), count,sizeof(char))){ 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.c | 38 int32_t srcLength, in u_strFromUTF32WithSub() argument 52 if( (src==NULL && srcLength!=0) || srcLength < -1 || in u_strFromUTF32WithSub() 69 if(srcLength < 0) { in u_strFromUTF32WithSub() 86 srcLimit = src + srcLength; in u_strFromUTF32WithSub() 138 int32_t srcLength, in u_strFromUTF32() argument 142 src, srcLength, in u_strFromUTF32() 152 int32_t srcLength, in u_strToUTF32WithSub() argument 167 if( (src==NULL && srcLength!=0) || srcLength < -1 || in u_strToUTF32WithSub() 184 if(srcLength < 0) { in u_strToUTF32WithSub() 200 srcLimit = src + srcLength; in u_strToUTF32WithSub() [all …]
|
D | ustrcase.c | 212 int32_t srcLength, in _toTitle() argument 220 ubrk_setText(csm->iter, src, srcLength, pErrorCode); in _toTitle() 223 src, srcLength, in _toTitle() 236 while(prev<srcLength) { in _toTitle() 244 if(idx==UBRK_DONE || idx>srcLength) { in _toTitle() 245 idx=srcLength; in _toTitle() 346 const UChar *src, int32_t srcLength, in ustr_toLower() argument 355 csc.limit=srcLength; in ustr_toLower() 359 src, &csc, 0, srcLength, in ustr_toLower() 366 const UChar *src, int32_t srcLength, in ustr_toUpper() argument [all …]
|
D | ucasemap.c | 272 int32_t srcLength, in _toTitle() argument 280 utext_openUTF8(&utext, (const char *)src, srcLength, pErrorCode); in _toTitle() 301 while(prev<srcLength) { in _toTitle() 309 if(idx==UBRK_DONE || idx>srcLength) { in _toTitle() 310 idx=srcLength; in _toTitle() 410 const uint8_t *src, int32_t srcLength, in utf8_foldCase() argument 421 while(srcIndex<srcLength) { in utf8_foldCase() 423 U8_NEXT(src, srcIndex, srcLength, c); in utf8_foldCase() 455 const uint8_t *src, int32_t srcLength, in caseMap() argument 467 srcLength<-1 in caseMap() [all …]
|
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 | unistr.cpp | 344 int32_t srcLength) in UnicodeString() argument 349 setTo(that, srcStart, srcLength); in UnicodeString() 485 int32_t srcLength = src.length(); in copyFrom() local 486 setLength(srcLength); in copyFrom() 493 uprv_memcpy(fUnion.fStackBuffer, src.fUnion.fStackBuffer, srcLength * U_SIZEOF_UCHAR); in copyFrom() 517 if(allocate(srcLength)) { in copyFrom() 518 uprv_memcpy(getArrayStart(), src.getArrayStart(), srcLength * U_SIZEOF_UCHAR); in copyFrom() 575 int32_t srcLength) const in doCompare() 587 srcStart = srcLength = 0; in doCompare() 600 if(srcLength < 0) { in doCompare() [all …]
|
D | punycode.c | 179 u_strToPunycode(const UChar *src, int32_t srcLength, in u_strToPunycode() argument 193 if(src==NULL || srcLength<-1 || (dest==NULL && destCapacity!=0)) { in u_strToPunycode() 203 if(srcLength==-1) { in u_strToPunycode() 240 for(j=0; j<srcLength; ++j) { in u_strToPunycode() 260 } else if(UTF_IS_LEAD(c) && (j+1)<srcLength && UTF_IS_TRAIL(c2=src[j+1])) { in u_strToPunycode() 372 u_strFromPunycode(const UChar *src, int32_t srcLength, in u_strFromPunycode() argument 385 if(src==NULL || srcLength<-1 || (dest==NULL && destCapacity!=0)) { in u_strFromPunycode() 390 if(srcLength==-1) { in u_strFromPunycode() 391 srcLength=u_strlen(src); in u_strFromPunycode() 402 for(j=srcLength; j>0;) { in u_strFromPunycode() [all …]
|
D | unistr_case.cpp | 42 int32_t srcLength, in doCaseCompare() argument 55 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()
|
/external/icu4c/common/unicode/ |
D | unistr.h | 320 int32_t srcLength) const; 335 int32_t srcLength) const; 376 int32_t srcLength) const; 468 int32_t srcLength) const; 489 int32_t srcLength) const; 539 int32_t srcLength) const; 639 int32_t srcLength, 662 int32_t srcLength, 716 int32_t srcLength, 769 int32_t srcLength) const; [all …]
|
D | ustring.h | 1077 const UChar *src, int32_t srcLength, 1103 const UChar *src, int32_t srcLength, 1149 const UChar *src, int32_t srcLength, 1180 const UChar *src, int32_t srcLength, 1212 int32_t srcLength, 1241 int32_t srcLength, 1272 int32_t srcLength, 1302 int32_t srcLength, 1346 int32_t srcLength, 1392 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, 418 const char *src, int32_t srcLength,
|
/external/icu4c/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/icu4c/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/webkit/Source/JavaScriptCore/wtf/unicode/glib/ |
D | UnicodeGLib.cpp | 69 static int convertCase(UChar* result, int resultLength, const UChar* src, int srcLength, bool* erro… in convertCase() argument 74 Vector<char> buffer(srcLength * 3); in convertCase() 77 …ConversionResult conversionResult = convertUTF16ToUTF8(&utf16Source, utf16Source + srcLength, &utf… in convertCase() 104 int foldCase(UChar* result, int resultLength, const UChar* src, int srcLength, bool* error) in foldCase() argument 106 return convertCase(result, resultLength, src, srcLength, error, g_utf8_casefold); in foldCase() 109 int toLower(UChar* result, int resultLength, const UChar* src, int srcLength, bool* error) in toLower() argument 111 return convertCase(result, resultLength, src, srcLength, error, g_utf8_strdown); in toLower() 114 int toUpper(UChar* result, int resultLength, const UChar* src, int srcLength, bool* error) in toUpper() argument 116 return convertCase(result, resultLength, src, srcLength, error, g_utf8_strup); in toUpper()
|
/external/webkit/Source/WebKit/mac/icu/unicode/ |
D | uidna.h | 116 uidna_toASCII(const UChar* src, int32_t srcLength, 166 uidna_toUnicode(const UChar* src, int32_t srcLength, 216 uidna_IDNToASCII( const UChar* src, int32_t srcLength, 262 uidna_IDNToUnicode( const UChar* src, int32_t srcLength,
|
D | ustring.h | 1053 const UChar *src, int32_t srcLength, 1079 const UChar *src, int32_t srcLength, 1125 const UChar *src, int32_t srcLength, 1156 const UChar *src, int32_t srcLength, 1184 int32_t srcLength, 1210 int32_t srcLength, 1236 int32_t srcLength, 1263 int32_t srcLength, 1290 int32_t srcLength, 1317 int32_t srcLength,
|
/external/webkit/Source/WebCore/icu/unicode/ |
D | uidna.h | 116 uidna_toASCII(const UChar* src, int32_t srcLength, 166 uidna_toUnicode(const UChar* src, int32_t srcLength, 216 uidna_IDNToASCII( const UChar* src, int32_t srcLength, 262 uidna_IDNToUnicode( const UChar* src, int32_t srcLength,
|
D | ustring.h | 1053 const UChar *src, int32_t srcLength, 1079 const UChar *src, int32_t srcLength, 1125 const UChar *src, int32_t srcLength, 1156 const UChar *src, int32_t srcLength, 1184 int32_t srcLength, 1210 int32_t srcLength, 1236 int32_t srcLength, 1263 int32_t srcLength, 1290 int32_t srcLength, 1317 int32_t srcLength,
|
/external/webkit/Source/JavaScriptGlue/icu/unicode/ |
D | ustring.h | 1053 const UChar *src, int32_t srcLength, 1079 const UChar *src, int32_t srcLength, 1125 const UChar *src, int32_t srcLength, 1156 const UChar *src, int32_t srcLength, 1184 int32_t srcLength, 1210 int32_t srcLength, 1236 int32_t srcLength, 1263 int32_t srcLength, 1290 int32_t srcLength, 1317 int32_t srcLength,
|
/external/webkit/Source/JavaScriptCore/icu/unicode/ |
D | ustring.h | 1053 const UChar *src, int32_t srcLength, 1079 const UChar *src, int32_t srcLength, 1125 const UChar *src, int32_t srcLength, 1156 const UChar *src, int32_t srcLength, 1184 int32_t srcLength, 1210 int32_t srcLength, 1236 int32_t srcLength, 1263 int32_t srcLength, 1290 int32_t srcLength, 1317 int32_t srcLength,
|