(input: S)
| 5 | use binaryninjacore_sys::{BNRustSimplifyStrToFQN, BNRustSimplifyStrToStr}; |
| 6 | |
| 7 | pub fn simplify_str_to_str<S: BnStrCompatible>(input: S) -> BnString { |
| 8 | let name = input.into_bytes_with_nul(); |
| 9 | unsafe { BnString::from_raw(BNRustSimplifyStrToStr(name.as_ref().as_ptr() as *mut _)) } |
| 10 | } |
| 11 | |
| 12 | pub fn simplify_str_to_fqn<S: BnStrCompatible>(input: S, simplify: bool) -> QualifiedName { |
| 13 | let name = input.into_bytes_with_nul(); |
no test coverage detected