Lines Matching refs:testBuf
37 char testBuf[256] = ""; in TestFileFromICU() local
45 memset(testBuf, '*', sizeof(testBuf)/sizeof(*testBuf)); in TestFileFromICU()
838 UChar testBuf[sizeof(strABAccentA)/sizeof(strABAccentA[0])*2]; /* *2 to see if too much was */ in TestCodepage() local
866 retVal = u_file_read(testBuf, u_strlen(strABAccentA), myFile); in TestCodepage()
867 if (u_strncmp(strABAccentA, testBuf, u_strlen(strABAccentA)) != 0) { in TestCodepage()
886 retVal = u_file_read(testBuf, u_strlen(strBadConversion), myFile); in TestCodepage()
887 if (u_strncmp(strBadConversion, testBuf, u_strlen(strBadConversion)) != 0) { in TestCodepage()
895 u_file_read(testBuf, 1, myFile); in TestCodepage()
899 retVal = u_file_read(testBuf + 1, u_strlen(strABAccentA) - 1, myFile); in TestCodepage()
900 if (u_strncmp(strABAccentA, testBuf, u_strlen(strABAccentA)) != 0) { in TestCodepage()
907 retVal = u_file_read(testBuf, u_strlen(strABAccentA), myFile); in TestCodepage()
908 if (u_strncmp(strABAccentA, testBuf, u_strlen(strABAccentA)) != 0) { in TestCodepage()
989 char testBuf[512] = ""; in TestFilePrintCompatibility() local
1033 sprintf(testBuf, "%x", (int)num); in TestFilePrintCompatibility()
1034 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1035 log_err("%%x Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()
1039 sprintf(testBuf, "%X", (int)num); in TestFilePrintCompatibility()
1040 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1041 log_err("%%X Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()
1045 sprintf(testBuf, "%o", (int)num); in TestFilePrintCompatibility()
1046 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1047 log_err("%%o Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()
1052 sprintf(testBuf, "%d", (int)num); in TestFilePrintCompatibility()
1053 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1054 log_err("%%d Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()
1058 sprintf(testBuf, "%i", (int)num); in TestFilePrintCompatibility()
1059 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1060 log_err("%%i Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()
1064 sprintf(testBuf, "%f", (double)num); in TestFilePrintCompatibility()
1065 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1066 log_err("%%f Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()
1082 sprintf(testBuf, "%g", (double)num); in TestFilePrintCompatibility()
1083 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1084 log_err("%%g Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()
1088 sprintf(testBuf, "%G", (double)num); in TestFilePrintCompatibility()
1089 if (strcmp(readBuf, testBuf) != 0) { in TestFilePrintCompatibility()
1090 log_err("%%G Got: \"%s\", Expected: \"%s\"\n", readBuf, testBuf); in TestFilePrintCompatibility()