Changes in driver/cfa.cc [fcd1a469:09f34a84]
- File:
-
- 1 edited
-
driver/cfa.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
driver/cfa.cc
rfcd1a469 r09f34a84 53 53 return arg.substr( 0, pre.size() ) == pre; 54 54 } // 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 }60 55 61 56 // check if string has suffix
Note:
See TracChangeset
for help on using the changeset viewer.