MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / StripTrailingSpaces

Function StripTrailingSpaces

tests/gtest/gtest.h:2250–2255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2248}
2249
2250inline 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

Callers 3

RegisterMethod · 0.85
RegisterMethod · 0.85
SplitIntoTestNamesFunction · 0.85

Calls 3

IsSpaceFunction · 0.85
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected