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