Doing stuff with and to Swift strings
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Sources
.DS_Store
.gitignore
Makefile
Package.swift
README.md

README.md

Swift Strings

BSD. Use at your own risk.

  • Character View: convert character view to string and count characters
  • Wackbards: reverse string
  • Ranges: use integer ranges with strings
  • NSString mimicking: rangeOfString, componentsSeparatedByString
  • Decomposition: first, last, butFirst, butLast, car, cdr, just, at, except
  • Subscripting: subscripting with get/set with integer subscripting
  • Numbers: Converting to and from hex, octal, binary