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