Lines Matching refs:anchor
118 if not self.include_pattern(pattern, anchor=1):
125 if not self.exclude_pattern(pattern, anchor=1):
132 if not self.include_pattern(pattern, anchor=0):
139 if not self.exclude_pattern(pattern, anchor=0):
180 def include_pattern(self, pattern, anchor=1, prefix=None, is_regex=0):
188 If 'anchor' is true (the default), then the pattern match is more
190 'anchor' is false, both of these will match.
194 them, will match. 'anchor' is ignored in this case.
196 If 'is_regex' is true, 'anchor' and 'prefix' are ignored, and
207 pattern_re = translate_pattern(pattern, anchor, prefix, is_regex)
224 anchor=1, prefix=None, is_regex=0):
232 pattern_re = translate_pattern(pattern, anchor, prefix, is_regex)
293 def translate_pattern(pattern, anchor=1, prefix=None, is_regex=0):
323 else: # no prefix -- respect anchor flag
324 if anchor: