ltrim - Eliminates whitespace from the beginning of a string.
ltrim(string,charlist)
This function is used to eliminate characters (from a defined set) from the left side of a string. Without the second parameter, characters from these groups will be trimmed:
It will return the string without the characters that were eliminated.
Note: In the followings examples, the _ between the { should be removed to make it work.
in: res={_{ltrim(" caroline")}} out:res=caroline in: res={_{ltrim(charlist:"o0..9","o0aaa098")}} out: res=0aaa098 in: res={_{ltrim(charlist:"o0..9","o0aaao098")}} out: res=0aaa098 in: res={_{ltrim(charlist:"o0..9","o0aaa98o")}} out: res= 0aaa98o The last o is not trimmed since it is out of the range. in: res={_{ltrim(charlist:"ò0..9","òóaaaÓ098")}}. out: res=óaaaÓ098.
{{ include("includes/strings.sn") }}
Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>
1.0 2014-09-09 21:24:14 laplante@sednove.com
Edit© 2024 extenso Inc. All rights reserved.