|
ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
|
类型名称处理的内部命名空间 More...
Functions | |
| void | erase_parts (std::string &avalue, std::string_view aneedle) |
| 从字符串中删除所有指定的子串 | |
| void | erase_char (std::string &avalue, char achar) |
| 从字符串中删除所有指定的字符 | |
类型名称处理的内部命名空间
包含字符串清理的辅助函数
| void ngl::tools::name_detail::erase_char | ( | std::string & | avalue, |
| char | achar ) |
从字符串中删除所有指定的字符
| avalue | [in/out] 要处理的字符串 |
| achar | 要删除的字符 |
使用STL的remove+erase惯用法
| void ngl::tools::name_detail::erase_parts | ( | std::string & | avalue, |
| std::string_view | aneedle ) |
从字符串中删除所有指定的子串
| avalue | [in/out] 要处理的字符串 |
| aneedle | 要删除的子串 |
循环查找并删除所有匹配的子串