Home
last modified time | relevance | path

Searched refs:re (Results 1 - 25 of 42) sorted by relevance

12

/build/test/example/
H A Dperformance_test.py25 import re namespace
135 self.gn_exec_flag = re.compile(r"File execute times")
136 self.gn_script_flag = re.compile(r"Script execute times")
137 self.gn_end_flag = re.compile(r"Done\. Made \d+ targets from \d+ files in (\d+)ms")
138 self.root_dir_flag = re.compile(r"""loader args.*source_root_dir="([a-zA-Z\d/\\_]+)""""")
139 self.gn_dir_flag = re.compile(r"""loader args.*gn_root_out_dir="([a-zA-Z\d/\\_]+)""""")
140 self.ccache_start_flag = re.compile(r"ccache_dir =")
141 self.ccache_end_flag = re.compile(r"c targets overlap rate statistics")
142 self.c_targets_flag = re.compile(r"c overall build overlap rate")
143 self.build_error = re
[all...]
/build/tools/component_tools/
H A Dcomponent_node.py18 import re namespace
84 module_pattern = re.compile(r'(?<=ohos_shared_library\(").+(?="\))') if is_so else \
85 re.compile(r'(?<=ohos_executable\(").+(?="\))')
92 subsystem_pattern = re.compile(r'(?<=subsystem_name = ").+?(?="\n)')
96 part_pattern = re.compile(r'(?<=part_name = ").+?(?="\n)')
100 deps_pattern = re.compile(r'(?<=deps = \[).+?(?=])', re.DOTALL)
109 external_deps_pattern = re.compile(r'(?<=external_deps = \[).+?(?=])', re.DOTALL)
H A Dcomponents_dependence_analysis.py22 import re namespace
71 pattern = re.compile(r'ohos_shared_library.*?\}', re.DOTALL)
77 pattern = re.compile(r'ohos_executable.*?\}', re.DOTALL)
/build/tools/component_tools/static_check/
H A Dcsct_online_prehandle.py18 import re namespace
62 if re.match(pattern, line) is None:
71 if re.match(pattern, line) is None:
75 if re.search(key, line) is not None:
77 res = re.match(pattern, line)
90 if control_block["match_flag"] is False or re.match(pattern, line) is None:
93 res = re.match(pattern, line)
102 if control_block["match_flag"] is False or re.match(pattern1, line) is None:
105 res = re.match(pattern2, line)
/build/tools/component_tools/static_check/bundle_check/
H A Dbundle_check_common.py17 import re namespace
45 match = re.match(r'^[~]?(\d+)([a-zA-Z]*)$', string)
90 match_result = re.match(r'\s*sdk_version\s*=\s*"(\d+\.\d+).*"', line)
102 return re.match(r'^[a-z][a-z0-9_]{1,62}$', name)
109 return re.match(r'^@[a-z]+/([a-z][a-z0-9_]{1,62})$', name
H A Dbundle_check_online.py17 import re namespace
65 match = re.match(r'"(\w+)"\s*:\s*"(.*)"', line)
83 if not re.match(r'[a-z]+$', value):
139 match = re.match(r'^SystemCapability(\.[A-Z][a-zA-Z]{1,63}){2,6}$', value)
/build/tools/component_tools/static_check/gn_check/
H A Dgn_common_tools.py18 import re namespace
102 ptrn = re.compile(pattern, flags=re.S | re.M)
103 result = re.finditer(ptrn, content)
H A Dcheck_gn_online.py16 import re namespace
90 abs_iter = re.finditer(abs_path_pattern, line[1])
110 targets = re.finditer(target_pattern, line[2], re.M)
/build/hb/util/
H A Ddevice_util.py19 import re namespace
65 return re.search(kernel_pattern, data) and\
66 re.search(version_pattern, data)
76 kernel_list = re.findall(kernel_pattern, data)
77 version_list = re.findall(version_pattern, data)
100 compiler_list = re.findall(compiler_pattern, data)
H A Dlog_util.py20 import re namespace
107 pattern = re.compile(choice, re.DOTALL)
147 failed_pattern = re.compile(r'(ninja: error:.*?)\n', re.DOTALL)
167 failed_pattern = re.compile(
169 'ninja: build stopped)', re.DOTALL)
H A Dsystem_util.py21 import re namespace
37 useful_info_pattern = re.compile(r'\[\d+/\d+\].+')
64 info = re.findall(useful_info_pattern, line)
/build/ohos/ndk/
H A Dscan_ndk_targets.py22 import re namespace
47 if re.match(r'.*?("\S*#\S*")', line):
50 line = re.sub(r'(#.*?)\n', '', line)
62 contents = re.sub(r'\r\n', '\n', contents.decode())
85 pattern = re.escape(template_name) + r"\(\"(.*)\"\)"
86 targets = re.findall(pattern, ''.join(contents))
H A Dgenerate_ndk_docs.py19 import re namespace
64 contents = re.sub(k, v, contents)
/build/toolchain/mac/
H A Dfilter_libtool.py8 import re namespace
14 BLOCKLIST_PATTERNS = map(re.compile, [
/build/scripts/
H A Dcargo2gn.py25 import re namespace
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
[all...]
H A Dget_warnings.py28 import re namespace
42 if len(re.findall(_key, line_info, re.S)) >= 1:
/build/misc/mac/
H A Dfind_sdk.py16 import re namespace
33 return map(int, re.findall(r'(\d+)', version_str))
77 sdks = [re.findall('^MacOSX(1[0,1,2,3,4]\.\d+)\.sdk$', s) for s in
/build/toolchain/
H A Dget_concurrent_links.py14 import re namespace
42 memtotal_re = re.compile(r'^MemTotal:\s*(\d*)\s*kB')
H A Drustc_wrapper.py26 import re namespace
71 env_dep_re = re.compile("# env-dep:(.*)=.*")
/build/hb/util/preloader/
H A Dparse_vendor_product_config.py19 import re namespace
38 elif re.match(r'[0-9]+', val):
62 elif re.match(r'[0-9]+', val):
/build/templates/rust/
H A Drun_build_script.py17 import re namespace
36 rustc_version = re.compile(r"(\w+): (.*)")
57 rustc_cfg = re.compile("cargo:rustc-cfg=(.*)")
/build/lite/ndk/doc/
H A Dgen_doc.py23 import re namespace
52 contents = re.sub(key, value, contents)
/build/ohos/packages/
H A Dsystem_notice_info.py20 import re namespace
29 return re.split('[:|()]', label)[1]
/build/tools/module_dependence/
H A Ddependence_analysis.py17 import re namespace
41 _filename_snippet = re.search(r'(.*).json', _filename).group(1)
/build/templates/common/
H A Dinclude_relative_path_check.py19 import re namespace
65 include = re.match(r'#include\s+"([^">]+)"', line)
103 path = re.findall('path="(.*?)"', line)[0]

Completed in 8 milliseconds

12