| 469 | } |
| 470 | |
| 471 | void StringTrimRight(std::string* str) |
| 472 | { |
| 473 | int end_pos = static_cast<int>(str->length()) - 1; |
| 474 | while (end_pos >= 0 && isspace(str->at(end_pos))) |
| 475 | end_pos--; |
| 476 | *str = str->substr(0, end_pos + 1); |
| 477 | } |
| 478 | |
| 479 | std::string StringTrimRight(const StringPiece& str) |
| 480 | { |
nothing calls this directly
no test coverage detected