demangle: Mangle and Demangle C++ Symbols

View source: R/utils.R

demangleR Documentation

Mangle and Demangle C++ Symbols

Usage

demangle(str, status = FALSE)

Arguments

str

a character vector to demangle

status

a logical value. If TRUE, then the return value is an integer vector giving the value of the demangle operation. This can be useful for determining why a string was not demangled and a NA is returned for an element when status was FALSE.

Value

If status is FALSE a character vector with elements corresponding to those in the input str. These are the human-readable demangled strings. If there was an error demangling an element of str, the corresponding element in the result willl be NA.

If status is TRUE, an integer vector.

Author(s)

DTL

Examples

demangle("_ZN9wikipedia7article6formatE")
demangle(c("_ZN9wikipedia7article6formatE", "_ZN9Something6Inside6Deeper10deepMethodEv"))

demangle(c("_ZN9wikipedia7article6formatE", "_ZN9Something6Inside6Deeper10deepMethodEv", "bob"), status = TRUE)

duncantl/Rllvm documentation built on April 23, 2024, 6:14 p.m.