| Age | Commit message (Collapse) | Author |
|
|
|
Make read_codepoint_multibyte noinline so that the common case single
byte case gets inlined.
|
|
|
|
|
|
Do not throw on invalid codepoints by default, ignore them.
Fixes #2686
|
|
|
|
|
|
|
|
The previous implementation could yield different positions when
iterating forward and backward, leading to confusion in boost regex.
This makes an existing problem a bit more visible: iterating with
to_next and with read_codepoint wont behave the same way, as
read_codepoint will put the iterator onto the byte following the
utf8 codepoint, whereas to_next will put it on the next utf8
character start byte, which might be different if the buffer content
is not valid utf8.
Fixes #1195
|
|
|
|
Add a ColumnCount type and use it in place of CharCount whenever
more appropriate, take column size of codepoints into account for
vertical movements and docstring wrapping.
Fixes #811
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(that is most of the time when we are not concerned with displaying)
|
|
|
|
|
|
s/utf8::Codepoint/Codepoint/
|
|
|
|
|