GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AVGTechnologies/cppmangle: A library for demangling and mangling Visual Studio C++ names.

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
cppmangle
cppmangle
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
setup.py
setup.py
 
 

Repository files navigation

cppmangle

Build Status

A library for demangling and mangling Visual Studio C++ names.

Installation

Simply download from PyPI or download from Github.

$ pip install cppmangle

Getting started

The installation will install a package named cppmangle and a command-line script cppdemangle.

Pass the script one or more mangled names to get them demangled.

$ cppdemangle '?get_minion_stats@@YA?AUminion_stats@@H@Z'
struct minion_stats __cdecl get_minion_stats(int)

You can also pass a filename prefixed with an at-sign, the script will demangle each line in the file.

$ cppdemangle @names.txt

Using the library

You can also use the library from Python code by importing cppmangle module. Use demangle function to turn the mangled name into a AST object (see the ast module for more) and mangle to turn it back to a string. The function cdecl_sym will turn the AST object into a string containing a C++ declaration.

>>> from cppmangle import demangle, cdecl_sym
>>> demangle('?get_minion_stats@@YA?AUminion_stats@@H@Z')
<cppmangle.ast.Function object at 0x02754F30>
>>> cdecl_sym(_)
'struct minion_stats __cdecl get_minion_stats(int)'

About

A library for demangling and mangling Visual Studio C++ names.

Resources

Readme
License
Activity
Custom properties

Stars

28 stars

Watchers

5 watching

Forks

11 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.