jingdian1956
// 替换路径中所有“\”为“/”
#include <algorithm>
static std::string ConvertSlash(std::string& strUrl)
{
    //size_t nLen = strlen(strPicTruePathBuff);
    //for (size_t i = 0 ; i < nLen; i++)
    //{
    //    if (strPicTruePathBuff[i] == \'\\\')
    //     strPicTruePathBuff[i] = \'/\';
    //}

    std::replace(strUrl.begin(), strUrl.end(), \'\\\', \'/\');
    return strUrl;
}

 

分类:

技术点:

相关文章:

  • 2021-10-08
  • 2021-05-18
  • 2021-12-25
  • 2022-12-23
  • 2021-10-31
猜你喜欢
  • 2022-02-09
  • 2022-02-09
  • 2022-02-09
  • 2022-02-09
  • 2022-12-23
  • 2022-02-09
相关资源
相似解决方案