return the length of a string - Maple Help

Online Help

All Products    Maple    MapleSim


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

withStringTools:

Length

0

(1)

Lengthabcde

5

(2)

lengthabcde

5

(3)

Lengthaqueosalinocalcalinoetaceoaluminiumosecupreovitriolic

53

(4)

Lengthx2

Error, invalid input: StringTools:-Length expects its 1st argument, s, to be of type string, but received x^2

lengthx2

5

(5)

See Also

length, StringTools, with


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam