TrimLeft
Trim leading whitespace characters from the string. It removes newline, space, and tab characters.
Removes a particular character from the beginning of this string.
Removes a group of particular characters from the begining of the string.
void TrimLeft( )
void TrimLeft( char chTarget )
void TrimLeft( LPCSTR lpszTargets )
None
None.
EX1
//Trim left whitespace characters from the string void string_TrimLeft_ex1() { string str=" Hello World"; str.TrimLeft(); out_str(str);//"Hello World" }
EX2
//Removes a particular character from the begining of the string void string_TrimLeft_ex2() { string str="aaabbbcccaaa"; str.TrimLeft('a'); out_str(str);//"bbbcccaaa" }
EX3
//Removes a group of particular characters from the begining of the string void string_TrimLeft_ex3() { string str = " ######\t\tOrigin is good!\t##"; str.TrimLeft(" #\t"); out_str(str);//"Origin is good! ##" }
string::Format, string::Left, string::MakeLower, string::MakeUpper, string::Mid, string::Right
origin.h