wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/String/StrTrimLeft

Version 3 (modified by Don Wilson, 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.