String Functions in MR-lib

© 2012, Martin Rinehart

trim()

trimmed_string = trim( untrimmed_string );

Returns a copy of the untrimmed string that has neither leading nor trailing blanks.

triml()

no_leading_blanks = triml( untrimmed_string );

Returns a copy of the untrimmed string beginning with the first non-blank.

trimr()

no_trailing_blanks = trimr( untrimmed_string );

Returns a copy of the untrimmed string that cuts off trailing blanks.


Feedback: MartinRinehart at gmail dot com

# # #