字符串处理助手类 更多...
#include <helper.hpp>
静态 Public 成员函数 | |
| static size_t | split (const std::string &str, const std::string &sep, std::vector< std::string > &result) |
| 将字符串分割为多个子字符串 | |
字符串处理助手类
此类提供字符串处理相关的工具函数,例如字符串分割。
|
inlinestatic |
将字符串分割为多个子字符串
| str | 要分割的字符串 |
| sep | 分隔符 |
| result | 存储结果的向量 |
该方法将输入字符串根据指定的分隔符分割并存储在 result 中。
