Crates.io | msvc-demangler |
lib.rs | msvc-demangler |
version | 0.10.1 |
source | src |
created_at | 2018-04-18 18:15:25.456646 |
updated_at | 2024-05-10 17:16:36.058211 |
description | A rust library that demangles / undecorates C++ symbols mangled by MSVC |
homepage | |
repository | https://github.com/mstange/msvc-demangler-rust |
max_upload_size | |
id | 61250 |
size | 248,944 |
msvc-demangler is a crate for Rust that can demangle C++ symbols which use the MSVC mangling scheme. These are emitted by the Microsoft C++ compiler for Windows as well as some others.
use msvc_demangler;
let flags = msvc_demangler::DemangleFlags::llvm();
let result = msvc_demangler::demangle("??_0klass@@QEAAHH@Z", flags).unwrap();
println!("{}", result);
It's functionality is similar to undname
on Windows and the underlying
UnDecorateSymbolName
function. Since Microsoft does not document the
mangling scheme this is likely not to be entirely accurate. When unclear
the implementation tries to follow what LLVM does.
This msvc-demangler is dual licensed under the MIT and the University of Illinois Open Source Licenses.
License: MIT/NCSA