StringTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

StringTools

  

HasSpace

  

determine if a string has any space characters

 

Calling Sequence

Parameters

Description

Thread Safety

Examples

Calling Sequence

HasSpace(s)

Parameters

s

-

string; string to test

Description

• 

The HasSpace(s) command determines whether s has any space characters.

  

A space character is any one of the following:

Space Character

Meaning

ASCII Code

 

 

 

`` ''

space

32

``\t''

horizontal tab

9

``\n''

new line

10

``\r''

carriage return

13

``\f''

form feed

12

``\v''

vertical tab

11

  

If s is a space character, HasSpace returns true. Otherwise, false is returned.

Thread Safety

• 

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

• 

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

Examples

withStringTools:

HasSpacefoobar

false

(1)

HasSpacefoo bar

true

(2)

HasSpacefoo bar

true

(3)

HasSpacefoo bar

true

(4)

See Also

convert

length

string

StringTools

StringTools[HasASCII]

StringTools[HasControlCharacter]

StringTools[IsSpace]

StringTools[Select]