Home
last modified time | relevance | path

Searched refs:file_content (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/
H A Dcontent_parser.py38 file_content = self.load_file()
39 if file_content is None or file_content == '':
42 event_tree_count = self.pre_check_event_tree_count(file_content)
46 self.parse_result = DumpResult(file_content)
56 def pre_check_event_tree_count(self, file_content): argument
58 for line in file_content.split('\n'):
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/
H A Dhdf_utils.py88 def find_section(file_content, section_content): argument
89 if not file_content or not section_content:
91 start_pos = file_content.find(section_content.begin_flag)
94 end_pos = file_content.find(section_content.end_flag)
114 file_write.write(file_content[:pos_range.start_pos])
116 file_write.write(file_content[pos_range.start_pos:])
125 if len(file_content) > pos_range.end_pos + 1:
129 def append_and_save(file_content, file_path, new_section): argument
133 file_write.write(file_content)
137 def delete_and_save(file_content, file_path, delete_range): argument
[all …]
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/
H A Dhdf_module_kconfig_file.py158 file_content = hdf_utils.read_file(self.k_path)
163 old_range = hdf_utils.find_section(file_content, old_content)
165 hdf_utils.replace_and_save(file_content, self.k_path,
168 hdf_utils.append_and_save(file_content, self.k_path, new_content)
174 file_content = hdf_utils.read_file(self.k_path)
177 old_range = hdf_utils.find_section(file_content, old_content)
180 hdf_utils.delete_and_save(file_content, self.k_path, old_range)
/ohos5.0/base/update/packaging_tools/
H A Dutils.py591 file_content = r_f.read()
594 return file_content