IsSubSequence - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


StringTools

  

IsSubSequence

  

test whether a string is a subsequence of another string

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

IsSubSequence( s, t )

Parameters

s

-

string

t

-

string

Description

• 

The IsSubSequence(s,t) command returns the value true if s is a subsequence of t and the value false otherwise.

• 

If s is the empty string, the command returns true.

• 

To test whether a string is a substring of another, use StringTools[Search].

• 

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.

Examples

withStringTools:

IsSubSequenceabc,abc

true

(1)

IsSubSequenceabc,abx

false

(2)

IsSubSequenceabc,axbyc

true

(3)

See Also

length

StringTools

StringTools[LongestCommonSubSequence]

StringTools[Search]

 


Download Help Document