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