On 06/02/2016 04:36 PM, tsbockman wrote:
Your examples will pass or fail depending on how (and whether) the 'ö'
grapheme is normalized.

And that's fine. Want graphemes, .byGrapheme wags its tail in that corner. Otherwise, you work on code points which is a completely meaningful way to go about things. What's not meaningful is the random results you get from operating on code units.

They only ever succeeds because 'ö' happens to
be one of the privileged graphemes that *can* be (but often isn't!)
represented as a single code point. Many other graphemes have no such
representation.

Then there's no dchar for them so no problem to start with.

s.find(c) ----> "Find code unit c in string s"


Andrei

Reply via email to