The demangle module converts mangled D symbols to a representation similar to what would have existed in code.
Demangles D mangled names. If it is not a D mangled name, it returns its argument name.
const(char)[] buf
| The string to demangle. |
char[] dst
| An optional destination buffer. |
Demangles a D mangled type.
const(char)[] buf
| The string to demangle. |
char[] dst
| An optional destination buffer. |
reencode a mangled symbol name that might include duplicate occurrences of the same identifier by replacing all but the first occurence with a back reference.
const(char)[] mangled
| The mangled string representing the type |
Mangles a D symbol.
T | The type of the symbol. |
const(char)[] fqn
| The fully qualified name of the symbol. |
char[] dst
| An optional destination buffer. |
assert(mangle!int("a.b") == "_D1a1bi"); assert(mangle!(char[])("test.foo") == "_D4test3fooAa"); assert(mangle!(int function(int))("a.b") == "_D1a1bPFiZi");
Mangles a D function.
T | function pointer type. |
const(char)[] fqn
| The fully qualified name of the symbol. |
char[] dst
| An optional destination buffer. |
C name mangling is done by adding a prefix on some platforms.
© 1999–2018 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/core_demangle.html