Home
last modified time | relevance | path

Searched refs:prefix (Results 1 - 25 of 37) sorted by relevance

12

/developtools/hdc/hdc_rust/src/tar/
H A Dcompress.rs31 prefix: PathBuf,
40 prefix: PathBuf::new(), in new()
45 /// updata prefix
46 pub fn updata_prefix(&mut self, prefix: PathBuf) { in updata_prefix()
47 self.prefix = prefix; in updata_prefix()
90 if let Some(prefix) = self.prefix.to_str() { in add_entry()
91 if prefix == file { in add_entry()
97 let entry = Entry::new(self.prefix in add_entry()
[all...]
H A Ddecompress.rs87 pub fn decompress(&self, prefix: &str) -> io::Result<()> { in decompress()
88 let prefix = if !prefix.is_empty() { prefix } else { "./" }; in decompress()
90 let prefix_path = Path::new(prefix); in decompress()
96 format!("{} is not a dir", prefix), in decompress()
100 crate::debug!("need create dir {}", prefix); in decompress()
101 fs::create_dir_all(prefix)?; in decompress()
H A Dentry.rs34 // prefix: String,
35 prefix: PathBuf,
42 pub fn new(prefix: PathBuf, path: &str) -> Self { in new()
46 prefix, in new()
84 prefix: PathBuf::new(),
91 let name = self.prefix.join(self.header.name()); in name()
97 if self.prefix.components().count() != 0 { in updata_name()
99 if let Ok(sort_path) = name_path.strip_prefix(self.prefix.clone()) { in updata_name()
H A Dheader.rs70 /// 存储文件路径。tar只有100位,不够的使用prefix进行拼接
103 prefix: [u8; 155],
141 prefix: [0u8; 155], in new()
164 prefix: data[345..500].try_into().unwrap(),
192 let Ok(prefix) = String::from_utf8(self.prefix.to_vec()) else { in name()
199 let aa = prefix + &name; in name()
219 let (prefix, name) = bytes.split_at(index); in updata_name()
220 self.prefix[..prefix in updata_name()
[all...]
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/src/
H A Dmisc.py109 def add_prefix(content: str, prefix: str) -> str:
110 if content and (not content.startswith(prefix)):
111 return prefix+content
166 prefix = _config.get("default_prefix").get("shared_library")
174 return add_prefix(output_name, prefix)
184 prefix = _config.get("default_prefix").get("static_library")
189 return add_prefix(output_name, prefix)
201 prefix = _config.get("default_prefix").get("static_library")
204 prefix = _config.get("default_prefix").get("shared_library")
207 prefix
[all...]
/developtools/hdc/src/common/
H A Dentry.cpp25 std::optional<std::string> StripPrefix(const std::string& str, const std::string& prefix) in StripPrefix() argument
27 if (str.compare(0, prefix.length(), prefix) == 0) { in StripPrefix()
28 auto p_path = str.substr(prefix.length()); in StripPrefix()
35 Entry::Entry(std::string prefix, std::string path) in Entry() argument
37 this->prefix = prefix + Base::GetPathSep(); in Entry()
92 auto name = this->prefix + this->header.Name(); in GetName()
98 if (!this->prefix.empty()) { in UpdataName()
99 auto p_path = Hdc::StripPrefix(name, this->prefix); in UpdataName()
[all...]
H A Dcompress.cpp63 if (this->prefix.length() > 0 && path == this->prefix) { in AddEntry()
67 Entry entry(this->prefix, path); in AddEntry()
99 this->prefix = pathPrefix; in UpdataPrefix()
H A Dentry.h25 Entry(std::string prefix, std::string path);
58 std::string prefix; member in Hdc::Entry
H A Dcompress.h36 std::string prefix; member in Hdc::Compress
H A Dheader.cpp49 std::string fullName(reinterpret_cast<char*>(prefix)); in Name()
77 p = reinterpret_cast<char*>(this->prefix); in UpdataName()
80 WRITE_LOG(LOG_WARN, "snprintf_s prefix failed rc:%d sprefix:%s", rc, sprefix.c_str()); in UpdataName()
H A Dheader.h65 /// 存储文件路径。tar只有100位,不够的使用prefix进行拼接
98 uint8_t prefix[155]; member
/developtools/integration_verification/tools/startup_guard/config_parser_mgr/param/
H A Dsystem_parameter_parser.py23 def __init__(self, prefix, parameter=None):
24 self["prefix"] = prefix
45 self["prefix"], self["dacUser"], self["dacGroup"], self["dacMode"],
54 def __init__(self, prefix, parameter=None):
55 ParameterParser.__init__(self, prefix, parameter)
72 def __init__(self, prefix, parameter=None):
73 ParameterParser.__init__(self, prefix, parameter)
/developtools/profiler/device/plugins/ftrace_plugin/src/
H A Dstring_utils.cpp27 bool StringUtils::StartsWith(const std::string& str, const std::string& prefix) in StartsWith() argument
29 if (str.size() < prefix.size()) { in StartsWith()
32 return str.compare(0, prefix.size(), prefix) == 0; in StartsWith()
/developtools/packing_tool/packing_tool/frameworks/test/unittest/json/json_utils_test/
H A Djson_utils_test.cpp95 std::string prefix = "/data/test/"; in CheckFilePath() local
99 if (filePath.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), filePath.begin())) { in CheckFilePath()
/developtools/integration_verification/tools/deps_guard/elf_file_mgr/
H A Delf_file.py26 def __init__(self, file, prefix):
36 self["path"] = file[len(prefix):]
H A Delf_file_mgr.py32 def __init__(self, file, prefix):
33 super(ElfFileWithDepsInfo, self).__init__(file, prefix)
/developtools/hiperf/include/
H A Dperf_event_record.h160 virtual void DumpLog(const std::string &prefix) const;
184 void DumpLog(const std::string &prefix) const override;
200 void DumpLog(const std::string &prefix) const override;
216 void DumpLog(const std::string &prefix) const override;
249 void DumpLog(const std::string &prefix) const override;
272 void DumpLog(const std::string &prefix) const override;
/developtools/packing_tool/packing_tool/frameworks/test/unittest/zip_utils_test/
H A Dzip_utils_test.cpp80 std::string prefix = "/data/test/"; in CheckFilePath() local
84 if (filePath.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), filePath.begin())) { in CheckFilePath()
/developtools/profiler/device/plugins/ftrace_plugin/include/
H A Dstring_utils.h24 static bool StartsWith(const std::string& str, const std::string& prefix);
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/pkgs/
H A Dbasic_tool.py45 def translate_str_unit(x: str, dest: str, prefix: str = "~") -> float:
60 x = float(x.lstrip(prefix).rstrip(src_unit))
/developtools/profiler/device/plugins/native_daemon/src/
H A Dutilities.cpp192 const std::string prefix {"0x"}; in IsHexDigits()
194 if (prefix.compare(0, prefix.size(), effectStr.substr(0, prefix.size())) == 0) { in IsHexDigits()
195 effectStr = effectStr.substr(prefix.size(), effectStr.size() - prefix.size()); in IsHexDigits()
/developtools/packing_tool/packing_tool/frameworks/test/unittest/utils_Test/
H A Dutils_test.cpp71 std::string prefix = "/data/test/"; in CheckFilePath() local
75 if (filePath.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), filePath.begin())) { in CheckFilePath()
/developtools/profiler/hiebpf/include/
H A Dhhlog.h129 const char prefix[] {" [" #level "] %s %d %s: %s"}; \
132 prefix, __FILE__, __LINE__, __FUNCTION__, format) < 0) { \
/developtools/hiperf/src/
H A Dutilities.cpp238 const std::string prefix {"0x"}; in IsHexDigits()
240 if (prefix.compare(0, prefix.size(), effectStr.substr(0, prefix.size())) == 0) { in IsHexDigits()
241 effectStr = effectStr.substr(prefix.size(), effectStr.size() - prefix.size()); in IsHexDigits()
/developtools/profiler/device/services/ipc/src/
H A Dproto_encoder_plugin_generator.cpp31 std::string prefix = ""; in GetPrefix() local
36 prefix += fileName.c_str()[i]; in GetPrefix()
38 return prefix; in GetPrefix()

Completed in 14 milliseconds

12