StringTools
Chomp
remove line endings from a string
Calling Sequence
Parameters
Description
Examples
Chomp( s )
s
-
Maple string
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.
with⁡StringTools:
Chomp⁡This is a test. \n
This is a test.
See Also
string
StringTools[Chop]
StringTools[Trim]
Download Help Document