Home | History | Annotate | Download | only in cc

Lines Matching refs:pos

155 def FindUnquotedQuote(contents, pos):
156 match = re.search(r"(?<!\\)(?P<quote>\")", contents[pos:])
157 return -1 if not match else match.start("quote") + pos
159 def FindNamespaceInBlock(pos, namespace, contents, whitelist=[]):
166 while pos < len(contents) and brace_count > 0:
167 if open_brace < pos: open_brace = contents.find("{", pos)
168 if close_brace < pos: close_brace = contents.find("}", pos)
169 if quote < pos: quote = FindUnquotedQuote(contents, pos)
170 if name < pos: name = contents.find(("%s::" % namespace), pos)
197 pos = next + 1