Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yockow/swiftbootstring
An implementation of Bootstring in Swift.
https://github.com/yockow/swiftbootstring
Last synced: 24 days ago
JSON representation
An implementation of Bootstring in Swift.
- Host: GitHub
- URL: https://github.com/yockow/swiftbootstring
- Owner: YOCKOW
- License: mit
- Created: 2018-05-31T08:40:37.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2021-09-22T04:30:57.000Z (about 3 years ago)
- Last Synced: 2023-03-02T05:27:00.594Z (over 1 year ago)
- Language: Swift
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# What is `SwiftBootstring`?
`SwiftBootstring` is an implementaion of [Bootstring](https://tools.ietf.org/html/rfc3492) in [Swift](https://swift.org/).
It was originally written as a part of [SwiftCGIResponder](https://github.com/YOCKOW/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](https://tools.ietf.org/html/rfc3492) for details.# Requirements
## Swift
- Swift 6*
- Swift 5*(* including language mode of Swift 5, 4.2, or 4)
## OS
- macOS
- Ubuntu# Usage
```
import Bootstringprint("MajiでKoiする5秒前".addingPunycodeEncoding!)
// -> MajiKoi5-783gue6qz075azm5eprint("3B-ww4c5e180e575a65lsy2b".removingPunycodeEncoding!)
// -> 3年B組金八先生
```# License
MIT License.
See "LICENSE.txt" for more information.