| 454 | } |
| 455 | |
| 456 | void StringTrimLeft(std::string* str) { |
| 457 | size_t start_pos = 0; |
| 458 | size_t end_pos = str->length(); |
| 459 | while (start_pos != end_pos && isspace(str->at(start_pos))) |
| 460 | start_pos++; |
| 461 | *str = str->substr(start_pos); |
| 462 | } |
| 463 | |
| 464 | std::string StringTrimLeft(const StringPiece& str) |
| 465 | { |
nothing calls this directly
no test coverage detected