3 ms·
The counts are actually to find the length of the following continuation bytes, and mark them to look for overlaps or underlaps between the end of one code poin
by kwillets 8y ago
The counts are actually to find the length of the following continuation bytes, and mark them to look for overlaps or underlaps between the end of one code point and the next.
- loeg 8y agoUnderlaps and overlaps would occur if sequences are invalid, i.e., overly long (or short) compared to the initial byte's prefix.