Lines Matching refs:re
45 import re
64 return re.sub(r'(?m)^(?!#)', ' ', s)
85 s = re.sub(r'(?m)^\s*\n', '', s);
86 if (s != '' and re.match(r'[ \t]', s[0])):
112 labelRE = re.compile(r'(?<!%)%\(([^\)]+)\)[sd]')
127 # Start with the template namespace. Make a copy since we're
132 # If we're dealing with an InstObjParams object, we need
193 # Compose the op_wb string. If we're going to write back the
339 bitOp1ArgRE = re.compile(r'<\s*(\w+)\s*:\s*>')
341 bitOpWordRE = re.compile(r'(?<![\w\.])([\w\.]+)<\s*(\w+)\s*:\s*(\w+)\s*>')
342 bitOpExprRE = re.compile(r'\)<\s*(\w+)\s*:\s*(\w+)\s*>')
1141 # no more matches: we're done
1311 # no more matches: we're done
1375 stringRE = re.compile(r'"([^"\\]|\\.)*"')
1379 commentRE = re.compile(r'(^)?[^\S\n]*/(?:\*(.*?)\*/[^\S\n]*|/[^\n]*)($)?',
1380 re.DOTALL | re.MULTILINE)
1386 # destination. basically we're looking for an '=' that's not '=='.
1389 assignRE = re.compile(r'(\[[^\]]+\])?\s*=(?!=)', re.MULTILINE)
1408 instFlagRE = re.compile(r'Is.*')
1411 opClassRE = re.compile(r'.*Op|No_OpClass')
1589 symbols = ('makeList', 're', 'string')
1602 extn = re.compile('(\.[^\.]+)$') # isolate extension
1638 if re.search('-ns.cc.inc$', filename):
1686 extn = re.compile('(\.[^\.]+)$')
2293 # the full production (though the right brace), we're done
2375 args = re.sub('(?m)^', '//', args)
2376 args = re.sub('^//', '', args)
2509 return re.sub(r'%(?!\()', '%%', s)
2604 self.operandsRE = re.compile(operandsREString, re.MULTILINE|re.VERBOSE)
2613 re.compile(operandsWithExtREString, re.MULTILINE)
2645 includeRE = re.compile(r'^\s*##include\s+"(?P<filename>[^"]*)".*$',
2646 re.MULTILINE)
2651 replaced recursively). 'matchobj' is an re match object