src/utils.cpp
/**
 * Trims the string from the right.
 */
Trims the string from the right.
Trims the string from the right .
void rtrim(std::string &s) {
    s.erase(std::find_if(s.rbegin(), s.rend(), [](int ch) {
        return !std::isspace(ch);
    }).base(), s.end());
}
void rtrim ( std :: string & s ) { s . erase ( std :: find_if ( s . rbegin ( ) , s . rend ( ) , [ ] ( int ch ) { return ! std :: isspace ( ch ) ; } ) . base ( ) , s . end ( ) ) ; }
Trims the string from the right.
Trims the string from the right .