Goto main content

isascii

Checks whether c is a 7-bit unsigned char value that fits into the ASCII character set.

ISASCII

NAME

isascii - Checks whether c is a 7-bit unsigned char value that fits into the ASCII character set.

SYNOPSIS

isascii("…");

DESCRIPTION

This function is used to determine whether the argument is a 7-bit unsigned character value that fits into the ASCII character set.

ASCII stands for American standart code for information interchange. It encodes 128 characters including latin letters, some punctuation, arabic digits, a blank space, and some other characters.

The argument of the function can be a single character or a string. In the latter case, each character has to fit into the ASCII character set for the function to be true.

EXAMPLES

res={_{isascii("abc_012")}}. return res=true.
res={_{isascii("abc_012é")}}. return res=false.
res={_{isascii("abc_012","12345")}}. return res=true.

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

© 2022 extenso Inc. All rights reserved.