MCPcopy Create free account
hub / github.com/axmolengine/axmol / rtrim

Function rtrim

core/ui/UIRichText.cpp:2428–2431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2426 return std::isspace(c, std::locale());
2427}
2428void rtrim(std::string& s)
2429{
2430 s.erase(std::find_if_not(s.rbegin(), s.rend(), isWhitespace).base(), s.end());
2431}
2432} // namespace
2433
2434float RichText::stripTrailingWhitespace(const Vector<ax::Node*>& row)

Callers 2

Console.cppFile · 0.50

Calls 4

eraseMethod · 0.45
rbeginMethod · 0.45
rendMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected