Home
last modified time | relevance | path

Searched refs:old_range (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/
H A Dhdf_vendor_mk_file.py54 old_range = hdf_utils.find_section(self.contents, module_)
55 if old_range:
57 old_range, module_)
65 old_range = hdf_utils.find_section(file_contents, module_content)
66 if not old_range:
68 hdf_utils.delete_and_save(file_contents, self.file_path, old_range)
H A Dhdf_module_kconfig_file.py163 old_range = hdf_utils.find_section(file_content, old_content)
164 if old_range:
166 old_range, new_content)
177 old_range = hdf_utils.find_section(file_content, old_content)
178 if not old_range:
180 hdf_utils.delete_and_save(file_content, self.k_path, old_range)
H A Dhdf_module_mk_file.py48 old_range = hdf_utils.find_section(self.contents, drv_section)
49 if old_range:
51 old_range, drv_section)
H A Dhdf_manager_config_file.py118 old_range = hdf_utils.find_section(self.contents, empty_device)
119 if old_range:
120 hdf_utils.delete_and_save(self.contents, self.file_path, old_range)
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/
H A Dhdf_utils.py147 def replace_and_save(file_content, file_path, old_range, new_section): argument
148 if not file_content or not file_path or not old_range or not new_section:
151 file_write.write(file_content[:old_range.start_pos])
153 file_write.write(file_content[old_range.end_pos + 1:])