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

Function ParseBaseDictValues

plugins/jieba/tools/cppjieba_dict.cpp:88–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88std::vector<std::string> ParseBaseDictValues(const std::vector<std::string>& tokens,
89 size_t line_number) {
90 if (tokens.size() != 3) {
91 throw std::runtime_error("invalid base dict line " +
92 std::to_string(line_number));
93 }
94 return std::vector<std::string>{tokens[1], tokens[2], "base"};
95}
96
97std::vector<std::string> ParseUserDictValues(const std::vector<std::string>& tokens,
98 size_t line_number) {

Callers 1

LoadBaseDictFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected