StringTools - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Programming : Names and Strings : StringTools Package : WhiteSpace Utilities : StringTools/Chomp

StringTools

 Chomp
 remove line endings from a string

 Calling Sequence Chomp( s )

Parameters

 s - Maple string

Description

 • The Chomp(s) command returns a copy of input string s with the line endings removed (if any).
 Note: This function is similar to the Perl function of the same name.
 • Compare with the related procedure StringTools[Chop].

Examples

 > $\mathrm{with}\left(\mathrm{StringTools}\right):$
 > $\mathrm{Chomp}\left("This is a test."\right)$
 ${"This is a test."}$ (1)

 See Also

## Was this information helpful?

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