从strFont= L"星期日,星期一,星期二,星期三,星期四,星期五,星期六"中分割出"星期日"至"星期六".
tstring CWidget::SplitFont(tstring strFont, int iFontIndex)
{
if (tstring::npos != strFont.find(L","))
{
for (int i = 0;i < iFontIndex;i++)
{
int iBeginPos = strFont.find(L",");
if (iBeginPos != tstring::npos )
{
strFont = strFont.substr(iBeginPos+1);
}
}
if (tstring::npos != strFont.find(L","))
{
int iEndPos = strFont.find(L",");
strFont = strFont.substr(0,iEndPos);
}
}
return strFont;
}
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。