StringTools
HasControlCharacter
determine if a string contains a control character
Calling Sequence
Parameters
Description
Thread Safety
Examples
HasControlCharacter(s)
s
-
string; string to test
The HasControlCharacter( s ) command determines whether s contains a control character.
If s contains a control character, HasControlCharacter returns true. Otherwise, false is returned.
Note: A control character is a special non-printing character that is defined by the character set to which it belongs. For more information about control characters in Maple, see backslash.
The StringTools[HasControlCharacter] command is thread-safe as of Maple 15.
For more information on thread safety, see index/threadsafe.
with⁡StringTools:
s ≔ convert⁡`$`⁡1..255,'bytes':
length⁡s
255
HasControlCharacter⁡s
true
See Also
backslash
convert
length
string
StringTools[IsControlCharacter]
Download Help Document
What kind of issue would you like to report? (Optional)