I know isspace()
is meant to work for ASCII, but I have UTF-8 text. If isspace()
looks only at the lower 7 bits, where UTF-8 and ASCII overlaps, it should be safe to use.
By safe to use I mean that it won't detect a Unicode character that is not a whitespace as whitespace. I know that there might be special Unicode whitespaces which it will not detect, but that is not a problem for me.
I.e. I'm OK with false negatives, so long as there are no positives. Is it correct to assume that?