Lines Matching refs:destLength
890 int32_t destLength; in Test_FromUTF8() local
895 destLength=-99; in Test_FromUTF8()
896 destPointer=u_strFromUTF8(NULL, 0, &destLength, (const char *)bytes, 3, &errorCode); in Test_FromUTF8()
897 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || destPointer!=NULL || destLength!=1) { in Test_FromUTF8()
899 (long)destLength, u_errorName(errorCode)); in Test_FromUTF8()
904 destLength=-99; in Test_FromUTF8()
905 destPointer=u_strFromUTF8(NULL, 0, &destLength, (const char *)bytes, 4, &errorCode); in Test_FromUTF8()
906 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || destPointer!=NULL || destLength!=2) { in Test_FromUTF8()
908 (long)destLength, u_errorName(errorCode)); in Test_FromUTF8()
913 destLength=-99; in Test_FromUTF8()
914 destPointer=u_strFromUTF8(NULL, 0, &destLength, (const char *)bytes, -1, &errorCode); in Test_FromUTF8()
915 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || destPointer!=NULL || destLength!=1) { in Test_FromUTF8()
917 (long)destLength, u_errorName(errorCode)); in Test_FromUTF8()
923 destLength=-99; in Test_FromUTF8()
924 …destPointer=u_strFromUTF8(dest, UPRV_LENGTHOF(dest), &destLength, (const char *)bytes, 3, &errorCo… in Test_FromUTF8()
925 if(U_FAILURE(errorCode) || destPointer!=dest || destLength!=1 || dest[0]!=0x95c || dest[1]!=0) { in Test_FromUTF8()
927 (long)destLength, u_errorName(errorCode)); in Test_FromUTF8()
990 int32_t srcLength, destLength0, destLength; in Test_FromUTF8Lenient() local
996 destLength=-1; in Test_FromUTF8Lenient()
998 pDest=u_strFromUTF8Lenient(dest, 1, &destLength, NULL, -1, &errorCode); in Test_FromUTF8Lenient()
1004 destLength=-1; in Test_FromUTF8Lenient()
1006 pDest=u_strFromUTF8Lenient(NULL, 1, &destLength, (const char *)bytes, -1, &errorCode); in Test_FromUTF8Lenient()
1012 destLength=-1; in Test_FromUTF8Lenient()
1014 pDest=u_strFromUTF8Lenient(dest, 1, &destLength, (const char *)bytes, -1, &errorCode); in Test_FromUTF8Lenient()
1031 destLength=-1; in Test_FromUTF8Lenient()
1033 pDest=u_strFromUTF8Lenient(NULL, 0, &destLength, pb, -1, &errorCode); in Test_FromUTF8Lenient()
1035 pDest!=NULL || dest[0]!=0x1234 || destLength!=destLength0 in Test_FromUTF8Lenient()
1043 destLength=-1; in Test_FromUTF8Lenient()
1045 pDest=u_strFromUTF8Lenient(dest, destLength0-1, &destLength, pb, -1, &errorCode); in Test_FromUTF8Lenient()
1047 dest[destLength0-1]!=0x1234 || destLength!=destLength0 in Test_FromUTF8Lenient()
1055 destLength=-1; in Test_FromUTF8Lenient()
1057 pDest=u_strFromUTF8Lenient(dest, UPRV_LENGTHOF(dest), &destLength, pb, -1, &errorCode); in Test_FromUTF8Lenient()
1060 destLength!=destLength0 || !equalAnyFFFD(dest, pu, destLength) in Test_FromUTF8Lenient()
1067 destLength=-1; in Test_FromUTF8Lenient()
1069 pDest=u_strFromUTF8Lenient(dest, destLength0, &destLength, pb, -1, &errorCode); in Test_FromUTF8Lenient()
1072 destLength!=destLength0 || !equalAnyFFFD(dest, pu, destLength) in Test_FromUTF8Lenient()
1079 destLength=-1; in Test_FromUTF8Lenient()
1081 pDest=u_strFromUTF8Lenient(NULL, 0, &destLength, pb, srcLength, &errorCode); in Test_FromUTF8Lenient()
1083 pDest!=NULL || dest[0]!=0x1234 || destLength!=srcLength in Test_FromUTF8Lenient()
1091 destLength=-1; in Test_FromUTF8Lenient()
1093 pDest=u_strFromUTF8Lenient(dest, srcLength-1, &destLength, pb, srcLength, &errorCode); in Test_FromUTF8Lenient()
1095 dest[srcLength-1]!=0x1234 || destLength!=srcLength in Test_FromUTF8Lenient()
1103 destLength=-1; in Test_FromUTF8Lenient()
1105 … pDest=u_strFromUTF8Lenient(dest, UPRV_LENGTHOF(dest), &destLength, pb, srcLength, &errorCode); in Test_FromUTF8Lenient()
1108 destLength!=destLength0 || !equalAnyFFFD(dest, pu, destLength) in Test_FromUTF8Lenient()
1115 destLength=-1; in Test_FromUTF8Lenient()
1117 pDest=u_strFromUTF8Lenient(dest, srcLength, &destLength, pb, srcLength, &errorCode); in Test_FromUTF8Lenient()
1121 destLength!=destLength0 || !equalAnyFFFD(dest, pu, destLength) in Test_FromUTF8Lenient()
1128 destLength!=destLength0 || !equalAnyFFFD(dest, pu, destLength) in Test_FromUTF8Lenient()