jlandon / Alexandria

A library of Swift extensions to turbocharge your iOS development.
https://jlandon.github.io/Alexandria
MIT License
65 stars 8 forks source link

Feature/range conversion #17

Closed krider2010 closed 8 years ago

krider2010 commented 8 years ago

Sadly still necessary with half of the String/NSString APIs. Also very useful when working in a mixed Objective-C/Swift code base.

This is based on code found on stack overflow, and credited as such. Test cases added. A little contrived, but the latter is a much reduced version of what I originally needed this solution for.

hsoi commented 8 years ago

Useful addition. Apart from the one naming thing, 👍

kreeger commented 8 years ago

Very useful. Looks good to me! (And great test cases, too.) 👍