Lines Matching refs:format
313 #define Test_u_snprintf(limit, format, value, expectedSize, expectedStr) \
315 size = u_snprintf(testStr, limit, format, value);\
494 /* Test reordering format */
604 static void TestSScanSetFormat(const char *format, const UChar *uValue, const char *cValue, UBool expectedToPass) {
618 uNumScanned = u_sscanf(uValue, format, uBuffer);
621 cNumScanned = sscanf(cValue, format, buffer);
623 log_err("%s Got: \"%s\", Expected: \"%s\"\n", format, compBuffer, buffer);
626 log_err("%s number scanned Got: %d, Expected: %d\n", format, uNumScanned, cNumScanned);
629 log_err("%s too much stored\n", format);
634 log_err("%s too much stored on a failure\n", format);
674 /* Bad format */
685 static void TestBadSScanfFormat(const char *format, const UChar *uValue, const char *cValue) {
694 uNumScanned = u_sscanf(uValue, format, uBuffer);
696 log_err("%s too much stored on a failure\n", format);
710 static void Test_u_vfprintf(const char *expectedResult, const char *format, ...) {
717 va_start(ap, format);
718 count = u_vsprintf(uBuffer, format, ap);
722 log_err("Got two different results for \"%s\" expected \"%s\"\n", format, expectedResult);
725 u_uastrcpy(uBuffer2, format);
726 va_start(ap, format);
731 log_err("Got two different results for \"%s\" expected \"%s\"\n", format, expectedResult);