dmd.dmangle
Does name mangling for extern(D)
symbols.
Specification: Name Mangling
License
Source: dmangle.d
Documentation: https://dlang.org/phobos/dmd_dmangle.html
-
Declaration
const(char)*
mangleExact
(FuncDeclarationfd
);Returns exact mangled name of function.
-
Declaration
void
mangleToFuncSignature
(ref OutBufferbuf
, FuncDeclarationfd
);Mangle function signatures ('this' qualifier, and parameter types) to check conflicts in function overloads. It's different from
fd
.type.deco. For example,fd
.type.deco would benull
iffd
is an auto function.Parameters
OutBuffer
buf
OutBuffer
to write the mangled function signature toFuncDeclaration
fd
FuncDeclaration
to mangle -
Declaration
package nothrow bool
isValidMangling
(dcharc
);Return Value
true
if the given character is a valid mangled character -
Declaration
Type
decoToType
(const(char)[]deco
);Convert a string representing a type (the
deco
) and return its equivalent Type.Parameters
const(char)[]
deco
string containing the
deco
Return Value
null
for failed to convert Type for succeeded