We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca45a2b commit dda9efbCopy full SHA for dda9efb
src/util/infix.h
@@ -0,0 +1,22 @@
1
+/*******************************************************************\
2
+
3
+Module: String infix shorthand
4
5
+Author: Chris Smowton, [email protected]
6
7
+\*******************************************************************/
8
9
+#ifndef CPROVER_UTIL_INFIX_H
10
+#define CPROVER_UTIL_INFIX_H
11
12
+#include <string>
13
14
+inline bool has_infix(
15
+ const std::string &s,
16
+ const std::string &infix,
17
+ size_t offset)
18
+{
19
+ return s.compare(offset, infix.size(), infix)==0;
20
+}
21
22
+#endif
0 commit comments