Lines Matching refs:uDestLen

326     int32_t uDestLen;  in Test_strFromUTF32()  local
330 uDestLen = -2; in Test_strFromUTF32()
331 u_strFromUTF32(uTarget,0,&uDestLen,src32,UPRV_LENGTHOF(src32),&err); in Test_strFromUTF32()
332 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != UPRV_LENGTHOF(src16)) { in Test_strFromUTF32()
335 (long)uDestLen, (long)UPRV_LENGTHOF(src16), u_errorName(err)); in Test_strFromUTF32()
339 uDestLen = -2; in Test_strFromUTF32()
340 u_strFromUTF32(uTarget, UPRV_LENGTHOF(src16)+1,&uDestLen,src32,UPRV_LENGTHOF(src32),&err); in Test_strFromUTF32()
341 if(err != U_ZERO_ERROR || uDestLen != UPRV_LENGTHOF(src16)) { in Test_strFromUTF32()
344 (long)uDestLen, (long)UPRV_LENGTHOF(src16), u_errorName(err)); in Test_strFromUTF32()
354 for(i=0; i< uDestLen; i++){ in Test_strFromUTF32()
364 uDestLen = -2; in Test_strFromUTF32()
365 u_strFromUTF32(NULL,0,&uDestLen,src32,-1,&err); in Test_strFromUTF32()
366 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != UPRV_LENGTHOF(src16)-1) { in Test_strFromUTF32()
369 (long)uDestLen, (long)UPRV_LENGTHOF(src16)-1, u_errorName(err)); in Test_strFromUTF32()
373 uDestLen = -2; in Test_strFromUTF32()
374 u_strFromUTF32(uTarget, UPRV_LENGTHOF(src16),&uDestLen,src32,-1,&err); in Test_strFromUTF32()
375 if(err != U_ZERO_ERROR || uDestLen != UPRV_LENGTHOF(src16)-1) { in Test_strFromUTF32()
378 (long)uDestLen, (long)UPRV_LENGTHOF(src16)-1, u_errorName(err)); in Test_strFromUTF32()
382 for(i=0; i< uDestLen; i++){ in Test_strFromUTF32()
393 int32_t len32, uDestLen; in Test_strFromUTF32_surrogates() local
405 u_strFromUTF32(uTarget, 0, &uDestLen, surr32+i, len32-i, &err); in Test_strFromUTF32_surrogates()
413 u_strFromUTF32(uTarget, UPRV_LENGTHOF(uTarget), &uDestLen, surr32+i, len32-i, &err); in Test_strFromUTF32_surrogates()
421 u_strFromUTF32(NULL, 0, &uDestLen, surr32+i, -1, &err); in Test_strFromUTF32_surrogates()
429 u_strFromUTF32(uTarget, UPRV_LENGTHOF(uTarget), &uDestLen, surr32+i, -1, &err); in Test_strFromUTF32_surrogates()
438 u_strFromUTF32(uTarget, 0, &uDestLen, surr32+6, len32-6-1, &err); in Test_strFromUTF32_surrogates()
439 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != 4) { in Test_strFromUTF32_surrogates()
446 u_strFromUTF32(uTarget, UPRV_LENGTHOF(uTarget), &uDestLen, surr32+6, len32-6-1, &err); in Test_strFromUTF32_surrogates()
447 if(err != U_ZERO_ERROR || uDestLen != 4 || u_memcmp(uTarget, expected, 5)) { in Test_strFromUTF32_surrogates()
454 u_strFromUTF32(NULL, 0, &uDestLen, surr32+6, -1, &err); in Test_strFromUTF32_surrogates()
455 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != 4) { in Test_strFromUTF32_surrogates()
462 u_strFromUTF32(uTarget, UPRV_LENGTHOF(uTarget), &uDestLen, surr32+6, -1, &err); in Test_strFromUTF32_surrogates()
463 if(err != U_ZERO_ERROR || uDestLen != 4 || u_memcmp(uTarget, expected, 5)) { in Test_strFromUTF32_surrogates()
472 u_strFromUTF32WithSub(uTarget, 0, &uDestLen, surr32, len32-1, 0xfffd, &numSubstitutions, &err); in Test_strFromUTF32_surrogates()
473 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != 10 || numSubstitutions != 4) { in Test_strFromUTF32_surrogates()
480 …u_strFromUTF32WithSub(uTarget, UPRV_LENGTHOF(uTarget), &uDestLen, surr32, len32-1, 0xfffd, &numSub… in Test_strFromUTF32_surrogates()
481 …if(err != U_ZERO_ERROR || uDestLen != 10 || numSubstitutions != 4 || u_memcmp(uTarget, expected_FF… in Test_strFromUTF32_surrogates()
488 u_strFromUTF32WithSub(NULL, 0, &uDestLen, surr32, -1, 0x12345, &numSubstitutions, &err); in Test_strFromUTF32_surrogates()
489 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != 14 || numSubstitutions != 4) { in Test_strFromUTF32_surrogates()
496 …u_strFromUTF32WithSub(uTarget, UPRV_LENGTHOF(uTarget), &uDestLen, surr32, -1, 0x12345, &numSubstit… in Test_strFromUTF32_surrogates()
497 …if(err != U_ZERO_ERROR || uDestLen != 14 || numSubstitutions != 4 || u_memcmp(uTarget, expected_12… in Test_strFromUTF32_surrogates()
513 int32_t uDestLen=0; in Test_UChar_UTF8_API() local
565 u_strFromUTF8(uTarget,uTargetLength,&uDestLen,u8Src,u8SrcLen,&err); in Test_UChar_UTF8_API()
568 uTarget = (UChar*) malloc( sizeof(UChar) * (uDestLen+1)); in Test_UChar_UTF8_API()
569 uTargetLength = uDestLen; in Test_UChar_UTF8_API()
572 uDestLen = -1; in Test_UChar_UTF8_API()
573 u_strFromUTF8(uTarget,uTargetLength,&uDestLen,u8Src,u8SrcLen,&err); in Test_UChar_UTF8_API()
585 if(U_FAILURE(err) || uDestLen != uTargetLength || uTarget[uTargetLength] != 0xfff0) { in Test_UChar_UTF8_API()
640 u_strFromUTF8(NULL,uTargetLength,&uDestLen,u8Src,u8SrcLen,&err); in Test_UChar_UTF8_API()
643 uTarget = (UChar*) malloc( sizeof(UChar) * (uDestLen+1)); in Test_UChar_UTF8_API()
644 uTargetLength = uDestLen; in Test_UChar_UTF8_API()
646 u_strFromUTF8(uTarget,uTargetLength,&uDestLen,u8Src,u8SrcLen,&err); in Test_UChar_UTF8_API()
703 uDestLen=0; in Test_UChar_UTF8_API()
704 u_strFromUTF8WithSub(out16, UPRV_LENGTHOF(out16), &uDestLen, in Test_UChar_UTF8_API()
708 if(U_FAILURE(err) || uDestLen!=u_strlen(withTrail16Sub50005) || in Test_UChar_UTF8_API()
709 0!=u_memcmp(withTrail16Sub50005, out16, uDestLen+1) || in Test_UChar_UTF8_API()
718 uDestLen=0; in Test_UChar_UTF8_API()
719 u_strFromUTF8WithSub(out16, UPRV_LENGTHOF(out16), &uDestLen, in Test_UChar_UTF8_API()
723 if(U_FAILURE(err) || uDestLen!=u_strlen(withTrail16SubFFFD) || in Test_UChar_UTF8_API()
724 0!=u_memcmp(withTrail16SubFFFD, out16, uDestLen+1) || in Test_UChar_UTF8_API()
733 uDestLen=0; in Test_UChar_UTF8_API()
734 u_strFromUTF8WithSub(out16, 1, &uDestLen, in Test_UChar_UTF8_API()
738 …if(err!=U_BUFFER_OVERFLOW_ERROR || uDestLen!=u_strlen(withTrail16Sub50005) || numSubstitutions!=3)… in Test_UChar_UTF8_API()
792 uDestLen=0; in Test_UChar_UTF8_API()
793 u_strFromUTF8WithSub(out16, UPRV_LENGTHOF(out16), &uDestLen, in Test_UChar_UTF8_API()
797 if(U_FAILURE(err) || uDestLen!=1 || in Test_UChar_UTF8_API()
798 0!=u_memcmp(withTrail16Sub50005, out16, uDestLen) || in Test_UChar_UTF8_API()
824 uDestLen=0; in Test_UChar_UTF8_API()
825 u_strFromUTF8WithSub(out16, UPRV_LENGTHOF(out16), &uDestLen, in Test_UChar_UTF8_API()
829 if(U_FAILURE(err) || uDestLen!=1 || in Test_UChar_UTF8_API()
830 0!=u_memcmp(withTrail16Sub50005, out16, uDestLen) || in Test_UChar_UTF8_API()
1176 int32_t uDestLen = 0; in Test_UChar_WCHART_API() local
1211 u_strFromWCS(uDest, uDestLen,&reqLen,wDest,reqLen,&err); in Test_UChar_WCHART_API()
1217 uDestLen = reqLen + 1; in Test_UChar_WCHART_API()
1218 u_strFromWCS(uDest, uDestLen,&reqLen,wDest,reqLen,&err); in Test_UChar_WCHART_API()
1246 uDestLen =0; in Test_UChar_WCHART_API()
1260 u_strFromWCS(uDest, uDestLen,&reqLen,wDest,reqLen,&err); in Test_UChar_WCHART_API()
1265 uDestLen = reqLen + 1; in Test_UChar_WCHART_API()
1266 u_strFromWCS(uDest, uDestLen,&reqLen,wDest,reqLen,&err); in Test_UChar_WCHART_API()
1294 uDestLen =0; in Test_UChar_WCHART_API()
1307 uDestLen = 0; in Test_UChar_WCHART_API()
1309 u_strFromWCS(uDest, uDestLen,&reqLen,wDest,-1,&err); in Test_UChar_WCHART_API()
1314 uDestLen = reqLen + 1; in Test_UChar_WCHART_API()
1315 u_strFromWCS(uDest, uDestLen,&reqLen,wDest,-1,&err); in Test_UChar_WCHART_API()
1437 int32_t uDestLen =0; in Test_WCHART_LongString() local
1470 uDestLen = 0; in Test_WCHART_LongString()
1472 u_strFromWCS(uDest, uDestLen,&reqLen,wDest,-1,&status); in Test_WCHART_LongString()
1477 uDestLen = reqLen + 1; in Test_WCHART_LongString()
1478 u_strFromWCS(uDest, uDestLen,&reqLen,wDest,-1,&status); in Test_WCHART_LongString()