Searched refs:pattern (Results 1 - 14 of 14) sorted by relevance
/build/tools/component_tools/static_check/ |
H A D | csct_online_prehandle.py | 38 pattern = "diff --git" 39 if not line.startswith(pattern): 52 pattern = "new file" 53 if not line.startswith(pattern): 61 pattern = "---\ (a/)?.*" 62 if re.match(pattern, line) is None: 70 pattern = "\+\+\+\ b/(.*)" 71 if re.match(pattern, line) is None: 77 res = re.match(pattern, line) 89 pattern [all...] |
/build/scripts/ |
H A D | find.py | 17 parser.add_option('--pattern', default='*', help='File pattern to match.') 34 if fnmatch.filter(d, options.pattern): 40 if fnmatch.filter(d, options.pattern): 48 for f in fnmatch.filter(files, options.pattern):
|
/build/ohos/statistics/ |
H A D | build_overlap_statistics.py | 73 pattern = '*.o' 75 pattern = '*.build_config' 77 for file in fnmatch.filter(files, pattern): 106 pattern = '{}*'.format(path) 108 pattern = '../../{}*'.format(path) 111 for obj in fnmatch.filter(objs, pattern):
|
/build/toolchain/mac/ |
H A D | filter_libtool.py | 26 for pattern in BLOCKLIST_PATTERNS: 29 if pattern.match(line):
|
/build/tools/component_tools/ |
H A D | components_dependence_analysis.py | 71 pattern = re.compile(r'ohos_shared_library.*?\}', re.DOTALL) 72 results = pattern.findall(file_data) 77 pattern = re.compile(r'ohos_executable.*?\}', re.DOTALL) 78 results = pattern.findall(file_data)
|
/build/tools/component_tools/static_check/gn_check/ |
H A D | gn_common_tools.py | 92 def find_paragraph_iter(pattern: str, content: str) -> typing.Iterator: 94 匹配所有pattern 95 pattern: 要 102 ptrn = re.compile(pattern, flags=re.S | re.M)
|
H A D | check_gn.py | 123 pattern = 'product_name|device_name' 128 pattern, self.abs_check_path, excludes=self.black_dir) 154 pattern = 'product_name|device_name' 159 pattern, self.abs_check_path, excludes=self.black_dir)
|
/build/ohos/ndk/ |
H A D | scan_ndk_targets.py | 85 pattern = re.escape(template_name) + r"\(\"(.*)\"\)" 86 targets = re.findall(pattern, ''.join(contents))
|
/build/hb/services/ |
H A D | hpm.py | 86 pattern = r'^@ohos/hpm-cli\s*\|(?:[^|]*\|){3}([^|]*)' 88 match = re.match(pattern, line)
|
/build/hb/util/ |
H A D | component_util.py | 98 pattern = re.compile(r'(?<=module_list = )\[([^\[\]]*)\]') 99 results = pattern.findall(target_info)
|
H A D | log_util.py | 101 if isinstance(status, dict) and status.get('pattern'): 102 choices.append(status['pattern']) 103 status_map[status['pattern']] = status.get('code') 107 pattern = re.compile(choice, re.DOTALL) 108 match = pattern.search(data)
|
/build/templates/common/ |
H A D | check_deps_handler.py | 156 for pattern in part_pattern: 157 if dep_path.startswith(pattern):
|
H A D | generate_component_package.py | 324 pattern = r'^(\d+)\.(\d+)(-[a-zA-Z]+)?$' # 正则表达式匹配a.b[-后缀]格式的字符串 325 match = re.match(pattern, bundle_data['version']) 508 pattern = r"libs/(.*.)" 509 toolchain_gn = re.sub(pattern, 'libs/' + file_name + '\"', _gn)
|
/build/scripts/util/ |
H A D | build_utils.py | 307 pattern=None, 323 if pattern is not None: 324 if not fnmatch.fnmatch(name, pattern):
|
Completed in 6 milliseconds