apertium / lttoolbox

Finite state compiler, processor and helper tools used by apertium
http://wiki.apertium.org/wiki/Lttoolbox
GNU General Public License v2.0
18 stars 22 forks source link

Use character iterator when looping codepoints for isAlphabetic #128

Closed unhammer closed 2 years ago

unhammer commented 2 years ago

old code was checking 16-bit code units, thus giving wrong values for isAlphabetic (which expects a full code point)

Fixes #127

(Related: https://github.com/apertium/apertium/pull/152)