自己造的c++轮子 字符串系列

这里有一些我自己写的c++轮子,可能效率不高,但是能用。
不定期更新,如果有错误或者bug还请不吝赐教。
git仓库

myString.cpp

内容:

  • 函数std::vector<std::string> sub_str(const std::string &str, const std::string &elements = " ")
    接受一个待分割字符串str,分割字符集elements(默认为空格分隔),返回待分割字符中的各个“单词”。
  • 函数std::vector<std::string> sub_str(const char* &chs, const std::string &elements = " ")
    接受一个待分割C-风格字符串chs,分割字符集elements(默认为空格分隔),返回待分割字符中的各个“单词”。
发布了26 篇原创文章 · 获赞 16 · 访问量 5856

猜你喜欢

转载自blog.csdn.net/weixin_44826484/article/details/105551289