Home
last modified time | relevance | path

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

1234

/external/icu/icu4c/source/common/
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.cpp302 UChar *dest, int32_t destCapacity, in _getStringOrCopyKey() argument
334 int32_t copyLength=uprv_min(length, destCapacity); in _getStringOrCopyKey()
341 u_charsToUChars(substitute, dest, uprv_min(length, destCapacity)); in _getStringOrCopyKey()
345 return u_terminateUChars(dest, destCapacity, length, pErrorCode); in _getStringOrCopyKey()
353 UChar *dest, int32_t destCapacity, in _getDisplayNameForComponent() argument
367 if(destCapacity<0 || (destCapacity>0 && dest==NULL)) { in _getDisplayNameForComponent()
379 return u_terminateUChars(dest, destCapacity, 0, pErrorCode); in _getDisplayNameForComponent()
387 dest, destCapacity, in _getDisplayNameForComponent()
394 UChar *dest, int32_t destCapacity, in uloc_getDisplayLanguage() argument
396 return _getDisplayNameForComponent(locale, displayLocale, dest, destCapacity, in uloc_getDisplayLanguage()
[all …]
Dustrcase.cpp43 int32_t checkOverflowAndEditsError(int32_t destIndex, int32_t destCapacity, in checkOverflowAndEditsError() argument
46 if (destIndex > destCapacity) { in checkOverflowAndEditsError()
57 appendResult(UChar *dest, int32_t destIndex, int32_t destCapacity, in appendResult() argument
73 if(destIndex<destCapacity && c<=0xffff) { // BMP slightly-fastpath in appendResult()
82 } else if(destIndex<destCapacity && result<=0xffff) { // BMP slightly-fastpath in appendResult()
100 if(destIndex<destCapacity) { in appendResult()
105 U16_APPEND(dest, destIndex, destCapacity, c, isError); in appendResult()
112 if((destIndex+length)<=destCapacity) { in appendResult()
130 appendUChar(UChar *dest, int32_t destIndex, int32_t destCapacity, UChar c) { in appendUChar() argument
131 if(destIndex<destCapacity) { in appendUChar()
[all …]
Dustr_wcs.cpp66 int32_t destCapacity, in _strToWCS() argument
204 if(0 < count && count <= destCapacity){ in _strToWCS()
223 u_terminateWChars(dest,destCapacity,count,pErrorCode); in _strToWCS()
233 int32_t destCapacity, in u_strToWCS() argument
245 (destCapacity<0) || (dest == NULL && destCapacity > 0) in u_strToWCS()
256 if(0 < srcLength && srcLength <= destCapacity){ in u_strToWCS()
263 u_terminateUChars((UChar *)dest,destCapacity,srcLength,pErrorCode); in u_strToWCS()
269 return (wchar_t*)u_strToUTF32((UChar32*)dest, destCapacity, pDestLength, in u_strToWCS()
274 return _strToWCS(dest,destCapacity,pDestLength,src,srcLength, pErrorCode); in u_strToWCS()
284 int32_t destCapacity, in _strFromWCS() argument
[all …]
Dustrtrns.cpp41 int32_t destCapacity, in u_strFromUTF32WithSub() argument
59 (destCapacity<0) || (dest == NULL && destCapacity > 0) || in u_strFromUTF32WithSub()
71 destLimit = (dest!=NULL)?(dest + destCapacity):NULL; in u_strFromUTF32WithSub()
134 u_terminateUChars(dest, destCapacity, reqLength, pErrorCode); in u_strFromUTF32WithSub()
141 int32_t destCapacity, in u_strFromUTF32() argument
147 dest, destCapacity, pDestLength, in u_strFromUTF32()
155 int32_t destCapacity, in u_strToUTF32WithSub() argument
174 (destCapacity<0) || (dest == NULL && destCapacity > 0) || in u_strToUTF32WithSub()
186 destLimit = (dest!=NULL)?(dest + destCapacity):NULL; in u_strToUTF32WithSub()
240 u_terminateUChar32s(dest, destCapacity, reqLength, pErrorCode); in u_strToUTF32WithSub()
[all …]
Dustrcase_locale.cpp45 u_strToLower(UChar *dest, int32_t destCapacity, in u_strToLower() argument
51 dest, destCapacity, in u_strToLower()
57 u_strToUpper(UChar *dest, int32_t destCapacity, in u_strToUpper() argument
63 dest, destCapacity, in u_strToUpper()
73 UChar *dest, int32_t destCapacity, Edits *edits, in toLower() argument
77 dest, destCapacity, in toLower()
85 UChar *dest, int32_t destCapacity, Edits *edits, in toUpper() argument
89 dest, destCapacity, in toUpper()
Duidna.cpp197 UChar* dest, int32_t destCapacity, in _internal_toASCII() argument
320 if(b1Len <= destCapacity){ in _internal_toASCII()
362 if(reqLength > destCapacity){ in _internal_toASCII()
392 return u_terminateUChars(dest, destCapacity, reqLength, status); in _internal_toASCII()
397 UChar* dest, int32_t destCapacity, in _internal_toUnicode() argument
545 if(b2Len <= destCapacity) { in _internal_toUnicode()
574 if(srcLength <= destCapacity){ in _internal_toUnicode()
599 if(dest && srcLength <= destCapacity){ in _internal_toUnicode()
608 return u_terminateUChars(dest, destCapacity, reqLength, status); in _internal_toUnicode()
613 UChar* dest, int32_t destCapacity, in uidna_toASCII() argument
[all …]
Dunistr_cnv.cpp207 UnicodeString::extract(char *dest, int32_t destCapacity, in extract() argument
215 if(isBogus() || destCapacity<0 || (destCapacity>0 && dest==0)) { in extract()
222 return u_terminateChars(dest, destCapacity, 0, &errorCode); in extract()
239 int32_t len=doExtract(0, length(), dest, destCapacity, cnv, errorCode); in extract()
251 char *dest, int32_t destCapacity, in doExtract() argument
256 if(destCapacity!=0) { in doExtract()
266 if(destCapacity==0) { in doExtract()
268 } else if(destCapacity==-1) { in doExtract()
272 destCapacity=0x7fffffff; in doExtract()
274 destLimit=dest+destCapacity; in doExtract()
[all …]
Dpunycode.cpp185 UChar *dest, int32_t destCapacity, in u_strToPunycode() argument
198 if(src==NULL || srcLength<-1 || (dest==NULL && destCapacity!=0)) { in u_strToPunycode()
221 if(destLength<destCapacity) { in u_strToPunycode()
254 if(destLength<destCapacity) { in u_strToPunycode()
281 if(destLength<destCapacity) { in u_strToPunycode()
352 if(destLength<destCapacity) { in u_strToPunycode()
359 if(destLength<destCapacity) { in u_strToPunycode()
373 return u_terminateUChars(dest, destCapacity, destLength, pErrorCode); in u_strToPunycode()
378 UChar *dest, int32_t destCapacity, in u_strFromPunycode() argument
390 if(src==NULL || srcLength<-1 || (dest==NULL && destCapacity!=0)) { in u_strFromPunycode()
[all …]
Ducasemap_imp.h142 UChar *dest, int32_t destCapacity,
150 UChar *dest, int32_t destCapacity,
161 UChar *dest, int32_t destCapacity,
171 UChar *dest, int32_t destCapacity,
182 UChar *dest, int32_t destCapacity,
195 UChar *dest, int32_t destCapacity,
240 char *dest, int32_t destCapacity,
Dustring.cpp1358 static void _appendUChars(UChar *dest, int32_t destCapacity, in _appendUChars() argument
1360 if (destCapacity < 0) { in _appendUChars()
1361 destCapacity = 0; in _appendUChars()
1363 if (srcLen > destCapacity) { in _appendUChars()
1364 srcLen = destCapacity; in _appendUChars()
1371 u_unescape(const char *src, UChar *dest, int32_t destCapacity) { in u_unescape() argument
1385 _appendUChars(dest + i, destCapacity - i, in u_unescape()
1396 if (dest != NULL && U16_LENGTH(c32) <= (destCapacity - i)) { in u_unescape()
1408 _appendUChars(dest + i, destCapacity - i, in u_unescape()
1413 if (dest != NULL && i < destCapacity) { in u_unescape()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dnfsprep.c43 char* dest, int32_t destCapacity, in nfs4_prepare() argument
68 if((src==NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in nfs4_prepare()
119 if(dest!=NULL && reqLength <= destCapacity){ in nfs4_prepare()
134 return u_terminateChars(dest, destCapacity, reqLength, status); in nfs4_prepare()
209 char* dest, int32_t destCapacity, in nfs4_mixed_prepare() argument
226 if((src==NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in nfs4_mixed_prepare()
261 if(dest != NULL && reqLen <= destCapacity){ in nfs4_mixed_prepare()
278 return u_terminateChars(dest, destCapacity, reqLen, status); in nfs4_mixed_prepare()
283 char* dest, int32_t destCapacity, in nfs4_cis_prepare() argument
286 return nfs4_prepare(src, srcLength, dest, destCapacity, NFS4_CIS_PREP, parseError, status); in nfs4_cis_prepare()
[all …]
Dnfsprep.h55 char* dest, int32_t destCapacity,
71 char* dest, int32_t destCapacity,
86 char* dest, int32_t destCapacity,
101 char* dest, int32_t destCapacity,
/external/icu/icu4c/source/i18n/
Duregex.cpp669 int32_t destCapacity, in uregex_group() argument
675 if (destCapacity < 0 || (destCapacity > 0 && dest == NULL)) { in uregex_group()
680 if (destCapacity == 0 || regexp->fText != NULL) { in uregex_group()
698 if (copyLength < destCapacity) { in uregex_group()
700 } else if (copyLength == destCapacity) { in uregex_group()
703 copyLength = destCapacity; in uregex_group()
723 …_t length = utext_extract(regexp->fMatcher->inputText(), start, limit, dest, destCapacity, status); in uregex_group()
1155 int32_t destCapacity, in uregex_replaceAll() argument
1162 (destBuf == NULL && destCapacity > 0) || in uregex_replaceAll()
1163 destCapacity < 0) { in uregex_replaceAll()
[all …]
/external/icu/icu4c/source/tools/toolutil/
Duparse.cpp190 uint32_t *dest, int32_t destCapacity, in u_parseCodePoints() argument
199 if(s==NULL || destCapacity<0 || (destCapacity>0 && dest==NULL)) { in u_parseCodePoints()
219 if(count<destCapacity) { in u_parseCodePoints()
238 UChar *dest, int32_t destCapacity, in u_parseString() argument
248 if(s==NULL || destCapacity<0 || (destCapacity>0 && dest==NULL)) { in u_parseString()
261 if(destLength<destCapacity) { in u_parseString()
263 } else if(destLength==destCapacity) { in u_parseString()
285 if((destLength+U16_LENGTH(value))<=destCapacity) { in u_parseString()
366 u_parseUTF8(const char *source, int32_t sLen, char *dest, int32_t destCapacity, UErrorCode *status)… in u_parseUTF8() argument
376 if(i < destCapacity) { in u_parseUTF8()
[all …]
/external/icu/icu4c/source/test/intltest/
Didnaref.cpp132 UChar* dest, int32_t destCapacity, in convertToPuny() argument
183 if(b2Len < destCapacity){ in convertToPuny()
202 UChar* dest, int32_t destCapacity, in convertFromPuny() argument
230 u_strFromUTF32(dest,destCapacity,&destLen,(UChar32*)b2,b2Len,&status); in convertFromPuny()
247 UChar* dest, int32_t destCapacity, in idnaref_toASCII() argument
255 if((src == NULL) || (srcLength < -1) || (destCapacity<0) || (!dest && destCapacity > 0)){ in idnaref_toASCII()
343 if(b1Len <= destCapacity){ in idnaref_toASCII()
380 if(reqLength > destCapacity){ in idnaref_toASCII()
410 return u_terminateUChars(dest, destCapacity, reqLength, status); in idnaref_toASCII()
416 UChar* dest, int32_t destCapacity, in idnaref_toUnicode() argument
[all …]
Dnptrans.cpp142 UChar* dest, int32_t destCapacity, in map() argument
151 if(src==NULL || srcLength<-1 || (dest==NULL && destCapacity!=0)) { in map()
176 if(bufLen < destCapacity){ in map()
180 return u_terminateUChars(dest, destCapacity, bufLen, &status); in map()
187 UChar* dest, int32_t destCapacity, in process() argument
197 if(src==NULL || srcLength<-1 || (dest==NULL && destCapacity!=0)) { in process()
268 if(b1Len <= destCapacity){ in process()
273 return u_terminateUChars(dest, destCapacity, b1Len, &status); in process()
Didnaref.h65 UChar* dest, int32_t destCapacity,
103 UChar* dest, int32_t destCapacity,
146 UChar* dest, int32_t destCapacity,
185 UChar* dest, int32_t destCapacity,
/external/icu/libandroidicu/include/unicode/
Dustring.h997 UChar *dest, int32_t destCapacity);
1070 u_strToUpper(UChar *dest, int32_t destCapacity,
1096 u_strToLower(UChar *dest, int32_t destCapacity,
1142 u_strToTitle(UChar *dest, int32_t destCapacity,
1175 u_strFoldCase(UChar *dest, int32_t destCapacity,
1205 int32_t destCapacity,
1234 int32_t destCapacity,
1265 int32_t destCapacity,
1295 int32_t destCapacity,
1338 int32_t destCapacity,
[all …]
Ducasemap.h231 UChar *dest, int32_t destCapacity,
262 char *dest, int32_t destCapacity,
291 char *dest, int32_t destCapacity,
343 char *dest, int32_t destCapacity,
381 char *dest, int32_t destCapacity,
/external/icu/icu4c/source/common/unicode/
Dustring.h997 UChar *dest, int32_t destCapacity);
1070 u_strToUpper(UChar *dest, int32_t destCapacity,
1096 u_strToLower(UChar *dest, int32_t destCapacity,
1142 u_strToTitle(UChar *dest, int32_t destCapacity,
1175 u_strFoldCase(UChar *dest, int32_t destCapacity,
1205 int32_t destCapacity,
1234 int32_t destCapacity,
1265 int32_t destCapacity,
1295 int32_t destCapacity,
1338 int32_t destCapacity,
[all …]
Dcasemap.h65 char16_t *dest, int32_t destCapacity, Edits *edits,
101 char16_t *dest, int32_t destCapacity, Edits *edits,
152 char16_t *dest, int32_t destCapacity, Edits *edits,
194 char16_t *dest, int32_t destCapacity, Edits *edits,
353 char *dest, int32_t destCapacity, Edits *edits,
389 char *dest, int32_t destCapacity, Edits *edits,
439 char *dest, int32_t destCapacity, Edits *edits,
481 char *dest, int32_t destCapacity, Edits *edits,
Ducasemap.h231 UChar *dest, int32_t destCapacity,
262 char *dest, int32_t destCapacity,
291 char *dest, int32_t destCapacity,
343 char *dest, int32_t destCapacity,
381 char *dest, int32_t destCapacity,
/external/icu/icu4c/source/tools/genrb/
Dprscmnts.cpp88 UChar** dest, int32_t destCapacity, in getText() argument
114 return out.extract(*dest, destCapacity,*status); in getText()
125 UChar** dest, int32_t destCapacity, in getDescription() argument
141 int32_t destLen = stringArray[0].extract(*dest, destCapacity, *status); in getDescription()
186 UChar** dest, int32_t destCapacity, in getAt() argument
216 return out.extract(*dest, destCapacity,*status); in getAt()
228 UChar** dest, int32_t destCapacity, in getTranslate() argument
232 int32_t destLen = getText(source, srcLen, dest, destCapacity, notePatternString, status); in getTranslate()
238 UChar** dest, int32_t destCapacity, in getNote() argument
242 int32_t destLen = getText(source, srcLen, dest, destCapacity, notePatternString, status); in getNote()
Dprscmnts.h38 UChar** dest, int32_t destCapacity,
45 UChar** dest, int32_t destCapacity,
49 UChar** dest, int32_t destCapacity,
54 UChar** dest, int32_t destCapacity,

1234