Chomp - Maple Help

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].
 • 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{Chomp}\left("This is a test. \n"\right)$
 ${"This is a test."}$ (1)