include/StringUtils.hxx
// stripts whole of sub, not any char in sub
stripts whole of sub, not any char in sub
stripts whole of sub not any char in sub
inline std::string rstripSub(const std::string &s, const std::string &sub)
{
	std::string::size_type p = s.rfind(sub);
	if (p == std::string::npos)
		return s;
	return s.substr(0, p - 0);
}
inline std :: string rstripSub ( const std :: string & s , const std :: string & sub ) { std :: string :: size_type p = s . rfind ( sub ) ; if ( p == std :: string :: npos ) return s ; return s . substr ( 0 , p - 0 ) ; }
stripts whole of sub, not any char in sub
stripts whole of sub not any char in sub