MCPcopy Create free account
hub / github.com/Nariod/RustPacker / dll_stem

Function dll_stem

src/pe_parser.rs:131–141  ·  view source on GitHub ↗
(dll_path: &Path)

Source from the content-addressed store, hash-verified

129}
130
131pub fn dll_stem(dll_path: &Path) -> String {
132 let s = dll_path
133 .to_str()
134 .unwrap_or("original");
135 let filename = s.rsplit(|c| c == '/' || c == '\\').next().unwrap_or(s);
136 filename
137 .strip_suffix(".dll")
138 .or_else(|| filename.strip_suffix(".DLL"))
139 .unwrap_or(filename)
140 .to_string()
141}
142
143#[cfg(test)]
144mod tests {

Callers 1

apply_proxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected