Home | History | Annotate | Download | only in cintltst

Lines Matching refs:uDestLen

326     int32_t uDestLen;
330 uDestLen = -2;
331 u_strFromUTF32(uTarget,0,&uDestLen,src32,LENGTHOF(src32),&err);
332 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != LENGTHOF(src16)) {
335 (long)uDestLen, (long)LENGTHOF(src16), u_errorName(err));
339 uDestLen = -2;
340 u_strFromUTF32(uTarget, LENGTHOF(src16)+1,&uDestLen
341 if(err != U_ZERO_ERROR || uDestLen != LENGTHOF(src16)) {
344 (long)uDestLen, (long)LENGTHOF(src16), u_errorName(err));
347 /*for(i=0; i< uDestLen; i++){
354 for(i=0; i< uDestLen; i++){
364 uDestLen = -2;
365 u_strFromUTF32(NULL,0,&uDestLen,src32,-1,&err);
366 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != LENGTHOF(src16)-1) {
369 (long)uDestLen, (long)LENGTHOF(src16)-1, u_errorName(err));
373 uDestLen = -2;
374 u_strFromUTF32(uTarget, LENGTHOF(src16),&uDestLen,src32,-1,&err);
375 if(err != U_ZERO_ERROR || uDestLen != LENGTHOF(src16)-1) {
378 (long)uDestLen, (long)LENGTHOF(src16)-1, u_errorName(err));
382 for(i=0; i< uDestLen; i++){
393 int32_t len32, uDestLen;
405 u_strFromUTF32(uTarget, 0, &uDestLen, surr32+i, len32-i, &err);
413 u_strFromUTF32(uTarget, LENGTHOF(uTarget), &uDestLen, surr32+i, len32-i, &err);
421 u_strFromUTF32(NULL, 0, &uDestLen, surr32+i, -1, &err);
429 u_strFromUTF32(uTarget, LENGTHOF(uTarget), &uDestLen, surr32+i, -1, &err);
438 u_strFromUTF32(uTarget, 0, &uDestLen, surr32+6, len32-6-1, &err);
439 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != 4) {
446 u_strFromUTF32(uTarget, LENGTHOF(uTarget), &uDestLen, surr32+6, len32-6-1, &err);
447 if(err != U_ZERO_ERROR || uDestLen != 4 || u_memcmp(uTarget, expected, 5)) {
454 u_strFromUTF32(NULL, 0, &uDestLen, surr32+6, -1, &err);
455 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != 4) {
462 u_strFromUTF32(uTarget, LENGTHOF(uTarget), &uDestLen, surr32+6, -1, &err);
463 if(err != U_ZERO_ERROR || uDestLen != 4 || u_memcmp(uTarget, expected, 5)) {
472 u_strFromUTF32WithSub(uTarget, 0, &uDestLen, surr32, len32-1, 0xfffd, &numSubstitutions, &err);
473 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != 10 || numSubstitutions != 4) {
480 u_strFromUTF32WithSub(uTarget, LENGTHOF(uTarget), &uDestLen, surr32, len32-1, 0xfffd, &numSubstitutions, &err);
481 if(err != U_ZERO_ERROR || uDestLen != 10 || numSubstitutions != 4 || u_memcmp(uTarget, expected_FFFD, 11)) {
488 u_strFromUTF32WithSub(NULL, 0, &uDestLen, surr32, -1, 0x12345, &numSubstitutions, &err);
489 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != 14 || numSubstitutions != 4) {
496 u_strFromUTF32WithSub(uTarget, LENGTHOF(uTarget), &uDestLen, surr32, -1, 0x12345, &numSubstitutions, &err);
497 if(err != U_ZERO_ERROR || uDestLen != 14 || numSubstitutions != 4 || u_memcmp(uTarget, expected_12345, 15)) {
513 int32_t uDestLen=0;
565 u_strFromUTF8(uTarget,uTargetLength,&uDestLen,u8Src,u8SrcLen,&err);
568 uTarget = (UChar*) malloc( sizeof(UChar) * (uDestLen+1));
569 uTargetLength = uDestLen;
572 uDestLen = -1;
573 u_strFromUTF8(uTarget,uTargetLength,&uDestLen,u8Src,u8SrcLen,&err);
578 /*for(i=0; i< uDestLen; i++){
585 if(U_FAILURE(err) || uDestLen != uTargetLength || uTarget[uTargetLength] != 0xfff0) {
640 u_strFromUTF8(NULL,uTargetLength,&uDestLen,u8Src,u8SrcLen,&err);
643 uTarget = (UChar*) malloc( sizeof(UChar) * (uDestLen+1));
644 uTargetLength = uDestLen;
646 u_strFromUTF8(uTarget,uTargetLength,&uDestLen,u8Src,u8SrcLen,&err);
651 /*for(i=0; i< uDestLen; i++){
702 uDestLen=0;
703 u_strFromUTF8WithSub(out16, LENGTHOF(out16), &uDestLen,
707 if(U_FAILURE(err) || uDestLen!=u_strlen(withTrail16Sub50005) ||
708 0!=u_memcmp(withTrail16Sub50005, out16, uDestLen+1) ||
717 uDestLen=0;
718 u_strFromUTF8WithSub(out16, LENGTHOF(out16), &uDestLen,
722 if(U_FAILURE(err) || uDestLen!=u_strlen(withTrail16SubFFFD) ||
723 0!=u_memcmp(withTrail16SubFFFD, out16, uDestLen+1) ||
732 uDestLen=0;
733 u_strFromUTF8WithSub(out16, 1, &uDestLen,
737 if(err!=U_BUFFER_OVERFLOW_ERROR || uDestLen!=u_strlen(withTrail16Sub50005) || numSubstitutions!=1) {
791 uDestLen=0;
792 u_strFromUTF8WithSub(out16, LENGTHOF(out16), &uDestLen,
796 if(U_FAILURE(err) || uDestLen!=1 ||
797 0!=u_memcmp(withTrail16Sub50005, out16, uDestLen) ||
823 uDestLen=0;
824 u_strFromUTF8WithSub(out16, LENGTHOF(out16), &uDestLen,
828 if(U_FAILURE(err) || uDestLen!=1 ||
829 0!=u_memcmp(withTrail16Sub50005, out16, uDestLen) ||
1170 int32_t uDestLen = 0;
1205 u_strFromWCS(uDest, uDestLen,&reqLen,wDest,reqLen,&err);
1211 uDestLen = reqLen + 1;
1212 u_strFromWCS(uDest, uDestLen,&reqLen,wDest,reqLen,&err);
1240 uDestLen =0;
1254 u_strFromWCS(uDest, uDestLen,&reqLen,wDest,reqLen,&err);
1259 uDestLen = reqLen + 1;
1260 u_strFromWCS(uDest, uDestLen,&reqLen,wDest,reqLen,&err);
1288 uDestLen =0;
1301 uDestLen = 0;
1303 u_strFromWCS(uDest, uDestLen,&reqLen,wDest,-1,&err);
1308 uDestLen = reqLen + 1;
1309 u_strFromWCS(uDest, uDestLen,&reqLen,wDest,-1,&err);
1430 int32_t uDestLen =0;
1463 uDestLen = 0;
1465 u_strFromWCS(uDest, uDestLen,&reqLen,wDest,-1,&status);
1470 uDestLen = reqLen + 1;
1471 u_strFromWCS(uDest, uDestLen,&reqLen,wDest,-1,&status);