ruediger
Joined 19 years ago
Karma
59
Submissions
37
Member since
Dec 21
Joined 19 years ago
Neither can be any other kind of Unicode string because of Combining Characters. That's why the Unicode standard (or an Annex) recommends algorithms for text segmentation.
(And if you really need to cut at a certain length then you can easily backtrack and find the beginning of the sequence by looking for the first byte with the MSB = 0)
https://launchpad.net/~cassou/+archive/emacs
http://emacs.naquadah.org/ (Debian)