Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
MBCook
on Jan 17, 2014
|
parent
|
context
|
favorite
| on:
UTF-8 Everywhere
That's the purpose of the Rune type, I believe. When you iterate over text, it gives you one character at a time, not a fixed number of bytes.
pjscott
on Jan 17, 2014
[–]
That's iteration by code point, not by grapheme. For example, the grapheme 'ä' may be represented as two code points: an 'a' and a combining diaeresis.
http://en.wikipedia.org/wiki/Code_point
http://en.wikipedia.org/wiki/Grapheme
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: