MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / rtrim_inplace

Function rtrim_inplace

src/common/string_utils.cpp:33–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void rtrim_inplace(std::wstring &s) {
34 s.erase(std::find_if(s.rbegin(), s.rend(), [](wchar_t ch) {
35 return iswspace(ch) == FALSE;
36 }).base(), s.end());
37}
38
39void trim_inplace(std::wstring &s) {
40 ltrim_inplace(s);

Callers 1

trim_inplaceFunction · 0.85

Calls 2

eraseMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected