Swiftpack.co -  YOCKOW/SwiftBootstring as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
YOCKOW/SwiftBootstring
An implementation of Bootstring in Swift.
.package(url: "https://github.com/YOCKOW/SwiftBootstring.git", from: "1.1.0")

What is SwiftBootstring?

SwiftBootstring is an implementaion of Bootstring in Swift. It was originally written as a part of SwiftCGIResponder.

What is Bootstring?

Bootstring is a string encoding methods.
One of instances of Bootstring is Punycode, that is used to encode internationalized domain name(IDN). Please refer to RFC 3492 for details.

Requirements

  • Swift 5 (including compatibility mode for Swift 4 or 4.2)
  • macOS or Linux

Usage

import Bootstring

print("MajiでKoiする5秒前".addingPunycodeEncoding!)
// -> MajiKoi5-783gue6qz075azm5e

print("3B-ww4c5e180e575a65lsy2b".removingPunycodeEncoding!)
// -> 3年B組金八先生

License

MIT License.
See "LICENSE.txt" for more information.

GitHub

link
Stars: 0
Last commit: 5 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API