This is a NSString category useful for translating App.net entities into NSRanges, taking into account the relative offsets caused by NSString's internal UTF-16 encoding and the App.net API's use of UTF-32 code points as entity offsets.
This code is public domain, under the same license as SQLite. Please use it if you like.