sitelogo
chop/2

Cuts off leading and trailing white space.

chop(+string, -result)

chop/2 Cuts off leading and trailing white space of "string".

Arguments

	string		atom
	result		atom

Examples

	chop('  one two  ', L)		=>  	L = 'one two'

Standard

This predicate is not part of the ISO-Prolog Standard.

See also

regular expression, match/2/3, match_all/3, substitute/4, substitute_all/4, split/2/3, chop/2, get_line/1/2,


Up read on...
scroll to top managed with ubiCMS