#demangle #undecorate #c-plus-plus #msvc

bin+lib msvc-demangler

A rust library that demangles / undecorates C++ symbols mangled by MSVC

10 releases (breaking)

0.8.0 Aug 12, 2019
0.7.0 Nov 29, 2018
0.6.0 May 22, 2018
0.5.0 May 17, 2018
0.1.0 Apr 18, 2018

#36 in Debugging

Download history 65/week @ 2019-08-03 154/week @ 2019-08-10 104/week @ 2019-08-17 301/week @ 2019-08-24 106/week @ 2019-08-31 102/week @ 2019-09-07 115/week @ 2019-09-14 184/week @ 2019-09-21 147/week @ 2019-09-28 105/week @ 2019-10-05 38/week @ 2019-10-12 126/week @ 2019-10-19 96/week @ 2019-10-26 148/week @ 2019-11-02 99/week @ 2019-11-09

579 downloads per month
Used in 3 crates (1 directly)

MIT/NCSA

89KB
2K SLoC

msvc-demangler

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.

Example

use msvc_demangler;
let flags = msvc_demangler::DemangleFlags::llvm();
let result = msvc_demangler::demangle("??_0klass@@QEAAHH@Z", flags).unwrap();
println!("{}", result);

Behavior

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.

License

This msvc-demangler is dual licensed under the MIT and the University of Illinois Open Source Licenses.

License: MIT/NCSA


lib.rs:

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.

Example

use msvc_demangler;
let flags = msvc_demangler::DemangleFlags::llvm();
let result = msvc_demangler::demangle("??_0klass@@QEAAHH@Z", flags).unwrap();
println!("{}", result);

Behavior

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.

License

This msvc-demangler is dual licensed under the MIT and the University of Illinois Open Source Licenses.

Dependencies