ends_with_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_ENDS_WITH_DEF_HPP
2 #define STAN_LANG_AST_FUN_ENDS_WITH_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 #include <string>
6 
7 namespace stan {
8  namespace lang {
9 
10  bool ends_with(const std::string& suffix, const std::string& s) {
11  size_t idx = s.rfind(suffix);
12  return idx != std::string::npos && idx == (s.size() - suffix.size());
13  }
14 
15  }
16 }
17 #endif
const XML_Char * s
Definition: expat.h:262
double lang
Definition: runWimpSim.h:113
bool ends_with(const std::string &suffix, const std::string &s)
enum BeamMode string