Lines Matching refs:pattern
42 const char *pattern = NULL; // The regular expression
103 // Create a RegexPattern object from the user supplied pattern string.
108 UParseError parseErr; // In the event of a syntax error in the regex pattern,
112 RegexPattern *rePat = RegexPattern::compile(pattern, parseErr, status);
114 // of the (char *) pattern to a temporary
117 fprintf(stderr, "ugrep: error in pattern: \"%s\" at position %d\n",
123 // Create a RegexMatcher from the newly created pattern.
140 // Loop through the lines of a file, trying to match the regex pattern on each.
227 int remainingArgs = argc-optInd; // pattern file ...
229 fprintf(stderr, "ugrep: files or pattern are missing.\n");
239 pattern = argv[optInd];
249 printf("ugrep [options] pattern file...\n"