Lines Matching refs:expectLen
47 …tic UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
49 static UBool convertToU( const uint8_t *source, int sourceLen, const UChar *expect, int expectLen,
52 …UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
996 …tic UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in convertFromU() argument
1046 if(expectLen != targ-buffer) in convertFromU()
1048 … log_err("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage); in convertFromU()
1049 …log_verbose("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage… in convertFromU()
1051 printSeqErr((const unsigned char*)expect, expectLen); in convertFromU()
1055 if(memcmp(buffer, expect, expectLen)){ in convertFromU()
1058 printSeqErr((const unsigned char *)buffer, expectLen); in convertFromU()
1060 printSeqErr((const unsigned char *)expect, expectLen); in convertFromU()
1085 static UBool convertToU( const uint8_t *source, int sourceLen, const UChar *expect, int expectLen, in convertToU() argument
1145 log_verbose("comparing %d uchars (%d bytes)..\n",expectLen,expectLen*2); in convertToU()
1166 if(memcmp(buffer, expect, expectLen*2)){ in convertToU()
1169 printUSeqErr(buffer, expectLen); in convertToU()
1171 printUSeqErr(expect, expectLen); in convertToU()
1182 …UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in testConvertFromU() argument
1298 printSeq((const unsigned char *)expect, expectLen); in testConvertFromU()
1309 if(expectLen != targ-junkout) in testConvertFromU()
1311 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromU()
1312 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromU()
1316 printSeqErr((const unsigned char*)expect, expectLen); in testConvertFromU()
1336 if(!memcmp(junkout, expect, expectLen)) in testConvertFromU()
1346 printSeqErr((const unsigned char *)junkout, expectLen); in testConvertFromU()
1348 printSeqErr((const unsigned char *)expect, expectLen); in testConvertFromU()