ctype_print Check for printable character(s)

ctype_print

说明

boolctype_print
( string$text
)

Checks if all of the characters in the provided string,
text, are printable.

参数

text

The tested string.

返回值

Returns TRUE if every character in text
will actually create output (including blanks). Returns FALSE if
text contains control characters or characters
that do not have any output or control function at all.

The string 'string1' does not consist of all printable characters.
The string 'string2' consists of all printable characters.
The string 'string3' consists of all printable characters.

注释

Note:

If an integer between -128 and 255 inclusive is provided, it is interpreted as
the ASCII value of a single character (negative values have 256 added in order to allow
characters in the Extended ASCII range). Any other integer is interpreted as a string
containing the decimal digits of the integer.