Skip to content

arthurmco/demangler-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demangler-js

Travis badge Coveralls badge

A C++ name demangler written in pure Javascript code

For now, it only demangles C++ functions generated from GCC and Clang. MSVC will be supported soon, though.

You can also add support to your compiler (see below). And it doesn't even need to be C++!

Usage

const demangler = require('demangler-js');

const fname = demangler.demangle("_Z23this_function_is_a_testi");
console.log(fname);

// prints 'this_function_is_a_test(int)'

Since neither the variable names or the result type are encoded in the mangled string, it is not known, and it will print only the types of the parameters.

Roadmap

  • Support operators
  • Support Visual C++
  • Maybe support other languages, like Rust or Go.

License

MIT license.

About

C++ name demangler written in javascript

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published