|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <StringSplitter.hpp>
类 | |
| class | Iterator |
Public 成员函数 | |
| Splitter (StringView text, Delimiter delimiter, Predicate predicate) | |
| Iterator | begin () const |
| Iterator | end () const |
| template<typename Container > | |
| operator Container () const | |
| operator std::vector< std::string > () const | |
| operator std::vector< StringView > () const | |
字符串分隔器
该类用于将字符串 text 按照分隔符 delimiter 进行分割, 并根据分割条件 predicate 进行筛选。
| Delimiter | - 分隔符类型 |
| Predicate | - 分割条件类型 |
| StringType | - 字符串类型 |