StringTools - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Programming : Names and Strings : StringTools Package : Statistics : StringTools/MinChar

StringTools

 MinChar
 find the smallest character in a string
 MaxChar
 find the largest character in a string

 Calling Sequence MinChar( s ) MaxChar( s )

Parameters

 s - Maple string

Description

 • The MinChar(s) command computes the least character present in the string s. The MaxChar(s) command computes the greatest character present in the string s. Characters are ordered by their byte values (1-255).
 • 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

 > $\mathrm{with}\left(\mathrm{StringTools}\right):$
 > $\mathrm{MinChar}\left("badc"\right)$
 ${"a"}$ (1)
 > $\mathrm{MaxChar}\left("badc"\right)$
 ${"d"}$ (2)

 See Also