src/c++/include/common/StringUtil.hh
/**
     * @brief Test if string has given suffix
     *
     * @return true if str ends with suffix
     */
@brief Test if string has given suffix
@return true if str ends with suffix
@brief Test if string has given suffix @return true if str ends with suffix
static inline bool endsWith(std::string const& str, std::string const& suffix)
    {
        if (suffix.size() > str.size())
        {
            return false;
        }
        return str.substr(str.size() - suffix.size()) == suffix;
    }
static inline bool endsWith ( std :: string const & str , std :: string const & suffix ) { if ( suffix . size ( ) > str . size ( ) ) { return false ; } return str . substr ( str . size ( ) - suffix . size ( ) ) == suffix ; }
@brief Test if string has given suffix
 @return true if str ends with suffix
@brief Test if string has given suffix @return true if str ends with suffix