CwlDemangle icon indicating copy to clipboard operation
CwlDemangle copied to clipboard

An implementation of Swift mangled symbol parsing and demangled printing in Swift.

Results 5 CwlDemangle issues
Sort by recently updated
recently updated
newest added

based on surrounding rawValues in SymbolPrintOptions, `displayProtocolConformances` should assign `1

Sorry for the very weird question 😅 Is there a way to go back to the mangled version? If for instance if I have a function: Mangled: ``` $s6Module3FooC3bar3bazSayAA3BarVGSi_tF ```...

this is a greate job by translate it form c++ to swift! I want demangle swift symbols in server, my server code is java [\sad],I do not good at java...

```swift let symbol = try parseMangledSwiftSymbol("_$s7SwiftUI17_Rotation3DEffectV14animatableDataAA14AnimatablePairVySdAFy12CoreGraphics7CGFloatVAFyAiFyAiFyAFyA2IGAJGGGGGvpMV") print(symbol.description) // Crash ``` This symbol comes from SwiftUICore. If I try to demangle it from terminal, it prints: > $ swift demangle s7SwiftUI17_Rotation3DEffectV14animatableDataAA14AnimatablePairVySdAFy12CoreGraphics7CGFloatVAFyAiFyAiFyAFyA2IGAJGGGGGvpMV...

Raw identifier support will land in the upcoming Swift 6.2 release, which allows the use of a bunch of characters in an identifier which was not possible before. I appreciate...