github.com/erica/SwiftString



Documentation

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