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

Online Help

All Products    Maple    MapleSim


StringTools

  

HasVowel

  

determine if a string contains any vowels

 

Calling Sequence

Parameters

Description

Thread Safety

Examples

Calling Sequence

HasVowel(s)

Parameters

s

-

string; any Maple string

Description

• 

The HasVowel(s) command tests whether any 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 any character of the string s is a vowel character, then the value true is returned. Otherwise, the value 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[HasVowel] command is thread-safe as of Maple 15.

• 

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

Examples

withStringTools:

HasVowelfoobar

true

(1)

HasVoweldfghjkl

false

(2)

See Also

length

string

StringTools

StringTools[HasAlpha]

StringTools[Iota]

StringTools[IsVowel]