]> Kevux Git Server - fll/commit
Bugfix: fix UTF-8 whitespace detection and provide zero-width detection function
authorKevin Day <thekevinday@gmail.com>
Fri, 24 Apr 2020 02:43:01 +0000 (21:43 -0500)
committerKevin Day <thekevinday@gmail.com>
Fri, 24 Apr 2020 02:43:01 +0000 (21:43 -0500)
commitb3e951c53c4fddeeb4358a771f1947dc22037526
tree722d5b0270c3a759ef2b77c4732b866da3ca072c
parent866fa1c3c871d263746df7cdff1cb89a015d01c0
Bugfix: fix UTF-8 whitespace detection and provide zero-width detection function

The whitespace detection codes for UTF-8 were incorrect.

Non-printing characters, called zero-width, are not whitespace.
Move them out of the whitespace detection and provide a new function for detecting zero-width.

Handle additional UTF-8 whitespace character codes that I had previously missed.
level_0/f_utf/c/utf.c
level_0/f_utf/c/utf.h