Lines Matching refs:re
61 import re
89 RUSTC_PAT = re.compile('^ +Running `rustc (.*)`$')
93 RUSTC_VV_PAT = re.compile('^ +Running `.*CARGO_.*=.*$')
95 RUSTC_VV_CMD_ARGS = re.compile('^ *Running `.*CARGO_.*=.* rustc (.*)`$')
98 CC_AR_VV_PAT = re.compile(r'^\[([^ ]*)[^\]]*\] running:? "(cc|ar)" (.*)$')
102 WARNING_FILE_PAT = re.compile('^ *--> ([^:]*):[0-9]+')
105 VERSION_SUFFIX_PAT = re.compile(r'^(.*)-[0-9]+\.[0-9]+\.[0-9]+$')
151 return re.sub('^/.*/' + pkg + '-[0-9a-f]*/out/', '.../out/', s)
314 self.main_src = re.sub('^/[^ ]*/registry/src/', '.../', args[i])
315 self.main_src = re.sub('^.../github.com-[0-9a-f]*/', '.../',
353 extern_names = re.sub('=/[^ ]*/deps/', ' = ', args[i])
355 self.core_externs.append(re.sub(' = .*', '', extern_names))
371 self.root_pkg = re.sub(
372 '^.*/', '', re.sub('/' + TARGET_TMP + '/.*/deps$', '', args[i]))
374 self.root_pkg = re.sub('^.*/', '',
375 re.sub('/[^/]+/[^/]+/deps$', '', args[i]))
380 self.static_libs.append(re.sub('static=', '', args[i]))
382 self.shared_libs.append(re.sub('dylib=', '', args[i]))
431 pkg = re.sub('/.*', '', pkg[4:])
531 suffix = re.sub('/', '_', re.sub('.rs$', '', self.main_src))
600 deps_libname = re.compile('^.* = lib(.*)-[0-9a-f]*.(rlib|so|rmeta)$')
609 lib_name = re.sub(' .*$', '', lib)
855 pkg_section = re.compile(r'^ *\[package\]')
856 name = re.compile('^ *name *= * "([^"]*)"')