Forum > General

more UTF8 confusing

<< < (7/7)


--- Quote from: circular on February 05, 2023, 05:52:41 pm ---
--- Quote from: Bogen85 on February 05, 2023, 02:47:45 pm ---EDIT: If it just went to the end of the string, then my utf8 string displayable character "splitter" function would not work, as I'm setting the max look ahead to maxint.
--- End quote ---
It doesn't go to the end of the string if there are no more marks. Though I would suggest to set MaxLookAhead to the actual remaining bytes of the string. Otherwise it could go beyond.

--- End quote ---

However, with an ansistring it would hit the null-terminating character, which would fail the checks for being a diacritical marker. So it would return without including the null as part of the byte count.



[0] Message Index

[*] Previous page

Go to full version