MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / TrimRight

Method TrimRight

cpp/iedriver/StringUtilities.cpp:164–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164std::string StringUtilities::TrimRight(const std::string& input) {
165 size_t endpos = input.find_last_not_of(WHITESPACE);
166 return (endpos == std::string::npos) ? "" : input.substr(0, endpos + 1);
167}
168
169std::wstring StringUtilities::Trim(const std::wstring& input) {
170 return TrimRight(TrimLeft(input));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected