Description: |
call:Trim string char max |
Dependencies: |
:lTrim, :rTrim |
Script: |
1. 2. 3. 4. 5. 6. 7. 8. 9.
|
:Trim string char max -- strip white spaces (or other characters) from the beginning and end of a string
:: -- string [in,out] - string variable to be trimmed
:: -- char [in,opt] - character to be trimmed, default is space
:: -- max [in,opt] - maximum number of characters to be trimmed from the end, default is 32
:$created 20060101 :$changed 20080219 :$categories StringManipulation
:$source https://www.dostips.com
call:lTrim "%~1" "%~2"
call:rTrim "%~1" "%~2" "%~3"
EXIT /b
|
|