MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / StartsWith

Function StartsWith

include/LightGBM/utils/common.h:58–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58inline static bool StartsWith(const std::string& str, const std::string prefix) {
59 if (str.substr(0, prefix.size()) == prefix) {
60 return true;
61 } else {
62 return false;
63 }
64}
65
66inline static std::vector<std::string> Split(const char* c_str, char delimiter) {
67 std::vector<std::string> ret;

Callers 2

LoadModelFromStringMethod · 0.50
SetHeaderMethod · 0.50

Calls 2

substrMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected