return the length of a string - Maple Help

Home : Support : Online Help : Programming : Names and Strings : StringTools Package : Miscellaneous Utilities : StringTools/Length

StringTools[Length] - return the length of a string

 Calling Sequence Length( s )

Parameters

 s - string; the string whose length is to be computed

Description

 • The Length command computes the length of the string s. This is the same value as is returned by the global length command, but it accepts only strings.

Examples

 > $\mathrm{with}\left(\mathrm{StringTools}\right):$
 > $\mathrm{Length}\left(""\right)$
 ${0}$ (1)
 > $\mathrm{Length}\left("abcde"\right)$
 ${5}$ (2)
 > $\mathrm{length}\left("abcde"\right)$
 ${5}$ (3)
 > $\mathrm{Length}\left("aqueosalinocalcalinoetaceoaluminiumosecupreovitriolic"\right)$
 ${53}$ (4)
 > $\mathrm{Length}\left({x}^{2}\right)$
 > $\mathrm{length}\left({x}^{2}\right)$
 ${5}$ (5)