Home | History | Annotate | Download | only in unicode

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.
61 class RegexPattern;
79 RegexPatternDump(const RegexPattern *pat);
87 * Class <code>RegexPattern</code> represents a compiled regular expression. It includes
88 * factory methods for creating a RegexPattern object from the source (string) form
93 * <p>Class RegexPattern is not intended to be subclassed.</p>
97 class U_I18N_API RegexPattern: public UObject {
101 * default constructor. Create a RegexPattern object that refers to no actual
102 * pattern. Not normally needed; RegexPattern objects are usually
107 RegexPattern();
110 * Copy Constructor. Create a new RegexPattern object that is equivalent
115 RegexPattern(const RegexPattern &source);
118 * Destructor. Note that a RegexPattern object must persist so long as any
119 * RegexMatcher objects that were created from the RegexPattern are active.
122 virtual ~RegexPattern();
125 * Comparison operator. Two RegexPattern objects are considered equal if they
128 * @param that a RegexPattern object to compare with "this".
132 UBool operator==(const RegexPattern& that) const;
135 * Comparison operator. Two RegexPattern objects are considered equal if they
138 * @param that a RegexPattern object to compare with "this".
142 inline UBool operator!=(const RegexPattern& that) const {return ! operator ==(that);};
145 * Assignment operator. After assignment, this RegexPattern will behave identically
149 RegexPattern &operator =(const RegexPattern &source);
152 * Create an exact copy of this RegexPattern object. Since RegexPattern is not
155 * @return the copy of this RegexPattern
158 virtual RegexPattern *clone() const;
162 * Compiles the regular expression in string form into a RegexPattern
164 * way that RegexPattern objects are created.
166 * <p>Note that RegexPattern objects must not be deleted while RegexMatcher
181 * @return A regexPattern object for the compiled pattern.
185 static RegexPattern * U_EXPORT2 compile( const UnicodeString &regex,
190 * Compiles the regular expression in string form into a RegexPattern
192 * rather than the constructors, are the usual way that RegexPattern objects
195 * <p>Note that RegexPattern objects must not be deleted while RegexMatcher
209 * @return A regexPattern object for the compiled pattern.
213 static RegexPattern * U_EXPORT2 compile( const UnicodeString &regex,
220 * Compiles the regular expression in string form into a RegexPattern
222 * rather than the constructors, are the usual way that RegexPattern objects
225 * <p>Note that RegexPattern objects must not be deleted while RegexMatcher
237 * @return A regexPattern object for the compiled pattern.
241 static RegexPattern * U_EXPORT2 compile( const UnicodeString &regex,
256 * on the input. Note that a RegexPattern object must not be deleted while
293 * Note that a RegexPattern object must not be deleted while
392 // RegexPattern in an unusable state.
435 friend void U_EXPORT2 RegexPatternDump(const RegexPattern *);
457 * a RegexPattern object. Note that if several RegexMatchers need to be
459 * separately create and cache a RegexPattern object, and use
473 * a RegexPattern object. Note that if several RegexMatchers need to be
475 * separately create and cache a RegexPattern object, and use
885 * @return the RegexPattern for this RegexMatcher
888 virtual const RegexPattern &pattern() const;
1130 RegexMatcher(const RegexPattern *pat);
1136 friend class RegexPattern;
1156 const RegexPattern *fPattern;
1157 RegexPattern *fPatternOwned; // Non-NULL if this matcher owns the pattern, and