CBMC
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
infix.h
Go to the documentation of this file.
1/*******************************************************************\
2
3Module: String infix shorthand
4
5Author: Chris Smowton, chris.smowton@diffblue.com
6
7\*******************************************************************/
8
11
12#ifndef CPROVER_UTIL_INFIX_H
13#define CPROVER_UTIL_INFIX_H
14
15#include <string>
16
17inline bool has_infix(
18 const std::string &s,
19 const std::string &infix,
20 size_t offset)
21{
22 return s.compare(offset, infix.size(), infix)==0;
23}
24
25#endif
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
Definition ai.h:562
bool has_infix(const std::string &s, const std::string &infix, size_t offset)
Definition infix.h:17