| 24 | */ |
| 25 | |
| 26 | inline void trimLeft(std::string& str,const char *trimChars=defaultTrimChars) { |
| 27 | |
| 28 | std::string::size_type pos; |
| 29 | |
| 30 | if((pos=str.find_first_not_of(trimChars))==std::string::npos) |
| 31 | str.clear(); |
| 32 | else if(pos!=0) |
| 33 | str=str.substr(pos); |
| 34 | } |
| 35 | |
| 36 | |
| 37 | /** |
no test coverage detected