本文整理汇总了C++中st::string::insert_string_char方法的典型用法代码示例。如果您正苦于以下问题:C++ string::insert_string_char方法的具体用法?C++ string::insert_string_char怎么用?C++ string::insert_string_char使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类st::string
的用法示例。
在下文中一共展示了string::insert_string_char方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: init_name
void baseline_reml::init_name(const ST::string & na)
{
FULLCOND::init_name(na);
ST::string underscore = "\\_";
ST::string helpname = na.insert_string_char('_',underscore);
term_symbolic = "f_{" + helpname + "}(" + helpname + ")";
priorassumptions.push_back("$" + term_symbolic + "$:");
priorassumptions.push_back("P-spline with second order random walk penalty");
ST::string knotstr;
if (knpos == equidistant)
knotstr = "equidistant";
else if (knpos == quantiles)
knotstr = "quantiles";
priorassumptions.push_back("Number of knots: " + ST::inttostring(nrknots));
priorassumptions.push_back("Knot choice: " + knotstr);
priorassumptions.push_back("Degree of Splines: " + ST::inttostring(degree));
if(gridpos==MCMC::equidistant)
{
priorassumptions.push_back("Grid choice for numerical integration: equidistant");
priorassumptions.push_back("Number of grid points: " + ST::inttostring(tgrid) +"\n");
}
else if(gridpos==MCMC::quantiles)
{
priorassumptions.push_back("Grid choice for numerical integration: quantiles");
priorassumptions.push_back("Number of quantiles: " + ST::inttostring(nrquant) +"\n");
priorassumptions.push_back("Number of points between quantiles: " + ST::inttostring(nrbetween) +"\n");
}
else
{
priorassumptions.push_back("Grid choice for numerical integration: all");
priorassumptions.push_back("Number of grid points: " + ST::inttostring(nrdiffobs) +"\n");
}
}