- Timestamp:
- Sep 16, 2022, 11:19:04 AM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- 4407b7e
- Parents:
- 9a90092
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
driver/cfa.cc
r9a90092 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.