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

Function IsCommentOrEmpty

plugins/jieba/tools/cppjieba_dict.cpp:75–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool IsCommentOrEmpty(const std::string& line) {
76 if (line.empty()) {
77 return true;
78 }
79 for (size_t i = 0; i < line.size(); ++i) {
80 const unsigned char ch = static_cast<unsigned char>(line[i]);
81 if (!std::isspace(ch)) {
82 return false;
83 }
84 }
85 return true;
86}
87
88std::vector<std::string> ParseBaseDictValues(const std::vector<std::string>& tokens,
89 size_t line_number) {

Callers 2

LoadBaseDictFunction · 0.85
LoadUserDictFunction · 0.85

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected