Lines Matching refs:FILE
8 * File CALLCOLL.C
20 // A file of names is required as input, one per line. It must be in utf-8 or utf-16 format,
27 "-file file_name utf-16 format file of names.\n"
29 "-rules file_name Collation rules file (overrides locale)\n"
147 {"-file", OptSpec::STRING, &opt_fName},
182 // Global variables pointing to and describing the test file
189 // Each line from the source file (containing a name, presumably) gets
203 Line *gFileLines; // Ptr to array of Line structs, one per line in the file.
376 // Adjust loop count to compensate for file size. Should be order n
472 // Adjust loop count to compensate for file size. Should be order n (lookups) * log n (compares/lookup)
475 // manually adjust the loop count for every different file size.
701 // Adjust loop count to compensate for file size. QSort should be n log(n)
833 printf("performance test on strings from file -----------\n");
881 printf("performance test on skipped-5 concatenated strings from file -----------\n");
996 printf("performance test on strings from file -----------\n");
1045 printf("performance test on skipped-5 concatenated strings from file -----------\n");
1153 // UnixConvert -- Convert the lines of the file to the encoding for UNIX
1203 // class UCharFile Class to hide all the gorp to read a file in
1219 FILE *fFile;
1235 fprintf(stderr, "Can not open file \"%s\"\n", opt_fName);
1240 // Look for the byte order mark at the start of the file.
1254 fprintf(stderr, "collperf: file \"%s\" encoding must be UTF-8 or UTF-16, and "
1323 fprintf(stderr, "utf-8 encoded file contains corrupt data.\n");
1334 fprintf(stderr, "utf-8 encoded file contains corrupt data.\n");
1368 // openRulesCollator - Command line specified a rules file. Read it in
1421 // Main -- process command line, read in and pre-process the test file,
1533 // Read in the input file.
1534 // File assumed to be utf-16.
1549 // Read the file, split into lines, and save in memory.
1550 // Loop runs once per utf-16 value from the input file,
1551 // (The number of bytes read from file per loop iteration depends on external encoding.)
1576 fprintf(stderr, "File too big. Max number of lines is %d\n", MAXLINES);
1591 fprintf(stderr, "Warning - file line longer than 1023 chars truncated.\n");
1599 printf("file \"%s\", %d lines.\n", opt_fName, gNumFileLines);
1609 // Pre-compute ICU sort keys for the lines of the file.
1630 // Pre-compute Windows sort keys for the lines of the file.
1645 // Pre-compute UNIX sort keys for the lines of the file.
1663 // Dump file lines, CEs, Sort Keys if requested.
1750 // We've got the file read into memory. Go do something with it.