Home
last modified time | relevance | path

Searched refs:match (Results 1 - 22 of 22) sorted by relevance

/build/tools/component_tools/static_check/bundle_check/
H A Dbundle_check_common.py45 match = re.match(r'^[~]?(\d+)([a-zA-Z]*)$', string)
46 if not match:
48 return (float(match.group(1)), match.group(2))
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.py65 match = re.match(r'"(\w+)"\s*:\s*"(.*)"', line)
66 if not match:
68 key = match.group(1)
69 value = match.group(2)
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)
140 if not match:
H A Dbundle_json_check.py232 match = BundleCheckTools.match_bundle_full_name(name)
233 if not match:
235 match = BundleCheckTools.match_unix_like_name(name.split('/')[1])
236 if not match:
370 match = re.match(r'^SystemCapability(\.[A-Z][a-zA-Z]{1,63}){2,6}$', i)
371 if not match:
/build/hb/util/preloader/
H A Dparse_vendor_product_config.py28 match = feat.index("=")
29 if match <= 0:
32 key = feat[:match].strip()
33 val = feat[match + 1:].strip().strip('"')
38 elif re.match(r'[0-9]+', val):
55 match = feat.index("=")
56 key = feat[:match].strip()
57 val = feat[match + 1:].strip().strip('"')
62 elif re.match(r'[0-9]+', val):
/build/templates/rust/
H A Drun_build_script.py37 match = rustc_version.match(lines.rstrip())
38 if match:
39 known_vars[match.group(1)] = match.group(2)
58 match = rustc_cfg.match(line.rstrip())
59 if match:
60 flags = "%s--cfg\n%s\n" % (flags, match.group(1))
/build/tools/component_tools/static_check/
H A Dcsct_online_prehandle.py62 if re.match(pattern, line) is None:
71 if re.match(pattern, line) is 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/toolchain/
H A Dget_concurrent_links.py44 match = memtotal_re.match(line) variable in _get_total_memory_in_bytes.MEMORYSTATUSEX
45 if not match:
47 return float(match.group(1)) * 2**10
H A Drustc_wrapper.py76 matched = env_dep_re.match(line)
/build/scripts/
H A Dcargo2gn.py96 if designated_re.match(line):
98 return designated_re.match(line).group(1)
100 is_package = package.match(line) is not None
123 if VERSION_SUFFIX_RE.match(s):
124 return VERSION_SUFFIX_RE.match(s).group(1)
691 libname_groups = deps_libname.match(lib)
718 libname_groups = build_deps_libname.match(lib)
912 if cargo_test_list_start_re.match(line):
913 current_test_name = cargo_test_list_start_re.match(line).group(1)
914 elif current_test_name and cargo_test_list_end_re.match(lin
[all...]
/build/hb/util/
H A Dproduct_util.py386 match = feat.index("=")
387 if match <= 0:
390 key = feat[:match].strip()
391 val = feat[match + 1:].strip().strip('"')
396 elif re.match(r'[0-9]+', val):
413 match = feat.index("=")
414 key = feat[:match].strip()
415 val = feat[match + 1:].strip().strip('"')
420 elif re.match(r'[0-9]+', val):
H A Dmonitor.py88 match = re.search(r'\d+', line)
89 return int(match.group()) * MEM_CONSTANT if match else RET_CONSTANT
H A Dlog_util.py108 match = pattern.search(data)
109 if not match:
111 ratio = len(match.group()) / len(data)
/build/hb/services/
H A Dhpm.py88 match = re.match(pattern, line)
89 if match:
90 latest_hpm_version = match.group(1).strip()
/build/toolchain/mac/
H A Dfilter_libtool.py29 if pattern.match(line):
/build/ohos/sdk/
H A Dparse_sdk_description.py120 match = re.search(r"(.*?):(.*?)", label)
121 if match:
122 gn = '{}/BUILD.gn'.format(match.group(1))
/build/scripts/util/
H A Dbuild_utils.py641 match = r.search(arg)
642 if not match:
645 if match.end() != len(arg):
649 lookup_path = match.group(1).split(':')
663 # This should match parse_gn_list. The output is either a GN-formatted list
666 new_args[i] = arg[:match.start()] + gn_helpers.to_gn_string(
669 new_args[i] = arg[:match.start()] + str(expansion)
/build/tools/component_tools/static_check/gn_check/
H A Dcheck_gn_online.py91 for match in abs_iter:
92 path = match.group().strip('"')
/build/templates/common/
H A Dgenerate_component_package.py325 match = re.match(pattern, bundle_data['version'])
326 if match:
327 a = match.group(1)
328 b = match.group(2)
329 suffix = match.group(3) if match.group(3) else ""
H A Dinclude_relative_path_check.py65 include = re.match(r'#include\s+"([^">]+)"', line)
/build/ohos/ndk/
H A Dscan_ndk_targets.py47 if re.match(r'.*?("\S*#\S*")', line):
/build/test/example/
H A Dperformance_test.py307 item and re.match(r"[\d.]+", item[0])][
310 item and re.match(r"[\d.]+", item[0])][:self.top_count]
/build/config/components/init/seccomp/scripts/
H A Dgenerate_code_from_policy.py159 k = const_pattern.match(line)

Completed in 11 milliseconds