Lines Matching refs:u8DestLen
518 int32_t u8DestLen =0; in Test_UChar_UTF8_API() local
526 u_strToUTF8(u8Target,u8TargetLength, &u8DestLen, uSrc, uSrcLen,&err); in Test_UChar_UTF8_API()
529 u8Target = (char*) malloc (sizeof(uint8_t) * (u8DestLen+1)); in Test_UChar_UTF8_API()
530 u8TargetLength = u8DestLen; in Test_UChar_UTF8_API()
533 u8DestLen = -1; in Test_UChar_UTF8_API()
534 u_strToUTF8(u8Target,u8TargetLength, &u8DestLen, uSrc, uSrcLen,&err); in Test_UChar_UTF8_API()
535 … if(U_FAILURE(err) || u8DestLen != u8TargetLength || u8Target[u8TargetLength] != (char)0xfe){ in Test_UChar_UTF8_API()
561 u8SrcLen = u8DestLen; in Test_UChar_UTF8_API()
608 u_strToUTF8(NULL,u8TargetLength, &u8DestLen, uSrc, uSrcLen,&err); in Test_UChar_UTF8_API()
611 u8Target = (char*) malloc (sizeof(uint8_t) * (u8DestLen+1)); in Test_UChar_UTF8_API()
612 u8TargetLength = u8DestLen; in Test_UChar_UTF8_API()
614 u_strToUTF8(u8Target,u8TargetLength, &u8DestLen, uSrc, uSrcLen,&err); in Test_UChar_UTF8_API()
637 u8SrcLen = u8DestLen; in Test_UChar_UTF8_API()
746 u8DestLen=0; in Test_UChar_UTF8_API()
747 u_strToUTF8WithSub(out8, UPRV_LENGTHOF(out8), &u8DestLen, in Test_UChar_UTF8_API()
751 if(U_FAILURE(err) || u8DestLen!=uprv_strlen((const char *)withTrail8SubFFFD) || in Test_UChar_UTF8_API()
752 0!=uprv_memcmp((const char *)withTrail8SubFFFD, out8, u8DestLen+1) || in Test_UChar_UTF8_API()
761 u8DestLen=0; in Test_UChar_UTF8_API()
762 u_strToUTF8WithSub(out8, UPRV_LENGTHOF(out8), &u8DestLen, in Test_UChar_UTF8_API()
766 if(U_FAILURE(err) || u8DestLen!=uprv_strlen((const char *)withTrail8Sub1A) || in Test_UChar_UTF8_API()
767 0!=uprv_memcmp((const char *)withTrail8Sub1A, out8, u8DestLen+1) || in Test_UChar_UTF8_API()
776 u8DestLen=0; in Test_UChar_UTF8_API()
777 u_strToUTF8WithSub(out8, 1, &u8DestLen, in Test_UChar_UTF8_API()
781 … if(err!=U_BUFFER_OVERFLOW_ERROR || u8DestLen!=uprv_strlen((const char *)withTrail8SubFFFD) || in Test_UChar_UTF8_API()
807 u8DestLen=0; in Test_UChar_UTF8_API()
808 u_strToUTF8WithSub(out8, UPRV_LENGTHOF(out8), &u8DestLen, in Test_UChar_UTF8_API()
812 if(U_FAILURE(err) || u8DestLen!=3 || in Test_UChar_UTF8_API()
813 0!=uprv_memcmp((const char *)withTrail8SubFFFD, out8, u8DestLen) || in Test_UChar_UTF8_API()
839 u8DestLen=0; in Test_UChar_UTF8_API()
840 u_strToUTF8WithSub(out8, UPRV_LENGTHOF(out8), &u8DestLen, in Test_UChar_UTF8_API()
844 if(U_FAILURE(err) || u8DestLen!=3 || in Test_UChar_UTF8_API()
845 0!=uprv_memcmp((const char *)withTrail8SubFFFD, out8, u8DestLen) || in Test_UChar_UTF8_API()