jwells89 / Titlecaser

Port of John Gruber's Title Case to Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Titlecaser

This package is a port of John Gruber's Title Case to Swift. David Gouch's To Title Case was used as a starting point, but the project has quickly evolved into its own.

Test cases are a mix of those from the original project and those of To Title Case.

Requirements

Should work with any platform supported by Swift 5.7. In my own testing, it works across all current Apple platforms as well as Fedora Linux.

Usage

let titleCased = "this is a string that needs title case".toTitleCase()
> "This Is a String That Needs Title Case"

About

Port of John Gruber's Title Case to Swift

License:MIT License


Languages

Language:Swift 100.0%