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