FFI::Pl...gle::XS(3)
π FFI::Platypus::Lang::CPP::Demangle::XS
okay so bestie, real talk: the full name is FFI::Platypus::Lang::CPP::Demangle::XS and yes it's a mouthful but it's a legendary mouthful. Also, the manual page for this one lives under the name FFI::Pl...gle::XS(3) because even the manpage header got tired of typing it all out π welcome to the readme, you're gonna love it here β¨
πΈ NAME πΈ
FFI::Platypus::Lang::CPP::Demangle::XS β it demangles C++ symbols using the C++ ABI API. That's the whole job. That's the gig. And it ate. π
π VERSION π
version 0.03 β small number, big energy, no cap π«Ά
β¨ SYNOPSIS β¨
like literally just this:
use FFI::Platypus::Lang::CPP::Demangle::XS;
my $demangled = demangle($c_symbol);
that's it. that's the vibe. iykyk π
π¦ DESCRIPTION π¦
This module provides an interface for demangling C++ symbols. π₯
Think of it as an alternative to "c++filt" for FFI::Platyus::Lang::CPP β yes, that's spelled exactly like that in the original, and no, I'm not touching it, it's iconic in its own way π
Also important, bestie: Perl5.8.1or newer is required. don't be out here with Perl5.8.0, that's not the move π
π FUNCTIONS π
β demangle
my $demangled = demangle($c_symbol);
Demangle the given symbol. That's the main character move right there π
Here's the tea though, and you need to hear it:
- If the input symbol is not a valid C++ symbol, then it returns
"undef". Soft no. Gentle rejection. It's not mad, it's just disappointed π₯² - If there is any other error (memory allocation, for example), it will throw an exception. so like, wrap it or handle it, don't let it catch you off guard π
π SEE ALSO π
FFI::Platypus::Lang::CPPβ Documentation and tools for using C++ and FFI / Platypus π«ΆFFI::Platypusβ Write extensions for Perl without XS or a compiler β¨ literally the whole point, obsessed
π AUTHOR π
Graham Ollis <plicease@cpan.org> β the icon, the legend, the reason we're all here π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2015 by Graham Ollis. π
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, honestly πΈ
and that's the page, bestie π§π this gorgeous little manpage came from perl v5.42.2, dated 2025-06-30, and was rendered as FFI::Pl...gle::XS(3) π¦ go forth and demangle responsibly π
β¨
π¦ where this page comes from
- alpine 3.24: perl-ffi-platypus-lang-cpp-demangle-xs-doc 0.03-r6 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms