MCPcopy Create free account
hub / github.com/catboost/catboost / ParseName

Function ParseName

library/cpp/testing/gtest/main.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 }
30
31 std::pair<std::string_view, std::string_view> ParseName(std::string_view name) {
32 auto pos = name.find("::");
33 if (pos == std::string_view::npos) {
34 return {name, "*"};
35 } else {
36 return {name.substr(0, pos), name.substr(pos + 2, name.size())};
37 }
38 }
39
40 std::pair<std::string_view, std::string_view> ParseParam(std::string_view param) {
41 auto pos = param.find("=");

Callers 1

ParseFlagsMethod · 0.70

Calls 3

findMethod · 0.45
substrMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected