[erlang-questions] byte() vs. char() use in documentation

Anthony Shipman als@REDACTED
Thu May 5 21:22:02 CEST 2011


On Fri, 6 May 2011 03:07:24 am David Mercer wrote:
> That's also a fair criticism.  I guess what I really meant is that "for all
> practical purposes" strings as lists of Unicode codepoints will work.

Suppose you were writing a word processor. Your software would be operating 
at the level of composite characters. Actions like insert and delete would
work at the level of composite characters. The position of the cursor would
be counted as the number of composite characters from the beginning of the 
buffer. A composite character is one or more code points.

-- 
Anthony Shipman                    Mamas don't let your babies 
als@REDACTED                   grow up to be outsourced.



More information about the erlang-questions mailing list