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

Function RemoveQuotationSymbol

include/LightGBM/utils/common.h:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49inline static std::string RemoveQuotationSymbol(std::string str) {
50 if (str.empty()) {
51 return str;
52 }
53 str.erase(str.find_last_not_of("'\"") + 1);
54 str.erase(0, str.find_first_not_of("'\""));
55 return str;
56}
57
58inline static bool StartsWith(const std::string& str, const std::string prefix) {
59 if (str.substr(0, prefix.size()) == prefix) {

Callers 2

LGBM_NetworkInitFunction · 0.50
KV2MapMethod · 0.50

Calls 2

emptyMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected