Home | History | Annotate | Download | only in yarr

Lines Matching refs:Delegate

48 template<class Delegate>
52 friend const char* parse(FriendDelegate& delegate, const UString& pattern, unsigned backReferenceLimit);
73 * implements enough of the delegate interface such that it can be passed to
79 CharacterClassParserDelegate(Delegate& delegate, ErrorCode& err)
80 : m_delegate(delegate)
169 // parseEscape() should never call these delegate methods when
184 Delegate& m_delegate;
194 Parser(Delegate& delegate, const UString& pattern, unsigned backReferenceLimit)
195 : m_delegate(delegate)
210 * directly to the member delegate (m_delegate), instead tokens are
211 * emitted to the delegate provided as an argument. In the case of atom
213 * an argument, and as such the escape will be reported to the delegate.
216 * case a CharacterClassParserDelegate will be passed as the delegate that
226 bool parseEscape(EscapeDelegate& delegate)
242 delegate.atomPatternCharacter('\b');
244 delegate.assertionWordBoundary(false);
251 delegate.atomPatternCharacter('B');
253 delegate.assertionWordBoundary(true);
261 delegate.atomBuiltInCharacterClass(DigitClassID, false);
265 delegate.atomBuiltInCharacterClass(SpaceClassID, false);
269 delegate.atomBuiltInCharacterClass(WordClassID, false);
273 delegate.atomBuiltInCharacterClass(DigitClassID, true);
277 delegate.atomBuiltInCharacterClass(SpaceClassID, true);
281 delegate.atomBuiltInCharacterClass(WordClassID, true);
301 delegate.atomBackReference(backReference);
310 delegate.atomPatternCharacter('\\');
319 delegate.atomPatternCharacter(consumeOctal());
325 delegate.atomPatternCharacter('\f');
329 delegate.atomPatternCharacter('\n');
333 delegate.atomPatternCharacter('\r');
337 delegate.atomPatternCharacter('\t');
341 delegate.atomPatternCharacter('\v');
353 delegate.atomPatternCharacter(control & 0x1f);
358 delegate.atomPatternCharacter('\\');
367 delegate.atomPatternCharacter('x');
369 delegate.atomPatternCharacter(x);
378 delegate.atomPatternCharacter('u');
380 delegate.atomPatternCharacter(u);
386 delegate.atomPatternCharacter(consume());
401 void parseCharacterClassEscape(CharacterClassParserDelegate& delegate)
403 parseEscape<true>(delegate);
411 * delegate.
522 * This method loops over the input pattern reporting tokens to the delegate.
525 * the last token passed to the delegate was an atom (this is necessary to detect
765 Delegate& m_delegate;
780 * The parse method is passed a pattern to be parsed and a delegate upon which
785 * The Delegate must implement the following interface:
812 * delegate once. Once parsing is complete either regexEnd() or regexError() will
816 * callbacks to the delegate, describing the terms in the regular expression.
844 template<class Delegate>
845 const char* parse(Delegate& delegate, const UString& pattern, unsigned backReferenceLimit = UINT_MAX)
847 return Parser<Delegate>(delegate, pattern, backReferenceLimit).parse();