Home
last modified time | relevance | path

Searched refs:destCapacity (Results 1 – 25 of 100) sorted by relevance

1234

/external/icu4c/common/
Ducasemap.cpp122 appendResult(uint8_t *dest, int32_t destIndex, int32_t destCapacity, in appendResult() argument
141 if(destIndex<destCapacity) { in appendResult()
146 U8_APPEND(dest, destIndex, destCapacity, c, isError); in appendResult()
155 (char *)(dest+destIndex), destCapacity-destIndex, &destLength, in appendResult()
215 uint8_t *dest, int32_t destCapacity, in _caseMap() argument
235 while(destIndex<destCapacity && i<srcIndex) { in _caseMap()
241 …if((destIndex<destCapacity) && (c<0 ? (c2=~c)<=0x7f : UCASE_MAX_STRING_LENGTH<c && (c2=c)<=0x7f)) { in _caseMap()
245 destIndex=appendResult(dest, destIndex, destCapacity, c, s); in _caseMap()
249 if(destIndex>destCapacity) { in _caseMap()
259 uint8_t *dest, int32_t destCapacity, in ucasemap_internalUTF8ToTitle() argument
[all …]
Dunorm.cpp99 UChar *dest, int32_t destCapacity, in unorm_normalize() argument
106 src, srcLength, dest, destCapacity, pErrorCode); in unorm_normalize()
109 src, srcLength, dest, destCapacity, pErrorCode); in unorm_normalize()
118 UChar *dest, int32_t destCapacity, in _iterate() argument
125 if(destCapacity<0 || (dest==NULL && destCapacity>0) || src==NULL) { in _iterate()
134 return u_terminateUChars(dest, destCapacity, 0, pErrorCode); in _iterate()
163 UnicodeString destString(dest, 0, destCapacity); in _iterate()
165 n2->normalize(buffer, destString, *pErrorCode).extract(dest, destCapacity, *pErrorCode); in _iterate()
172 return buffer.extract(dest, destCapacity, *pErrorCode); in _iterate()
178 UChar *dest, int32_t destCapacity, in unorm_iterate() argument
[all …]
Dlocdispnames.cpp300 UChar *dest, int32_t destCapacity, in _getStringOrCopyKey() argument
332 int32_t copyLength=uprv_min(length, destCapacity); in _getStringOrCopyKey()
339 u_charsToUChars(substitute, dest, uprv_min(length, destCapacity)); in _getStringOrCopyKey()
343 return u_terminateUChars(dest, destCapacity, length, pErrorCode); in _getStringOrCopyKey()
351 UChar *dest, int32_t destCapacity, in _getDisplayNameForComponent() argument
365 if(destCapacity<0 || (destCapacity>0 && dest==NULL)) { in _getDisplayNameForComponent()
377 return u_terminateUChars(dest, destCapacity, 0, pErrorCode); in _getDisplayNameForComponent()
385 dest, destCapacity, in _getDisplayNameForComponent()
392 UChar *dest, int32_t destCapacity, in uloc_getDisplayLanguage() argument
394 return _getDisplayNameForComponent(locale, displayLocale, dest, destCapacity, in uloc_getDisplayLanguage()
[all …]
Dustrcase.cpp40 appendResult(UChar *dest, int32_t destIndex, int32_t destCapacity, in appendResult() argument
58 if(destIndex<destCapacity) { in appendResult()
63 U16_APPEND(dest, destIndex, destCapacity, c, isError); in appendResult()
70 if((destIndex+length)<=destCapacity) { in appendResult()
129 UChar *dest, int32_t destCapacity, in _caseMap() argument
148 …if((destIndex<destCapacity) && (c<0 ? (c2=~c)<=0xffff : UCASE_MAX_STRING_LENGTH<c && (c2=c)<=0xfff… in _caseMap()
152 destIndex=appendResult(dest, destIndex, destCapacity, c, s); in _caseMap()
156 if(destIndex>destCapacity) { in _caseMap()
166 UChar *dest, int32_t destCapacity, in ustrcase_internalToTitle() argument
239 if((destIndex+length)<=destCapacity) { in ustrcase_internalToTitle()
[all …]
Dustr_imp.h122 UChar *dest, int32_t destCapacity,
131 UChar *dest, int32_t destCapacity,
138 UChar *dest, int32_t destCapacity,
147 UChar *dest, int32_t destCapacity,
156 UChar *dest, int32_t destCapacity,
166 UChar *dest, int32_t destCapacity,
180 uint8_t *dest, int32_t destCapacity,
187 uint8_t *dest, int32_t destCapacity,
197 uint8_t *dest, int32_t destCapacity,
224 u_terminateUChars(UChar *dest, int32_t destCapacity, int32_t length, UErrorCode *pErrorCode);
[all …]
Dustr_wcs.cpp64 int32_t destCapacity, in _strToWCS() argument
202 if(0 < count && count <= destCapacity){ in _strToWCS()
221 u_terminateWChars(dest,destCapacity,count,pErrorCode); in _strToWCS()
231 int32_t destCapacity, in u_strToWCS() argument
243 (destCapacity<0) || (dest == NULL && destCapacity > 0) in u_strToWCS()
254 if(0 < srcLength && srcLength <= destCapacity){ in u_strToWCS()
261 u_terminateUChars(dest,destCapacity,srcLength,pErrorCode); in u_strToWCS()
267 return (wchar_t*)u_strToUTF32((UChar32*)dest, destCapacity, pDestLength, in u_strToWCS()
272 return _strToWCS(dest,destCapacity,pDestLength,src,srcLength, pErrorCode); in u_strToWCS()
282 int32_t destCapacity, in _strFromWCS() argument
[all …]
Dustrtrns.cpp39 int32_t destCapacity, in u_strFromUTF32WithSub() argument
57 (destCapacity<0) || (dest == NULL && destCapacity > 0) || in u_strFromUTF32WithSub()
69 destLimit = (dest!=NULL)?(dest + destCapacity):NULL; in u_strFromUTF32WithSub()
132 u_terminateUChars(dest, destCapacity, reqLength, pErrorCode); in u_strFromUTF32WithSub()
139 int32_t destCapacity, in u_strFromUTF32() argument
145 dest, destCapacity, pDestLength, in u_strFromUTF32()
153 int32_t destCapacity, in u_strToUTF32WithSub() argument
172 (destCapacity<0) || (dest == NULL && destCapacity > 0) || in u_strToUTF32WithSub()
184 destLimit = (dest!=NULL)?(dest + destCapacity):NULL; in u_strToUTF32WithSub()
238 u_terminateUChar32s(dest, destCapacity, reqLength, pErrorCode); in u_strToUTF32WithSub()
[all …]
Duidna.cpp195 UChar* dest, int32_t destCapacity, in _internal_toASCII() argument
318 if(b1Len <= destCapacity){ in _internal_toASCII()
360 if(reqLength > destCapacity){ in _internal_toASCII()
390 return u_terminateUChars(dest, destCapacity, reqLength, status); in _internal_toASCII()
395 UChar* dest, int32_t destCapacity, in _internal_toUnicode() argument
544 if(b2Len <= destCapacity) { in _internal_toUnicode()
573 if(srcLength <= destCapacity){ in _internal_toUnicode()
598 if(dest && srcLength <= destCapacity){ in _internal_toUnicode()
607 return u_terminateUChars(dest, destCapacity, reqLength, status); in _internal_toUnicode()
612 UChar* dest, int32_t destCapacity, in uidna_toASCII() argument
[all …]
Dunistr_cnv.cpp215 UnicodeString::extract(char *dest, int32_t destCapacity, in extract() argument
223 if(isBogus() || destCapacity<0 || (destCapacity>0 && dest==0)) { in extract()
230 return u_terminateChars(dest, destCapacity, 0, &errorCode); in extract()
247 int32_t len=doExtract(0, length(), dest, destCapacity, cnv, errorCode); in extract()
259 char *dest, int32_t destCapacity, in doExtract() argument
264 if(destCapacity!=0) { in doExtract()
274 if(destCapacity==0) { in doExtract()
276 } else if(destCapacity==-1) { in doExtract()
280 destCapacity=0x7fffffff; in doExtract()
282 destLimit=dest+destCapacity; in doExtract()
[all …]
Dpunycode.cpp183 UChar *dest, int32_t destCapacity, in u_strToPunycode() argument
196 if(src==NULL || srcLength<-1 || (dest==NULL && destCapacity!=0)) { in u_strToPunycode()
219 if(destLength<destCapacity) { in u_strToPunycode()
252 if(destLength<destCapacity) { in u_strToPunycode()
279 if(destLength<destCapacity) { in u_strToPunycode()
350 if(destLength<destCapacity) { in u_strToPunycode()
357 if(destLength<destCapacity) { in u_strToPunycode()
371 return u_terminateUChars(dest, destCapacity, destLength, pErrorCode); in u_strToPunycode()
376 UChar *dest, int32_t destCapacity, in u_strFromPunycode() argument
388 if(src==NULL || srcLength<-1 || (dest==NULL && destCapacity!=0)) { in u_strFromPunycode()
[all …]
/external/icu4c/test/cintltst/
Dnfsprep.c41 char* dest, int32_t destCapacity, in nfs4_prepare() argument
66 if((src==NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in nfs4_prepare()
117 if(dest!=NULL && reqLength <= destCapacity){ in nfs4_prepare()
132 return u_terminateChars(dest, destCapacity, reqLength, status); in nfs4_prepare()
207 char* dest, int32_t destCapacity, in nfs4_mixed_prepare() argument
224 if((src==NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in nfs4_mixed_prepare()
259 if(dest != NULL && reqLen <= destCapacity){ in nfs4_mixed_prepare()
276 return u_terminateChars(dest, destCapacity, reqLen, status); in nfs4_mixed_prepare()
281 char* dest, int32_t destCapacity, in nfs4_cis_prepare() argument
284 return nfs4_prepare(src, srcLength, dest, destCapacity, NFS4_CIS_PREP, parseError, status); in nfs4_cis_prepare()
[all …]
Dnfsprep.h53 char* dest, int32_t destCapacity,
69 char* dest, int32_t destCapacity,
84 char* dest, int32_t destCapacity,
99 char* dest, int32_t destCapacity,
/external/icu4c/i18n/
Duregex.cpp637 int32_t destCapacity, in uregex_group() argument
643 if (destCapacity < 0 || (destCapacity > 0 && dest == NULL)) { in uregex_group()
648 if (destCapacity == 0 || regexp->fText != NULL) { in uregex_group()
666 if (copyLength < destCapacity) { in uregex_group()
668 } else if (copyLength == destCapacity) { in uregex_group()
671 copyLength = destCapacity; in uregex_group()
684 …_t result = utext_extract(groupText, 0, utext_nativeLength(groupText), dest, destCapacity, status); in uregex_group()
1159 int32_t destCapacity, in uregex_replaceAll() argument
1166 (destBuf == NULL && destCapacity > 0) || in uregex_replaceAll()
1167 destCapacity < 0) { in uregex_replaceAll()
[all …]
/external/icu4c/tools/toolutil/
Duparse.c188 uint32_t *dest, int32_t destCapacity, in u_parseCodePoints() argument
197 if(s==NULL || destCapacity<0 || (destCapacity>0 && dest==NULL)) { in u_parseCodePoints()
217 if(count<destCapacity) { in u_parseCodePoints()
236 UChar *dest, int32_t destCapacity, in u_parseString() argument
246 if(s==NULL || destCapacity<0 || (destCapacity>0 && dest==NULL)) { in u_parseString()
259 if(destLength<destCapacity) { in u_parseString()
261 } else if(destLength==destCapacity) { in u_parseString()
283 if((destLength+U16_LENGTH(value))<=destCapacity) { in u_parseString()
364 u_parseUTF8(const char *source, int32_t sLen, char *dest, int32_t destCapacity, UErrorCode *status)… in u_parseUTF8() argument
374 if(i < destCapacity) { in u_parseUTF8()
[all …]
/external/icu4c/common/unicode/
Dustring.h1008 UChar *dest, int32_t destCapacity);
1081 u_strToUpper(UChar *dest, int32_t destCapacity,
1107 u_strToLower(UChar *dest, int32_t destCapacity,
1153 u_strToTitle(UChar *dest, int32_t destCapacity,
1186 u_strFoldCase(UChar *dest, int32_t destCapacity,
1216 int32_t destCapacity,
1245 int32_t destCapacity,
1276 int32_t destCapacity,
1306 int32_t destCapacity,
1350 int32_t destCapacity,
[all …]
Ducasemap.h269 UChar *dest, int32_t destCapacity,
300 char *dest, int32_t destCapacity,
329 char *dest, int32_t destCapacity,
381 char *dest, int32_t destCapacity,
419 char *dest, int32_t destCapacity,
/external/icu4c/test/intltest/
Didnaref.cpp130 UChar* dest, int32_t destCapacity, in convertToPuny() argument
181 if(b2Len < destCapacity){ in convertToPuny()
200 UChar* dest, int32_t destCapacity, in convertFromPuny() argument
228 u_strFromUTF32(dest,destCapacity,&destLen,(UChar32*)b2,b2Len,&status); in convertFromPuny()
245 UChar* dest, int32_t destCapacity, in idnaref_toASCII() argument
253 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in idnaref_toASCII()
341 if(b1Len <= destCapacity){ in idnaref_toASCII()
378 if(reqLength > destCapacity){ in idnaref_toASCII()
408 return u_terminateUChars(dest, destCapacity, reqLength, status); in idnaref_toASCII()
414 UChar* dest, int32_t destCapacity, in idnaref_toUnicode() argument
[all …]
/external/icu4c/tools/genrb/
Dprscmnts.cpp76 UChar** dest, int32_t destCapacity, in getText() argument
102 return out.extract(*dest, destCapacity,*status); in getText()
113 UChar** dest, int32_t destCapacity, in getDescription() argument
129 int32_t destLen = stringArray[0].extract(*dest, destCapacity, *status); in getDescription()
173 UChar** dest, int32_t destCapacity, in getAt() argument
202 return out.extract(*dest, destCapacity,*status); in getAt()
214 UChar** dest, int32_t destCapacity, in getTranslate() argument
218 int32_t destLen = getText(source, srcLen, dest, destCapacity, notePatternString, status); in getTranslate()
224 UChar** dest, int32_t destCapacity, in getNote() argument
228 int32_t destLen = getText(source, srcLen, dest, destCapacity, notePatternString, status); in getNote()
Dprscmnts.h34 UChar** dest, int32_t destCapacity,
41 UChar** dest, int32_t destCapacity,
45 UChar** dest, int32_t destCapacity,
50 UChar** dest, int32_t destCapacity,
/external/webkit/Source/JavaScriptCore/icu/unicode/
Dustring.h979 UChar *dest, int32_t destCapacity);
1052 u_strToUpper(UChar *dest, int32_t destCapacity,
1078 u_strToLower(UChar *dest, int32_t destCapacity,
1124 u_strToTitle(UChar *dest, int32_t destCapacity,
1155 u_strFoldCase(UChar *dest, int32_t destCapacity,
1181 int32_t destCapacity,
1207 int32_t destCapacity,
1233 int32_t destCapacity,
1260 int32_t destCapacity,
1287 int32_t destCapacity,
[all …]
/external/webkit/Source/JavaScriptGlue/icu/unicode/
Dustring.h979 UChar *dest, int32_t destCapacity);
1052 u_strToUpper(UChar *dest, int32_t destCapacity,
1078 u_strToLower(UChar *dest, int32_t destCapacity,
1124 u_strToTitle(UChar *dest, int32_t destCapacity,
1155 u_strFoldCase(UChar *dest, int32_t destCapacity,
1181 int32_t destCapacity,
1207 int32_t destCapacity,
1233 int32_t destCapacity,
1260 int32_t destCapacity,
1287 int32_t destCapacity,
[all …]
/external/webkit/Source/WebCore/icu/unicode/
Dustring.h979 UChar *dest, int32_t destCapacity);
1052 u_strToUpper(UChar *dest, int32_t destCapacity,
1078 u_strToLower(UChar *dest, int32_t destCapacity,
1124 u_strToTitle(UChar *dest, int32_t destCapacity,
1155 u_strFoldCase(UChar *dest, int32_t destCapacity,
1181 int32_t destCapacity,
1207 int32_t destCapacity,
1233 int32_t destCapacity,
1260 int32_t destCapacity,
1287 int32_t destCapacity,
[all …]
Duidna.h117 UChar* dest, int32_t destCapacity,
167 UChar* dest, int32_t destCapacity,
217 UChar* dest, int32_t destCapacity,
263 UChar* dest, int32_t destCapacity,
/external/webkit/Source/WebKit/mac/icu/unicode/
Dustring.h979 UChar *dest, int32_t destCapacity);
1052 u_strToUpper(UChar *dest, int32_t destCapacity,
1078 u_strToLower(UChar *dest, int32_t destCapacity,
1124 u_strToTitle(UChar *dest, int32_t destCapacity,
1155 u_strFoldCase(UChar *dest, int32_t destCapacity,
1181 int32_t destCapacity,
1207 int32_t destCapacity,
1233 int32_t destCapacity,
1260 int32_t destCapacity,
1287 int32_t destCapacity,
[all …]
/external/webkit/Source/WebCore/platform/text/mac/
DShapeArabic.c477 int32_t shapeArabic(const UChar *source, int32_t sourceLength, UChar *dest, int32_t destCapacity, u… in shapeArabic() argument
487 (dest==NULL && destCapacity!=0) || destCapacity<0 || in shapeArabic()
506 (dest<=source && source<dest+destCapacity)) in shapeArabic()
519 if(outputSize>destCapacity) { in shapeArabic()
532 destLength = shapeUnicode(dest,sourceLength,destCapacity,1); in shapeArabic()
536 destLength = shapeUnicode(dest,sourceLength,destCapacity,0); in shapeArabic()

1234