1 #ifndef STAN_LANG_AST_FUN_STRIP_CCDF_SUFFIX_DEF_HPP 2 #define STAN_LANG_AST_FUN_STRIP_CCDF_SUFFIX_DEF_HPP 12 return fname.substr(0, fname.size() - 6);
14 return fname.substr(0, fname.size() - 9);
std::string strip_ccdf_suffix(const std::string &dist_fun)
Return the result of removing the suffix from the specified function name indicating it is a CCDF...
Probability, optimization and sampling library.
bool ends_with(const std::string &suffix, const std::string &s)
Returns true if the specified suffix appears at the end of the specified string.