HasControlCharacter - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


StringTools

  

HasControlCharacter

  

determine if a string contains a control character

 

Calling Sequence

Parameters

Description

Thread Safety

Examples

Calling Sequence

HasControlCharacter(s)

Parameters

s

-

string; string to test

Description

• 

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.

• 

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.

Thread Safety

• 

The StringTools[HasControlCharacter] command is thread-safe as of Maple 15.

• 

For more information on thread safety, see index/threadsafe.

Examples

withStringTools:

sconvert`$`1..255,bytes:

lengths

255

(1)

HasControlCharacters

true

(2)

See Also

backslash

convert

length

string

StringTools

StringTools[IsControlCharacter]