Site hosted by Angelfire.com: Build your free website today!

strtrimr

PURPOSE ^

outstr = strtrim(str,trimType)

SYNOPSIS ^

function outstr = strtrimr(str,trimType)

DESCRIPTION ^

outstr = strtrim(str,trimType)
   Removes any leading, trailing, both, or even all spaces (spaces, tabs, endlines,...)
   from the str string.

   - str: string whose leading, trailing, both, or all spaces are to be removed
   - trimType: 'left', 'right', 'both' (default if empty or not given), 'full';
       'left' removes any leading spaces
       'right' removes any trailing spaces
       'both' removes any leading and trailing spaces
       'full' removes all space-type characters from the str string

   - outstr: resulting (trimmed) string

   NOOTES: if str is numeric no changes will be made (the same value will
           be returned)

-----------------------------------------------------------

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^


Generated on Sat 12-Mar-2005 01:01:49 by Rezaul Karim © 2004