| 2248 | } |
| 2249 | |
| 2250 | inline std::string StripTrailingSpaces(std::string str) { |
| 2251 | std::string::iterator it = str.end(); |
| 2252 | while (it != str.begin() && IsSpace(*--it)) |
| 2253 | it = str.erase(it); |
| 2254 | return str; |
| 2255 | } |
| 2256 | |
| 2257 | // The testing::internal::posix namespace holds wrappers for common |
| 2258 | // POSIX functions. These wrappers hide the differences between |