Home
last modified time | relevance | path

Searched refs:expectLen (Results 1 - 9 of 9) sorted by relevance

/third_party/icu/icu4c/source/test/cintltst/
H A Dncnvtst.c47 static 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 static UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
996 static 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()
1085 convertToU( const uint8_t *source, int sourceLen, const UChar *expect, int expectLen, const char *codepage, const int32_t *expectOffsets, UBool doFlush, UErrorCode expectedStatus) convertToU() argument
1182 testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, const char *codepage, UConverterFromUCallback callback , const int32_t *expectOffsets, UBool testReset) testConvertFromU() argument
[all...]
H A Dncnvfbts.c132 static UBool testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in testConvertFromUnicode() argument
244 printSeq((const unsigned char*)expect, expectLen); in testConvertFromUnicode()
255 if(expectLen != targ-junkout) in testConvertFromUnicode()
257 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicode()
258 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicode()
260 printSeqErr((const unsigned char*)expect, expectLen); in testConvertFromUnicode()
280 if(!memcmp(junkout, expect, expectLen)) in testConvertFromUnicode()
289 printSeqErr((const unsigned char*)junkout, expectLen); in testConvertFromUnicode()
290 printSeqErr((const unsigned char*)expect, expectLen); in testConvertFromUnicode()
H A Dnccbtst.h50 UBool testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
59 UBool testConvertFromUnicodeWithContext(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
H A Dncnvfbts.h25 static UBool testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
H A Dnccbtst.c2622 UBool testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in testConvertFromUnicode() argument
2763 printSeq(expect, expectLen); in testConvertFromUnicode()
2774 if(expectLen != targ-junkout) in testConvertFromUnicode()
2776 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicode()
2777 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromUnicode()
2779 printSeqErr(expect, expectLen); in testConvertFromUnicode()
2802 if(!memcmp(junkout, expect, expectLen)) in testConvertFromUnicode()
2813 printSeqErr((const uint8_t *)junkout, expectLen); in testConvertFromUnicode()
2815 printSeqErr(expect, expectLen); in testConvertFromUnicode()
3013 UBool testConvertFromUnicodeWithContext(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in testConvertFromUnicodeWithContext() argument
[all...]
H A Dudatatst.c1128 unsigned int expectLen = 8; in TestICUDataName() local
1166 if(uprv_strlen(expectDataName) != expectLen) in TestICUDataName()
1169 expectLen, uprv_strlen(expectDataName)); in TestICUDataName()
1172 if(uprv_strlen(U_ICUDATA_NAME) != expectLen) in TestICUDataName()
1175 expectLen, uprv_strlen(U_ICUDATA_NAME)); in TestICUDataName()
H A Dutransts.c694 int32_t expectLen = u_unescape(itemsPtr->targetText, expect, kUBufMax); in TestDataVariantsCompounds() local
695 if (textLen != expectLen || u_strncmp(text, expect, textLen) != 0) { in TestDataVariantsCompounds()
698 u_austrncpy(bexpect, expect, expectLen); in TestDataVariantsCompounds()
H A Dnucnvtst.c363 static ETestConvertResult testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, in testConvertFromU() argument
464 printSeq((const uint8_t *)expect, expectLen); in testConvertFromU()
473 if(expectLen != targ-junkout) { in testConvertFromU()
474 log_err("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromU()
475 log_verbose("Expected %d chars out, got %d %s\n", expectLen, targ-junkout, gNuConvTestName); in testConvertFromU()
479 printSeqErr((const unsigned char*)expect, expectLen); in testConvertFromU()
503 if(!memcmp(junkout, expect, expectLen)) { in testConvertFromU()
510 printSeqErr((const unsigned char *)junkout, expectLen); in testConvertFromU()
512 printSeqErr((const unsigned char *)expect, expectLen); in testConvertFromU()
H A Dcnumtst.c2771 int32_t expectLen; in TestCurrencyUsage() local
2778 expectLen = u_unescape(DATA[j][1], expect, UPRV_LENGTHOF(expect)); in TestCurrencyUsage()
2787 if(resultLen != expectLen || u_strcmp(result, expect) != 0) { in TestCurrencyUsage()
2789 aescstrdup(expect, expectLen), aescstrdup(result, resultLen)); in TestCurrencyUsage()

Completed in 30 milliseconds