MCPcopy Create free account
hub / github.com/alibaba/zvec / to_lower

Function to_lower

src/binding/python/model/common/python_config.cc:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38inline std::string to_lower(const std::string &s) {
39 std::string lower;
40 lower.reserve(s.size());
41 std::transform(s.begin(), s.end(), std::back_inserter(lower), ::tolower);
42 return lower;
43}
44
45inline bool iequals(const std::string &a, const std::string &b) {
46 return to_lower(a) == to_lower(b);

Callers 1

iequalsFunction · 0.85

Calls 5

transformFunction · 0.85
reserveMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected