remove line endings from a string - Maple 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

withStringTools:

ChompThis is a test.

This is a test.

(1)

See Also

string, StringTools, StringTools[Chop], StringTools[Trim]


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