Version 3 (modified by 7 years ago) ( diff ) | ,
---|
StrTrimRight
Trim trailing spaces, tabs, newlines, or carriage returns from a string.
string StrTrimRight(string& str);
Parameters
- str - string to be trimed
Return Value
- Returns the string with trailing spaces, tabs, newlines, or carriage returns removed.
Remarks
Example
string strVal = "123 \r"; string strNew = StrTrimLeft(strVal);
The string strNew will contain "123" without the trailing spaces and carriage return.
See Also
Note:
See TracWiki
for help on using the wiki.