60 #ifndef ProcNameMgr_hpp 61 #define ProcNameMgr_hpp 135 const std::string& pfx,
const std::string& sfx)
137 bool isSane = (x.length() > (pfx.length() + sfx.length()));
138 size_t sfx_pos = x.length() - sfx.length();
142 x.compare(sfx_pos, sfx.length(), sfx) == 0 &&
143 x.compare(0, pfx.length(), pfx) == 0);
148 const std::string& pfx,
const std::string& sfx)
151 int len = x.length() - pfx.length() - sfx.length();
152 return x.substr(pfx.length(), len);
168 #endif // ProcNameMgr_hpp static const std::string s_procImport_sfx
static const std::string cilkmain
bool isGenerated(const std::string &x, const std::string &pfx, const std::string &sfx)
static const std::string s_procSlow_sfx
virtual std::string canonicalize(const std::string &name)=0
static const std::string s_procExport_sfx
virtual std::string canonicalize(const std::string &name)
std::string canonicalizeCppTemplate(const std::string &name)
static const std::string s_inletSlow_sfx
static const std::string s_inletFast_sfx
static const std::string s_inletNorm_sfx
std::string basename(const std::string &x, const std::string &pfx, const std::string &sfx)