Home
last modified time | relevance | path

Searched refs:srcLength (Results 1 – 25 of 79) sorted by relevance

1234

/external/icu/icu4c/source/common/
Dubidiwrt.cpp59 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 …]
Dustr_wcs.cpp69 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 …]
Dustrtrns.cpp44 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 …]
Duidna.cpp59 startsWithPrefix(const UChar* src , int32_t srcLength){ in startsWithPrefix() argument
62 if(srcLength < ACE_PREFIX_LENGTH){ in startsWithPrefix()
147 getNextSeparator(UChar *src, int32_t srcLength, in getNextSeparator() argument
149 if(srcLength == -1){ in getNextSeparator()
165 for(i=0;i<srcLength;i++){ in getNextSeparator()
173 *limit = src+srcLength; in getNextSeparator()
196 _internal_toASCII(const UChar* src, int32_t srcLength, in _internal_toASCII() argument
228 if(srcLength == -1){ in _internal_toASCII()
229 srcLength = u_strlen(src); in _internal_toASCII()
232 if(srcLength > b1Capacity){ in _internal_toASCII()
[all …]
Ducasemap.cpp316 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 …]
Dustrcase_locale.cpp46 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()
Dubiditransform.cpp83 …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 …]
Dunistr.cpp324 int32_t srcLength) { in UnicodeString() argument
326 setTo(that, srcStart, srcLength); in UnicodeString()
554 int32_t srcLength = src.length(); in copyFrom() local
555 if(allocate(srcLength)) { in copyFrom()
556 u_memcpy(getArrayStart(), src.getArrayStart(), srcLength); in copyFrom()
557 setLength(srcLength); in copyFrom()
670 int32_t srcLength) const in doCompare()
695 if(srcLength < 0) { in doCompare()
696 srcLength = u_strlen(srcChars + srcStart); in doCompare()
700 if(length != srcLength) { in doCompare()
[all …]
Dustr_titlecase_brkiter.cpp176 const UChar *src, int32_t srcLength, in toTitle() argument
184 UnicodeString s(srcLength<0, src, srcLength); in toTitle()
189 src, srcLength, in toTitle()
199 const UChar *src, int32_t srcLength, in u_strToTitle() argument
210 UnicodeString s(srcLength<0, src, srcLength); in u_strToTitle()
215 src, srcLength, in u_strToTitle()
222 const UChar *src, int32_t srcLength, in ucasemap_toTitle() argument
236 UnicodeString s(srcLength<0, src, srcLength); in ucasemap_toTitle()
241 src, srcLength, in ucasemap_toTitle()
Dunorm.cpp48 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 …]
Ducasemap_imp.h143 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,
Dustrcase.cpp302 const UChar *src, UCaseContext *csc, int32_t srcLength, in toUpper() argument
317 while (srcIndex < srcLength) { in toUpper()
351 if (srcIndex >= srcLength) { in toUpper()
359 if (U16_IS_LEAD(lead) && srcIndex < srcLength && U16_IS_TRAIL(trail = src[srcIndex])) { in toUpper()
402 const UChar *src, int32_t srcLength, in ustrcase_internalToTitle() argument
412 csc.limit=srcLength; in ustrcase_internalToTitle()
418 while(prev<srcLength) { in ustrcase_internalToTitle()
427 if(index==UBRK_DONE || index>srcLength) { in ustrcase_internalToTitle()
428 index=srcLength; in ustrcase_internalToTitle()
1024 const UChar *src, int32_t srcLength, in toUpper() argument
[all …]
Dpunycode.cpp184 u_strToPunycode(const UChar *src, int32_t srcLength, in u_strToPunycode() argument
198 if(src==NULL || srcLength<-1 || (dest==NULL && destCapacity!=0)) { in u_strToPunycode()
208 if(srcLength==-1) { in u_strToPunycode()
245 for(j=0; j<srcLength; ++j) { in u_strToPunycode()
265 } else if(U16_IS_LEAD(c) && (j+1)<srcLength && U16_IS_TRAIL(c2=src[j+1])) { in u_strToPunycode()
377 u_strFromPunycode(const UChar *src, int32_t srcLength, in u_strFromPunycode() argument
390 if(src==NULL || srcLength<-1 || (dest==NULL && destCapacity!=0)) { in u_strFromPunycode()
395 if(srcLength==-1) { in u_strFromPunycode()
396 srcLength=u_strlen(src); in u_strFromPunycode()
407 for(j=srcLength; j>0;) { in u_strFromPunycode()
[all …]
Ducasemap_titlecase_brkiter.cpp59 const char *src, int32_t srcLength, in utf8ToTitle() argument
66 utext_openUTF8(&utext, src, srcLength, &errorCode); in utf8ToTitle()
77 src, srcLength, in utf8ToTitle()
104 const char *src, int32_t srcLength, in ucasemap_utf8ToTitle() argument
110 utext_openUTF8(&utext, (const char *)src, srcLength, pErrorCode); in ucasemap_utf8ToTitle()
128 src, srcLength, in ucasemap_utf8ToTitle()
Dunistr_case.cpp46 int32_t srcLength, in doCaseCompare() argument
59 srcStart = srcLength = 0; in doCaseCompare()
72 int32_t result=u_strcmpFold(chars, length, srcChars, srcLength, in doCaseCompare()
79 if(srcLength < 0) { in doCaseCompare()
80 srcLength = u_strlen(srcChars + srcStart); in doCaseCompare()
82 if(length != srcLength) { in doCaseCompare()
83 return (int8_t)((length - srcLength) >> 24 | 1); in doCaseCompare()
/external/icu/icu4c/source/common/unicode/
Dunistr.h71 const char16_t *src, int32_t srcLength,
422 int32_t srcLength) const;
437 int32_t srcLength) const;
478 int32_t srcLength) const;
570 int32_t srcLength) const;
591 int32_t srcLength) const;
641 int32_t srcLength) const;
741 int32_t srcLength,
764 int32_t srcLength,
818 int32_t srcLength,
[all …]
Dustring.h1071 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 …]
Dcasemap.h64 const char16_t *src, int32_t srcLength,
100 const char16_t *src, int32_t srcLength,
151 const char16_t *src, int32_t srcLength,
193 const char16_t *src, int32_t srcLength,
352 const char *src, int32_t srcLength,
388 const char *src, int32_t srcLength,
438 const char *src, int32_t srcLength,
480 const char *src, int32_t srcLength,
Ducasemap.h232 const UChar *src, int32_t srcLength,
263 const char *src, int32_t srcLength,
292 const char *src, int32_t srcLength,
344 const char *src, int32_t srcLength,
382 const char *src, int32_t srcLength,
/external/icu/icu4c/source/test/intltest/
Didnaref.cpp49 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()
201 static int32_t convertFromPuny( const UChar* src, int32_t srcLength, in convertFromPuny() argument
208 convertUCharsToASCII(src, b1,srcLength); in convertFromPuny()
214 punycode_status error = punycode_decode(srcLength,b1,(uint32_t*)&b2Len,b2,caseFlags); in convertFromPuny()
222 error = punycode_decode(srcLength,b1,(uint32_t*)&b2Len,b2,caseFlags); in convertFromPuny()
246 idnaref_toASCII(const UChar* src, int32_t srcLength, in idnaref_toASCII() argument
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DBidiWriter.java139 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/
DBidiWriter.java138 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/
Dnfsprep.c42 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/
Dustring.h1071 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 …]
Ducasemap.h232 const UChar *src, int32_t srcLength,
263 const char *src, int32_t srcLength,
292 const char *src, int32_t srcLength,
344 const char *src, int32_t srcLength,
382 const char *src, int32_t srcLength,

1234