Lines Matching refs:expectLen
46 …tic UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
48 static UBool convertToU( const uint8_t *source, int sourceLen, const UChar *expect, int expectLen,
51 …UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
995 …tic UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in convertFromU() argument
1045 if(expectLen != targ-buffer) in convertFromU()
1047 … log_err("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage); in convertFromU()
1048 …log_verbose("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage… in convertFromU()
1050 printSeqErr((const unsigned char*)expect, expectLen); in convertFromU()
1054 if(memcmp(buffer, expect, expectLen)){ in convertFromU()
1057 printSeqErr((const unsigned char *)buffer, expectLen); in convertFromU()
1059 printSeqErr((const unsigned char *)expect, expectLen); in convertFromU()
1084 static UBool convertToU( const uint8_t *source, int sourceLen, const UChar *expect, int expectLen, in convertToU() argument
1144 log_verbose("comparing %d uchars (%d bytes)..\n",expectLen,expectLen*2); in convertToU()
1165 if(memcmp(buffer, expect, expectLen*2)){ in convertToU()
1168 printUSeqErr(buffer, expectLen); in convertToU()
1170 printUSeqErr(expect, expectLen); in convertToU()
1181 …UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in testConvertFromU() argument
1297 printSeq((const unsigned char *)expect, expectLen); in testConvertFromU()
1308 if(expectLen != targ-junkout) in testConvertFromU()
1310 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromU()
1311 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromU()
1315 printSeqErr((const unsigned char*)expect, expectLen); in testConvertFromU()
1335 if(!memcmp(junkout, expect, expectLen)) in testConvertFromU()
1345 printSeqErr((const unsigned char *)junkout, expectLen); in testConvertFromU()
1347 printSeqErr((const unsigned char *)expect, expectLen); in testConvertFromU()