Hacker News new | past | comments | ask | show | jobs | submit login

I would point you to Swift's implementation of its "Character" type. Swift string handling is a model for how programming languages should approach Unicode characters and their complex combinations. The standard interface into all Swift strings is its "Character" type, which works exclusively with grapheme clusters.

[1] https://developer.apple.com/library/content/documentation/Sw...




And they are changing a bunch of it for Swift 4: https://github.com/apple/swift/blob/master/docs/StringManife...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: