MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / SplitWhitespace

Function SplitWhitespace

plugins/jieba/tools/cppjieba_dict.cpp:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65std::vector<std::string> SplitWhitespace(const std::string& line) {
66 std::vector<std::string> tokens;
67 std::istringstream iss(line);
68 std::string token;
69 while (iss >> token) {
70 tokens.push_back(token);
71 }
72 return tokens;
73}
74
75bool IsCommentOrEmpty(const std::string& line) {
76 if (line.empty()) {

Callers 2

LoadBaseDictFunction · 0.85
LoadUserDictFunction · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected