{"id":13872289,"url":"https://github.com/mattgallagher/CwlDemangle","last_synced_at":"2025-07-16T02:30:29.322Z","repository":{"id":55901107,"uuid":"57469746","full_name":"mattgallagher/CwlDemangle","owner":"mattgallagher","description":"An implementation of Swift mangled symbol parsing and demangled printing in Swift.","archived":false,"fork":false,"pushed_at":"2020-12-08T13:33:02.000Z","size":246,"stargazers_count":118,"open_issues_count":3,"forks_count":25,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-03-14T22:38:53.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattgallagher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-01T01:58:31.000Z","updated_at":"2024-03-14T05:46:44.000Z","dependencies_parsed_at":"2022-08-15T09:00:54.965Z","dependency_job_id":null,"html_url":"https://github.com/mattgallagher/CwlDemangle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattgallagher%2FCwlDemangle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattgallagher%2FCwlDemangle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattgallagher%2FCwlDemangle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattgallagher%2FCwlDemangle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattgallagher","download_url":"https://codeload.github.com/mattgallagher/CwlDemangle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226095631,"owners_count":17572966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-05T23:00:38.780Z","updated_at":"2024-11-23T20:30:48.390Z","avatar_url":"https://github.com/mattgallagher.png","language":"Swift","readme":"# CwlDemangle\n\nA translation (line-by-line in many cases) of Swift's [Demangler.cpp](https://github.com/apple/swift/blob/master/lib/Demangling/Demangler.cpp) into Swift.\n\n## License note\n\nI usually place my code under an ISC-style license but since this project is derived from the Swift project, it is covered by that project's [Apache License 2.0 with runtime library exception](https://github.com/apple/swift/blob/master/LICENSE.txt).\n\n## Usage\n\t\nParse a `String` containing a mangled Swift symbol with the `parseMangledSwiftSymbol` function:\n\n```swift\nlet swiftSymbol = try parseMangledSwiftSymbol(input)\n```\n\t\t\nPrint the symbol to a string with `description` (to get the `.default` printing options) or use the `print(using:)` function, e.g.:\n\n```swift\nlet result = swiftSymbol.print(using:\n   SymbolPrintOptions.default.union(.synthesizeSugarOnTypes))\n```\n\n## Article\n\nRead more about this project in the associated article on Cocoa with Love: [Comparing Swift to C++ for parsing](https://www.cocoawithlove.com/blog/2016/05/01/swift-name-demangling.html)\n","funding_links":[],"categories":["Swift"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattgallagher%2FCwlDemangle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattgallagher%2FCwlDemangle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattgallagher%2FCwlDemangle/lists"}