Avoid using isspace()/isdigit() for WCHARs.

Hugh McMaster hugh.mcmaster at outlook.com
Thu May 18 05:11:36 CDT 2017


On Thursday, 18 May 2017 6:16 PM, Hans Leidekker wrote:
> +/*
> +** WCHAR safe version of isdigit()
> +*/
> +static inline int isDigit(WCHAR c)
> +{
> +    return c >= '0' && c <= '9';
> +}
> +
> +/*
> +** WCHAR safe version of isspace(), except '\r'
> +*/
> +static inline int isSpace(WCHAR c)
> +{
> +    return c == ' ' || c == '\t' || c == '\n' || c == '\f';
> +}

Why not just use Wine's inbuilt inline functions? isdigitW() and isspaceW() are in wine/unicode.h, which is already included in msi/tokenize.c.



More information about the wine-devel mailing list