|
ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
|
实现工具库中的杂项辅助函数 More...
Namespaces | |
| namespace | ngl::tools |
| 工具函数命名空间。 | |
| namespace | ngl::tools::name_detail |
| 类型名称处理的内部命名空间 | |
Functions | |
| void | ngl::tools::name_detail::erase_parts (std::string &avalue, std::string_view aneedle) |
| 从字符串中删除所有指定的子串 | |
| void | ngl::tools::name_detail::erase_char (std::string &avalue, char achar) |
| 从字符串中删除所有指定的字符 | |
| std::string & | ngl::tools::type_name_handle (std::string &aname) |
| 处理C++类型名称,使其更易读 | |
| std::vector< const char * > | ngl::tools::split_str (char *apbuff, int32_t abuff_cnt) |
| 按逗号分割字符缓冲区 | |
| bool | ngl::tools::bit (int32_t atype, int32_t acjson) |
| 检查指定位是否被设置 | |
| std::strong_ordering | ngl::tools::less_member () |
| 比较成员的递归终止函数 | |
| void | ngl::tools::erase_repeat (std::string &astr, char ach) |
| 删除字符串中连续的重复字符 | |
| std::string_view | ngl::tools::trim_ascii_spaces (std::string_view avalue) |
| 去除字符串首尾的ASCII空格 | |
| std::size_t | ngl::tools::strlen (const char *astr) |
| 安全的字符串长度计算 | |
实现工具库中的杂项辅助函数
包含类型名称处理、字符串分割、位操作、重复字符删除等 这些是底层工具函数,被上层模块广泛使用