Home | History | Annotate | Download | only in ubrkperf

Lines Matching refs:FILE

8 * File ubrkperf.cpp
21 // A text file is required as input. It must be in utf-8 or utf-16 format,
28 "-file file_name utf-16/utf-8 format file.\n"
130 {"-file", OptSpec::STRING, &opt_fName},
157 // Global variables pointing to and describing the test file
412 // UnixConvert -- Convert the lines of the file to the encoding for UNIX
464 // class UCharFile Class to hide all the gorp to read a file in
481 FILE *fFile;
506 fprintf(stderr, "Can not open file \"%s\"\n", opt_fName);
511 // Look for the byte order mark at the start of the file.
525 fprintf(stderr, "collperf: file \"%s\" encoding must be UTF-8 or UTF-16, and "
594 fprintf(stderr, "not likely utf-8 encoded file %s contains corrupt data at offset %d.\n", fName, ftell(fFile));
605 fprintf(stderr, "utf-8 encoded file %s contains corrupt data at offset %d. Expected %d bytes, byte %d is invalid. First byte is %02X\n", fName, ftell(fFile), nBytes, i, ch);
636 // Main -- process command line, read in and pre-process the test file,
676 // Read in the input file.
677 // File assumed to be utf-16.
703 // Read the file, split into lines, and save in memory.
704 // Loop runs once per utf-16 value from the input file,
705 // (The number of bytes read from file per loop iteration depends on external encoding.)
729 printf("file \"%s\", %d charCount code units.\n", opt_fName, charCount);
738 // Dump file contents if requested.
741 // dump file, etc... possibly
746 // We've got the file read into memory. Go do something with it.