isspace - Checks whether c is a white-space character.
isspace("…");
Checks whether c is a white-space character.
For the "C" locale, white-space characters are any of: ' ' (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 never a character that returns true for isalnum.
Iswspace operates on wide characters while isspace operates on single byte characters. If your locale is multibytes, iswspace would be the prefered solution.
if isspace(a) then "ok"; else "nok"; endif
{{ include("includes/strings.sn") }}
Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>
1.0 2014-09-09 21:24:14 laplante@sednove.com
Edit© 2024 extenso Inc. All rights reserved.