Lines Matching refs:re

25 import re
62 VERSION_SUFFIX_RE = re.compile(r'^(.*)-[0-9]+\.[0-9]+\.[0-9]+(?:\+.*)?$')
91 package = re.compile(r'^ *\[package\]')
92 designated_re = re.compile('^ *' + designated + ' *= * "([^"]*)')
130 return re.sub('^/.*/' + pkg + '-[0-9a-f]*/out/', '.../out/', s)
300 deps = re.sub('=/[^ ]*/deps/', ' = ', arg)
302 self.core_deps.append(re.sub(' = .*', '', deps))
307 self.root_pkg_name = re.sub('^.*/', '',
308 re.sub('/' + TARGET_TEMP + '/.*/deps$', '', arg))
310 self.root_pkg_name = re.sub('^.*/', '',
311 re.sub('/[^/]+/[^/]+/deps$', '', arg))
316 self.static_libs.append(re.sub('static=', '', arg))
318 self.shared_libs.append(re.sub('dylib=', '', arg))
323 self.main_src = re.sub(r'^/[^ ]*/registry/src/', '.../', arg)
324 self.main_src = re.sub(r'^\.\.\./github.com-[0-9a-f]*/', '.../', self.main_src)
392 authors_re = re.compile(' *authors *= * \[(.*?)\]', re.S)
689 deps_libname = re.compile('^.* = lib(.*)-[0-9a-f]*.(rlib|so|rmeta)$')
695 lib_name = re.sub(' .*$', '', lib)
713 build_deps_libname = re.compile('^.* = lib(.*)-[0-9a-f]*.(rlib|so|rmeta)$')
722 lib_name = re.sub(' .*$', '', lib)
904 cargo_test_list_start_re = re.compile('^\s*Running (.*) \(.*\)$')
906 cargo_test_list_end_re = re.compile('^(\d+) tests, (\d+) benchmarks$')
907 compiling_pat = re.compile('^ +Compiling (.*)$')
911 # Otherwise we would add and merge tests before seeing they're empty.
938 rustc_re = re.compile('^ +Running `rustc (.*)`$')
941 rustc_vv_re = re.compile('^ +Running `.*CARGO_.*=.*$')
943 warning_output_file_re = re.compile('^ *--> ([^:]*):[0-9]+')
944 cargo_to_gn_running_re = re.compile('^### Running: .*$')
1012 rustc_vv_cmd_args = re.compile('^ *Running `.*CARGO_.*=.* rustc (.*)`$')