Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • driver/cfa.cc

    rfcd1a469 r09f34a84  
    5353        return arg.substr( 0, pre.size() ) == pre;
    5454} // prefix
    55 
    56 static inline bool ends_with(const string & str, const string & sfix) {
    57         if (sfix.size() > str.size()) return false;
    58         return std::equal(str.rbegin(), str.rbegin() + sfix.size(), sfix.rbegin(), sfix.rend());
    59 }
    6055
    6156// check if string has suffix
Note: See TracChangeset for help on using the changeset viewer.