StringTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Names and Strings : StringTools Package : Character Class Tests : StringTools/HasPrintable

StringTools

  

HasPrintable

  

determine if a string has any printable characters

 

Calling Sequence

Parameters

Description

Thread Safety

Examples

Compatibility

Calling Sequence

HasPrintable(s)

Parameters

s

-

string; string to test

Description

• 

The HasPrintable(s) command determines whether s has any printable characters. Printable characters are identified by the predicate IsPrintable.

  

If s contains a printable character, then HasPrintable returns true. Otherwise, false is returned.

Thread Safety

• 

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

• 

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

Examples

withStringTools:

sΙ1,255:

HasPrintables

true

(1)

IsPrintables

false

(2)

HasPrintableSelectIsPrintable,s

true

(3)

HasPrintableRemoveIsPrintable,s

false

(4)

Compatibility

• 

The StringTools[HasPrintable] command was updated in Maple 2017.

See Also

convert

length

string

StringTools

StringTools[HasASCII]

StringTools[HasControlCharacter]

StringTools[IsPrintable]

StringTools[Select]