StringTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

StringTools

  

IsVowel

  

determine if a string consists entirely of vowels

 

Calling Sequence

Parameters

Description

Thread Safety

Examples

Calling Sequence

IsVowel(s)

Parameters

s

-

string; any Maple string

Description

• 

The IsVowel(s) command tests whether every character in its argument s is an English language vowel.

  

The vowels are, by definition, the ten characters a, e, i, o, u, A, E, I, O and U. No other character is a vowel. In particular, the characters y and Y are not considered to be vowels for this test.

• 

If every character of the string s is a vowel character, then the value true is returned. Otherwise, the value false is returned. For the empty string, the tested condition is vacuously true.

Thread Safety

• 

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

• 

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

Examples

withStringTools:

IsVowelE

true

(1)

IsVowelT

false

(2)

seqIsVowelch,ch=aeiouAEIOU

true,true,true,true,true,true,true,true,true,true

(3)

IsVoweleye

false

(4)

sΙ1..255:

lengths

255

(5)

SelectIsVowel,s

AEIOUaeiou

(6)

IsConsonants→IsAlphasandnotIsVowels

IsConsonantsStringTools:−IsAlphasandnotStringTools:−IsVowels

(7)

RemoveIsConsonant,Ιa..z

aeiou

(8)

See Also

length

string

StringTools

StringTools[HasVowel]

StringTools[Iota]

StringTools[IsAlpha]

StringTools[Remove]

StringTools[Select]