// ugrep - an ICU sample program illustrating the use of ICU Regular Expressions.
//
// The use of the ICU Regex API all occurs within the main()
// ugrep - an ICU sample program illustrating the use of ICU Regular Expressions.
//
// The use of the ICU Regex API all occurs within the main()
// encoding conversions, printing results, etc.
//
// This is not a full-featured grep program. The command line options
// encoding conversions, printing results, etc.
//
// This is not a full-featured grep program. The command line options
//
const char *pattern = NULL; // The regular expression
int firstFileNum; // argv index of the first file name
//
const char *pattern = NULL; // The regular expression
int firstFileNum; // argv index of the first file name
// doOptions Run through the command line options, and set
// the global variables accordingly.
//
// doOptions Run through the command line options, and set
// the global variables accordingly.
//
// ugrep should not proceed further.
//
//------------------------------------------------------------------------------------------
// ugrep should not proceed further.
//
//------------------------------------------------------------------------------------------
- int t = fread(charBuf, 1, rawFileLen, file);
+ int t = static_cast<int>(fread(charBuf, 1, rawFileLen, file));
//
// nextLine Advance the line index variables, starting at the
// specified position in the input file buffer, by
//
// nextLine Advance the line index variables, starting at the
// specified position in the input file buffer, by