Lines Matching refs:expectLen
44 …tic UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
46 static UBool convertToU( const uint8_t *source, int sourceLen, const UChar *expect, int expectLen,
49 …UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
1005 …tic UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in convertFromU() argument
1055 if(expectLen != targ-buffer) in convertFromU()
1057 … log_err("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage); in convertFromU()
1058 …log_verbose("Expected %d chars out, got %d FROM Unicode to %s\n", expectLen, targ-buffer, codepage… in convertFromU()
1060 printSeqErr((const unsigned char*)expect, expectLen); in convertFromU()
1064 if(memcmp(buffer, expect, expectLen)){ in convertFromU()
1067 printSeqErr((const unsigned char *)buffer, expectLen); in convertFromU()
1069 printSeqErr((const unsigned char *)expect, expectLen); in convertFromU()
1094 static UBool convertToU( const uint8_t *source, int sourceLen, const UChar *expect, int expectLen, in convertToU() argument
1154 log_verbose("comparing %d uchars (%d bytes)..\n",expectLen,expectLen*2); in convertToU()
1175 if(memcmp(buffer, expect, expectLen*2)){ in convertToU()
1178 printUSeqErr(buffer, expectLen); in convertToU()
1180 printUSeqErr(expect, expectLen); in convertToU()
1191 …UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in testConvertFromU() argument
1307 printSeq((const unsigned char *)expect, expectLen); in testConvertFromU()
1318 if(expectLen != targ-junkout) in testConvertFromU()
1320 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromU()
1321 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromU()
1325 printSeqErr((const unsigned char*)expect, expectLen); in testConvertFromU()
1345 if(!memcmp(junkout, expect, expectLen)) in testConvertFromU()
1355 printSeqErr((const unsigned char *)junkout, expectLen); in testConvertFromU()
1357 printSeqErr((const unsigned char *)expect, expectLen); in testConvertFromU()