c++替换string内所有符合条件的子串
摘要:std::size_t replaceAll(string& inout, string what, string with) { std::size_t count{}; for (std::string::size_type pos{}; inout.npos != (pos = inout.f
阅读全文
posted @ 2021-07-30 16:07
posted @ 2021-07-30 16:07
posted @ 2021-07-28 21:57