strtriml#
Purpose#
Strips all whitespace characters from the left side of each element in a string array.
Format#
- y = strtriml(sa)#
- Parameters:
sa (NxM string array) – data
- Returns:
y (NxM string array) – contains contents in sa with all whitespace characters from the left side of each element stripped.
Examples#
// Create a string array with leading whitespace
sa = " hello" $| " world";
// Strip whitespace from the left
y = strtriml(sa);
print y;
The code above produces the following output:
hello
world
Source#
strfns.src
See also
Functions strtrimr(), strtrunc(), strtruncl(), strtruncpad(), strtruncr()