Lines Matching defs:RegexPattern
28 * <code>RegexPattern</code> and <code>RegexMatcher</code>.
29 * <code>RegexPattern</code> objects represent a pre-processed, or compiled
41 * need for <code>RegexPattern</code> objects can usually be eliminated.
62 class RegexPattern;
81 RegexPatternDump(const RegexPattern *pat);
90 * Class <code>RegexPattern</code> represents a compiled regular expression. It includes
91 * factory methods for creating a RegexPattern object from the source (string) form
96 * <p>Class RegexPattern is not intended to be subclassed.</p>
100 class U_I18N_API RegexPattern: public UObject {
104 * default constructor. Create a RegexPattern object that refers to no actual
105 * pattern. Not normally needed; RegexPattern objects are usually
110 RegexPattern();
113 * Copy Constructor. Create a new RegexPattern object that is equivalent
118 RegexPattern(const RegexPattern &source);
121 * Destructor. Note that a RegexPattern object must persist so long as any
122 * RegexMatcher objects that were created from the RegexPattern are active.
125 virtual ~RegexPattern();
128 * Comparison operator. Two RegexPattern objects are considered equal if they
131 * @param that a RegexPattern object to compare with "this".
135 UBool operator==(const RegexPattern& that) const;
138 * Comparison operator. Two RegexPattern objects are considered equal if they
141 * @param that a RegexPattern object to compare with "this".
145 inline UBool operator!=(const RegexPattern& that) const {return ! operator ==(that);};
148 * Assignment operator. After assignment, this RegexPattern will behave identically
152 RegexPattern &operator =(const RegexPattern &source);
155 * Create an exact copy of this RegexPattern object. Since RegexPattern is not
158 * @return the copy of this RegexPattern
161 virtual RegexPattern *clone() const;
165 * Compiles the regular expression in string form into a RegexPattern
167 * way that RegexPattern objects are created.
169 * <p>Note that RegexPattern objects must not be deleted while RegexMatcher
184 * @return A regexPattern object for the compiled pattern.
188 static RegexPattern * U_EXPORT2 compile( const UnicodeString ®ex,
194 * Compiles the regular expression in string form into a RegexPattern
196 * way that RegexPattern objects are created.
198 * <p>Note that RegexPattern objects must not be deleted while RegexMatcher
211 * RegexPattern object or any RegexMatcher object created from it.
215 * @return A regexPattern object for the compiled pattern.
219 static RegexPattern * U_EXPORT2 compile( UText *regex,
224 * Compiles the regular expression in string form into a RegexPattern
226 * rather than the constructors, are the usual way that RegexPattern objects
229 * <p>Note that RegexPattern objects must not be deleted while RegexMatcher
243 * @return A regexPattern object for the compiled pattern.
247 static RegexPattern * U_EXPORT2 compile( const UnicodeString ®ex,
254 * Compiles the regular expression in string form into a RegexPattern
256 * rather than the constructors, are the usual way that RegexPattern objects
259 * <p>Note that RegexPattern objects must not be deleted while RegexMatcher
270 * RegexPattern object or any RegexMatcher object created from it.
275 * @return A regexPattern object for the compiled pattern.
279 static RegexPattern * U_EXPORT2 compile( UText *regex,
286 * Compiles the regular expression in string form into a RegexPattern
288 * rather than the constructors, are the usual way that RegexPattern objects
291 * <p>Note that RegexPattern objects must not be deleted while RegexMatcher
303 * @return A regexPattern object for the compiled pattern.
307 static RegexPattern * U_EXPORT2 compile( const UnicodeString ®ex,
313 * Compiles the regular expression in string form into a RegexPattern
315 * rather than the constructors, are the usual way that RegexPattern objects
318 * <p>Note that RegexPattern objects must not be deleted while RegexMatcher
329 * RegexPattern object or any RegexMatcher object created from it.
332 * @return A regexPattern object for the compiled pattern.
336 static RegexPattern * U_EXPORT2 compile( UText *regex,
351 * on the input. Note that a RegexPattern object must not be deleted while
370 * Flag to disambiguate RegexPattern::matcher signature
378 * on the input. Note that a RegexPattern object must not be deleted while
387 * @param flag Must be RegexPattern::PATTERN_IS_UTEXT; used to disambiguate
420 * Note that a RegexPattern object must not be deleted while
476 * the returned string may no longer reflect the RegexPattern object.
487 * UText, and that UText was modified, the returned UText may no longer reflect the RegexPattern
588 // RegexPattern in an unusable state.
632 friend void U_EXPORT2 RegexPatternDump(const RegexPattern *);
654 * a RegexPattern object. Note that if several RegexMatchers need to be
656 * separately create and cache a RegexPattern object, and use
670 * a RegexPattern object. Note that if several RegexMatchers need to be
672 * separately create and cache a RegexPattern object, and use
687 * a RegexPattern object. Note that if several RegexMatchers need to be
689 * separately create and cache a RegexPattern object, and use
711 * a RegexPattern object. Note that if several RegexMatchers need to be
713 * separately create and cache a RegexPattern object, and use
1232 * @return the RegexPattern for this RegexMatcher
1235 virtual const RegexPattern &pattern() const;
1600 RegexMatcher(const RegexPattern *pat);
1606 friend class RegexPattern;
1631 const RegexPattern *fPattern;
1632 RegexPattern *fPatternOwned; // Non-NULL if this matcher owns the pattern, and