mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Inspired by #84826, I've dusted off and completely reworked a native implementation of integer-to-string conversion. Besides existing tests in this repository, the core of the implementation has been comprehensively tested in a separate package for all bases between 2–36 to demonstrate identical output for all 8-bit and 16-bit values, and for randomly generated 32-bit, 64-bit, and 128-bit values. Resolves #51902. <!-- If this pull request is targeting a release branch, please fill out the following form: https://github.com/swiftlang/.github/blob/main/PULL_REQUEST_TEMPLATE/release.md?plain=1 Otherwise, replace this comment with a description of your changes and rationale. Provide links to external references/discussions if appropriate. If this pull request resolves any GitHub issues, link them like so: Resolves <link to issue>, resolves <link to another issue>. For more information about linking a pull request to an issue, see: https://docs.github.com/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue --> <!-- Before merging this pull request, you must run the Swift continuous integration tests. For information about triggering CI builds via @swift-ci, see: https://github.com/apple/swift/blob/main/docs/ContinuousIntegration.md#swift-ci Thank you for your contribution to Swift! -->