Lines Matching refs:pattern
32 * regular expression. They are created from a regular expression pattern string,
33 * and can be used to create <code>RegexMatcher</code> objects for the pattern.</p>
36 * pattern and a target string to which the search pattern will be applied.
42 * expression pattern strings application code can be simplified and the explicit
79 * of a regular expression, methods for creating RegexMatchers that allow the pattern
92 * pattern. Not normally needed; RegexPattern objects are usually
102 * @param source the pattern object to be copied.
157 * objects created from the pattern are active. RegexMatchers keep a pointer
158 * back to their pattern, so premature deletion of the pattern is a
161 * <p>All pattern match mode flags are set to their default values.</p>
164 * from a pattern string rather than separately compiling the pattern and
165 * then creating a RegexMatcher object from the pattern.</p>
171 * @return A regexPattern object for the compiled pattern.
185 * objects created from the pattern are active. RegexMatchers keep a pointer
186 * back to their pattern, so premature deletion of the pattern is a
189 * <p>All pattern match mode flags are set to their default values.</p>
192 * from a pattern string rather than separately compiling the pattern and
193 * then creating a RegexMatcher object from the pattern.</p>
201 * @return A regexPattern object for the compiled pattern.
216 * objects created from the pattern are active. RegexMatchers keep a pointer
217 * back to their pattern, so premature deletion of the pattern is a
221 * from a pattern string instead of than separately compiling the pattern and
222 * then creating a RegexMatcher object from the pattern.</p>
229 * @return A regexPattern object for the compiled pattern.
245 * objects created from the pattern are active. RegexMatchers keep a pointer
246 * back to their pattern, so premature deletion of the pattern is a
250 * from a pattern string instead of than separately compiling the pattern and
251 * then creating a RegexMatcher object from the pattern.</p>
260 * @return A regexPattern object for the compiled pattern.
276 * objects created from the pattern are active. RegexMatchers keep a pointer
277 * back to their pattern, so premature deletion of the pattern is a
281 * from a pattern string instead of than separately compiling the pattern and
282 * then creating a RegexMatcher object from the pattern.</p>
287 * @return A regexPattern object for the compiled pattern.
302 * objects created from the pattern are active. RegexMatchers keep a pointer
303 * back to their pattern, so premature deletion of the pattern is a
307 * from a pattern string instead of than separately compiling the pattern and
308 * then creating a RegexMatcher object from the pattern.</p>
315 * @return A regexPattern object for the compiled pattern.
324 * Get the match mode flags that were used when compiling this pattern.
331 * Creates a RegexMatcher that will match the given input against this pattern. The
337 * pattern matching operations happen directly on this original string. It is
343 * @return A RegexMatcher object for this pattern and input.
369 * Creates a RegexMatcher that will match against this pattern. The
375 * @return A RegexMatcher object for this pattern and input.
385 * Note that if the same pattern needs to be applied repeatedly, this method will be
404 * Note that if the same pattern needs to be applied repeatedly, this method will be
421 * Returns the regular expression from which this pattern was compiled. This method will work
422 * even if the pattern was compiled from a UText.
424 * Note: If the pattern was originally compiled from a UText, and that UText was modified,
428 virtual UnicodeString pattern() const;
432 * Returns the regular expression from which this pattern was compiled. This method will work
433 * even if the pattern was compiled from a UnicodeString.
435 * Note: This is the original input, not a clone. If the pattern was originally compiled from a
450 * appear in the pattern.
466 * appear in the pattern.
481 * Pattern matches identify delimiters that separate the input
485 * If the delimiter pattern includes capture groups, the captured text will
488 * which ignores the presence of capture groups in the pattern.
495 * This count includes the strings from capture groups in the delimiter pattern.
502 * match the pattern (in the "this" object)
525 * Pattern matches identify delimiters that separate the input
529 * If the delimiter pattern includes capture groups, the captured text will
532 * which ignores the presence of capture groups in the pattern.
539 * This count includes the strings from capture groups in the delimiter pattern.
546 * match the pattern (in the "this" object)
585 UText *fPattern; // The original pattern string.
586 UnicodeString *fPatternString; // The original pattern UncodeString if relevant
587 uint32_t fFlags; // The flags used when compiling the pattern.
589 UVector64 *fCompiledPat; // The compiled pattern p-code.
590 UnicodeString fLiteralText; // Any literal string data from the pattern,
593 UVector *fSets; // Any UnicodeSets referenced from the pattern.
608 int32_t fDataSize; // The size of the data needed by the pattern that
646 * Dump a compiled pattern. Internal debug function.
656 * class RegexMatcher bundles together a regular expression pattern and
709 * pattern matching operations happen directly on the original string. It is
733 * pattern matching operations happen on this clone. While read-only operations on
775 * Attempts to match the entire input region against the pattern.
798 * against the pattern. Like the matches() method, this function
813 * Attempts to match the input string, starting from the specified index, against the pattern.
829 * Find the next pattern match in the input string.
844 * Find the next pattern match in the input string.
860 * input string that matches the pattern, starting at the specified index.
872 * If the pattern can match an empty string, an empty string may be returned.
902 * Returns the number of capturing groups in this matcher's pattern.
969 * the capture group exists in the pattern, but was not part of the last match.
984 * the capture group exists in the pattern, but was not part of the last match.
1038 * Return -1 if the capture group exists in the pattern but was not part of the match.
1057 * Return -1 if the capture group exists in the pattern but was not part of the match.
1098 * @param input The new string on which subsequent pattern matches will operate.
1118 * @param input The new string on which subsequent pattern matches will operate.
1321 * With anchoring bounds, pattern anchors such as ^ and $ will match at the start
1361 * Returns the pattern that is interpreted by this matcher.
1365 virtual const RegexPattern &pattern() const;
1369 * Replaces every substring of the input that matches the pattern
1374 * looking for matches of the pattern. Input that is not part of any
1388 * Replaces every substring of the input that matches the pattern
1393 * looking for matches of the pattern. Input that is not part of any
1412 * the pattern with the replacement string. This is a convenience
1416 * looking for a match of the pattern. Input that is not part
1435 * the pattern with the replacement string. This is a convenience
1439 * looking for a match of the pattern. Input that is not part
1474 * the input text that matched the regexp pattern. The replacement
1481 * does not exist in the pattern.
1506 * the input text that matched the regexp pattern. The replacement
1512 * does not exist in the pattern.
1553 * The pattern matches identify delimiters that separate the input
1558 * match the pattern (in the "this" object). This matcher
1582 * The pattern matches identify delimiters that separate the input
1587 * match the pattern (in the "this" object). This matcher
1619 * of the processor and the details of the specific pattern, but will
1648 * A limit is desirable because a malicious or poorly designed pattern can use
1801 RegexPattern *fPatternOwned; // Non-NULL if this matcher owns the pattern, and
1807 // Only created if the pattern contains backreferences.
1849 int64_t *fData; // Data area for use by the compiled pattern.