Lines Matching refs:re
64 import re
111 RUSTC_PAT = re.compile('^ +Running `rustc (.*)`$')
115 RUSTC_VV_PAT = re.compile('^ +Running `.*CARGO_.*=.*$')
117 RUSTC_VV_CMD_ARGS = re.compile('^ *Running `.*CARGO_.*=.* rustc (.*)`$')
120 CC_AR_VV_PAT = re.compile(r'^\[([^ ]*)[^\]]*\] running:? "(cc|ar)" (.*)$')
124 WARNING_FILE_PAT = re.compile('^ *--> ([^:]*):[0-9]+')
127 VERSION_SUFFIX_PAT = re.compile(r'^(.*)-[0-9]+\.[0-9]+\.[0-9]+$')
181 return re.sub('^/.*/' + pkg + '-[0-9a-f]*/out/', '.../out/', s)
408 extern_names = re.sub('=/[^ ]*/deps/', ' = ', args[i])
410 self.core_externs.append(re.sub(' = .*', '', extern_names))
425 self.root_pkg = re.sub(
426 '^.*/', '', re.sub('/' + TARGET_TMP + '/.*/deps$', '', args[i]))
428 self.root_pkg = re.sub('^.*/', '',
429 re.sub('/[^/]+/[^/]+/deps$', '', args[i]))
434 self.static_libs.append(re.sub('static=', '', args[i]))
436 self.shared_libs.append(re.sub('dylib=', '', args[i]))
450 self.main_src = re.sub(r'^/[^ ]*/registry/src/', '.../', args[i])
451 self.main_src = re.sub(r'^\.\.\./github.com-[0-9a-f]*/', '.../',
507 pkg = re.sub('/.*', '', pkg[4:])
703 return re.sub('/', '_', re.sub('.rs$', '', self.main_src))
827 deps_libname = re.compile('^.* = lib(.*)-[0-9a-f]*.(rlib|so|rmeta)$')
836 lib_name = re.sub(' .*$', '', lib)
1098 version_pat = re.compile(
1108 version_pat = re.compile(r'([0-9]+)\.([0-9]+)\.([0-9]+)$')
1163 pkg_section = re.compile(r'^ *\[package\]')
1164 name = re.compile('^ *name *= * "([^"]*)"')