1 | | STrTrimLeft |
| 1 | = StrTrimLeft = |
| 2 | Trim leading spaces, tabs, newlines, or carriage returns from a string. |
| 3 | |
| 4 | {{{ |
| 5 | string StrTrimLeft(string& str); |
| 6 | }}} |
| 7 | |
| 8 | == Parameters == |
| 9 | |
| 10 | * str - string to be trimed |
| 11 | |
| 12 | == Return Value == |
| 13 | |
| 14 | * Returns the string with leading spaces, tabs, newlines, or carriage returns removed. |
| 15 | |
| 16 | == Remarks == |
| 17 | |
| 18 | |
| 19 | == Example == |
| 20 | |
| 21 | {{{ |
| 22 | string strVal = " 123"; |
| 23 | string strNew = StrTrimLeft(strVal); |
| 24 | }}} |
| 25 | |
| 26 | The string strNew will contain "123" without the leading spaces. |
| 27 | |
| 28 | == See Also == |
| 29 | |
| 30 | * StrToInt |
| 31 | * StrFmt |
| 32 | |