Lines Matching refs:match
109 def replaceAnchorText(match, pageMap, xrefMap):
111 - match - match object, \1 = anchor, \2 = text
115 anchor = match.group(1)
116 text = match.group(2)
120 def replaceAnchorOnly(match, pageMap, xrefMap):
122 - match - match object, \1 = anchor
126 anchor = match.group(1)
130 def replaceAnchorTrailingText(match, pageMap, xrefMap):
132 - match - match object, \1 = anchor, \2 = text (may be empty)
136 anchor = match.group(1)
137 text = match.group(2)
205 match = titleAnchorPat.match(line)
206 if match is not None:
207 titleAnchor = match.group('anchor')
211 match = titlePat.match(line)
212 if match is not None:
213 return (Pages, match.group('title'), lineno, titleAnchor)
216 match = subtitlePat.match(line)
217 if match is not None:
218 return (Partials, match.group('title'), lineno, titleAnchor)
220 # If we do not find a match in the first maxLines lines, assume it
308 # Could use line.replace, but that does not return a match
324 lambda match: replaceAnchorText(match, pageMap, xrefMap),
329 lambda match: replaceAnchorOnly(match, pageMap, xrefMap),
336 lambda match: replaceAnchorTrailingText(match, pageMap, xrefMap),