Home
last modified time | relevance | path

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

1234

/external/icu/icu4c/source/common/
Ducasemap.cpp124 appendResult(uint8_t *dest, int32_t destIndex, int32_t destCapacity, in appendResult() argument
146 if(destIndex<destCapacity) { in appendResult()
151 U8_APPEND(dest, destIndex, destCapacity, c, isError); in appendResult()
161 (char *)(dest+destIndex), destCapacity-destIndex, &destLength, in appendResult()
197 appendUChar(uint8_t *dest, int32_t destIndex, int32_t destCapacity, UChar c) { in appendUChar() argument
203 if(limit<=destCapacity) { in appendUChar()
210 appendString(uint8_t *dest, int32_t destIndex, int32_t destCapacity, in appendString() argument
216 if((destIndex+length)<=destCapacity) { in appendString()
262 uint8_t *dest, int32_t destCapacity, in _caseMap() argument
282 … destIndex=appendString(dest, destIndex, destCapacity, src+csc->cpStart, srcIndex-csc->cpStart); in _caseMap()
[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.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 …]
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 …]
Dustr_imp.h143 UChar *dest, int32_t destCapacity,
152 UChar *dest, int32_t destCapacity,
159 UChar *dest, int32_t destCapacity,
168 UChar *dest, int32_t destCapacity,
177 UChar *dest, int32_t destCapacity,
187 UChar *dest, int32_t destCapacity,
201 uint8_t *dest, int32_t destCapacity,
208 uint8_t *dest, int32_t destCapacity,
218 uint8_t *dest, int32_t destCapacity,
283 u_terminateUChars(UChar *dest, int32_t destCapacity, int32_t length, UErrorCode *pErrorCode);
[all …]
Dustrcase.cpp41 appendResult(UChar *dest, int32_t destIndex, int32_t destCapacity, in appendResult() argument
62 if(destIndex<destCapacity) { in appendResult()
67 U16_APPEND(dest, destIndex, destCapacity, c, isError); in appendResult()
74 if((destIndex+length)<=destCapacity) { in appendResult()
92 appendUChar(UChar *dest, int32_t destIndex, int32_t destCapacity, UChar c) { in appendUChar() argument
93 if(destIndex<destCapacity) { in appendUChar()
102 appendString(UChar *dest, int32_t destIndex, int32_t destCapacity, in appendString() argument
108 if((destIndex+length)<=destCapacity) { in appendString()
154 UChar *dest, int32_t destCapacity, in _caseMap() argument
173 …if((destIndex<destCapacity) && (c<0 ? (c2=~c)<=0xffff : UCASE_MAX_STRING_LENGTH<c && (c2=c)<=0xfff… in _caseMap()
[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 …]
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 …]
Dustrcase_locale.cpp87 u_strToLower(UChar *dest, int32_t destCapacity, in u_strToLower() argument
95 dest, destCapacity, in u_strToLower()
101 u_strToUpper(UChar *dest, int32_t destCapacity, in u_strToUpper() argument
109 dest, destCapacity, in u_strToUpper()
Dustr_titlecase_brkiter.cpp53 u_strToTitle(UChar *dest, int32_t destCapacity, in u_strToTitle() argument
67 dest, destCapacity, in u_strToTitle()
78 UChar *dest, int32_t destCapacity, in ucasemap_toTitle() argument
88 dest, destCapacity, in ucasemap_toTitle()
Dustring.cpp1357 static void _appendUChars(UChar *dest, int32_t destCapacity, in _appendUChars() argument
1359 if (destCapacity < 0) { in _appendUChars()
1360 destCapacity = 0; in _appendUChars()
1362 if (srcLen > destCapacity) { in _appendUChars()
1363 srcLen = destCapacity; in _appendUChars()
1370 u_unescape(const char *src, UChar *dest, int32_t destCapacity) { in u_unescape() argument
1384 _appendUChars(dest + i, destCapacity - i, in u_unescape()
1395 if (dest != NULL && U16_LENGTH(c32) <= (destCapacity - i)) { in u_unescape()
1407 _appendUChars(dest + i, destCapacity - i, in u_unescape()
1412 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.c190 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 …]
Duparse.h99 uint32_t *dest, int32_t destCapacity,
119 UChar *dest, int32_t destCapacity,
149 u_parseUTF8(const char *source, int32_t sLen, char *dest, int32_t destCapacity, UErrorCode *status);
/external/icu/icu4c/source/common/unicode/
Dustring.h1010 UChar *dest, int32_t destCapacity);
1083 u_strToUpper(UChar *dest, int32_t destCapacity,
1109 u_strToLower(UChar *dest, int32_t destCapacity,
1155 u_strToTitle(UChar *dest, int32_t destCapacity,
1188 u_strFoldCase(UChar *dest, int32_t destCapacity,
1218 int32_t destCapacity,
1247 int32_t destCapacity,
1278 int32_t destCapacity,
1308 int32_t destCapacity,
1351 int32_t destCapacity,
[all …]
Ducasemap.h271 UChar *dest, int32_t destCapacity,
302 char *dest, int32_t destCapacity,
331 char *dest, int32_t destCapacity,
383 char *dest, int32_t destCapacity,
421 char *dest, int32_t destCapacity,
/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/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