Lines Matching defs:destCapacity
1348 static void _appendUChars(UChar *dest, int32_t destCapacity,
1350 if (destCapacity < 0) {
1351 destCapacity = 0;
1353 if (srcLen > destCapacity) {
1354 srcLen = destCapacity;
1361 u_unescape(const char *src, UChar *dest, int32_t destCapacity) {
1375 _appendUChars(dest + i, destCapacity - i,
1386 if (dest != NULL && UTF_CHAR_LENGTH(c32) <= (destCapacity - i)) {
1398 _appendUChars(dest + i, destCapacity - i,
1403 if (dest != NULL && i < destCapacity) {
1409 if (dest != NULL && destCapacity > 0) {
1421 #define __TERMINATE_STRING(dest, destCapacity, length, pErrorCode) \
1427 } else if(length<destCapacity) { \
1434 } else if(length==destCapacity) { \
1437 } else /* length>destCapacity */ { \
1444 u_terminateUChars(UChar *dest, int32_t destCapacity, int32_t length, UErrorCode *pErrorCode) {
1445 __TERMINATE_STRING(dest, destCapacity, length, pErrorCode);
1450 u_terminateChars(char *dest, int32_t destCapacity, int32_t length, UErrorCode *pErrorCode) {
1451 __TERMINATE_STRING(dest, destCapacity, length, pErrorCode);
1456 u_terminateUChar32s(UChar32 *dest, int32_t destCapacity, int32_t length, UErrorCode *pErrorCode) {
1457 __TERMINATE_STRING(dest, destCapacity, length, pErrorCode);
1462 u_terminateWChars(wchar_t *dest, int32_t destCapacity, int32_t length, UErrorCode *pErrorCode) {
1463 __TERMINATE_STRING(dest, destCapacity, length, pErrorCode);