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

Online Help

All Products    Maple    MapleSim


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.

• 

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[HasPrintable] command is thread-safe as of Maple 15.

• 

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

Examples

withStringTools:

s := Iota( 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]