Skip to content

zed-0xff/unmangler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unmangler

Unmangles mangled C++/Delphi names

Installation

Add this line to your application's Gemfile:

gem 'unmangler'

And then execute:

$ bundle

Or install it yourself as:

$ gem install unmangler

Usage

Full unmangle #1

  puts Unmangler.unmangle "@afunc$qxzcupi"  # Borland mangled name
  puts Unmangler.unmangle "?h@@YAXH@Z"      # MSVC mangled name

  # output:
  afunc(const signed char, int *)
  void __cdecl h(int)

Name-only unmangle #1

  puts Unmangler.unmangle "@afunc$qxzcupi", :args => false
  puts Unmangler.unmangle "?h@@YAXH@Z",     :args => false

  # output:
  afunc
  h

Full unmangle #2

  puts Unmangler.unmangle "@Forms@TApplication@SetTitle$qqrx17System@AnsiString"
  puts Unmangler.unmangle "?AFXSetTopLevelFrame@@YAXPAVCFrameWnd@@@Z"

  # output:
  __fastcall Forms::TApplication::SetTitle(const System::AnsiString)
  void __cdecl AFXSetTopLevelFrame(class CFrameWnd *)

Name-only unmangle #2

  puts Unmangler.unmangle "@Forms@TApplication@SetTitle$qqrx17System@AnsiString", :args => false
  puts Unmangler.unmangle "?AFXSetTopLevelFrame@@YAXPAVCFrameWnd@@@Z",            :args => false

  # output:
  Forms::TApplication::SetTitle
  AFXSetTopLevelFrame

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Unmangles mangled C++/Delphi names

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages