StringTools
HasGraphic
determine if a string has a graphic character
Calling Sequence
Parameters
Description
Thread Safety
Examples
HasGraphic(s)
s
-
string; string to test
The HasGraphic(s) command determines whether s has a graphic character. Graphic characters consist of the alphanumeric characters and the punctuation characters. (For more information, see HasAlphaNumeric and HasPunctuation.)
If s has a graphic character, HasGraphic returns true. Otherwise, false is returned.
All of the StringTools package commands treat strings as (null-terminated) sequences of 8-bit (ASCII) characters. Thus, there is no support for multibyte character encodings, such as unicode encodings.
The StringTools[HasGraphic] command is thread-safe as of Maple 15.
For more information on thread safety, see index/threadsafe.
with⁡StringTools:
HasGraphic⁡Random⁡100
true
HasGraphic⁡Random⁡100,cntrl
false
See Also
convert
length
string
StringTools[HasAlphaNumeric]
StringTools[HasPunctuation]
StringTools[IsGraphic]
StringTools[Select]
Download Help Document