split.cpp
来自「unix/linux下拼写检查程序源码」· C++ 代码 · 共 20 行
CPP
20 行
#include <strstream>#include "split.hpp"using namespace std;using namespace acommon;namespace aspeller { vector<String> split(const String & str) { vector<String> data; istrstream s(str.c_str()); String item; while (s >> item) { data.push_back(item); } return data; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?