node/lib/metasm/metasm/disassemble_api.rb
# returns a demangled C++ name
returns a demangled C++ name
returns a demangled C ++ name
def demangle_cppname(name)
		case name[0]
		when ??	
			name = name[1..-1]
			demangle_msvc(name[1..-1]) if name[0] == ??
		when ?_
			name = name.sub(/_GLOBAL__[ID]_/, '')
			demangle_gcc(name[2..-1][/\S*/]) if name[0, 2] == '_Z'
		end
	end
def demangle_cppname ( name ) case name [ 0 ] when ?? name = name [ 1 .. - 1 ] demangle_msvc ( name [ 1 .. - 1 ] ) if name [ 0 ] == ?? when ?_ name = name . sub ( / _GLOBAL__[ID]_ / , '' ) demangle_gcc ( name [ 2 .. - 1 ] [ / \S * / ] ) if name [ 0 , 2 ] == '_Z' end end
returns a demangled C++ name
returns a demangled C ++ name
# MSVC
name