chars: optimize for the most common case
That is: elide a second test from the most travelled path: a valid character. This adds a second call of mblen() when parse_mbchar() is called on a terminating zero, but that should never happen.
Showing
+2 -3
Please register or sign in to comment