Goto main content

iswspace

Checks whether c is a white-space character.

ISWSPACE

NAME

iswspace - Checks whether c is a white-space character or not.

SYNOPSIS

iswspace("…");

DESCRIPTION

Checks whether c is a white-space character.

For the "C" locale, a white-space characters is any one of those: ' ' (0x20) space (SPC) \t (0x09) horizontal tab (TAB) \n (0x0a) newline (LF) \v (0x0b) vertical tab (VT) \f (0x0c) feed (FF) \r (0x0d) carriage return (CR)

Other locales may consider a different selection of characters as white-spaces, but it will never return true for isalnum. 

Iswspace operates on wide character while isspace operates on single byte character. If your locale is defined as multibyte, iswspace is the prefered solution.

EXAMPLES

if iswspace(a) then
        "ok";
else
        "nok";
endif

SEE ALSO

{{ include("includes/strings.sn") }}

AUTHOR

Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.