MCPcopy Create free account
hub / github.com/WallBreaker2/op / to_lower_copy

Function to_lower_copy

libop/network/HttpClient.cpp:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55// --- string utilities ---
56
57std::string to_lower_copy(std::string s) {
58 std::transform(s.begin(), s.end(), s.begin(), [](unsigned char c) {
59 return static_cast<char>(std::tolower(c));
60 });
61 return s;
62}
63
64bool starts_with_http(const std::string &url) {
65 return url.rfind("http://", 0) == 0 || url.rfind("https://", 0) == 0;

Callers 2

try_resolve_yolo_backendFunction · 0.85
try_resolve_ocr_backendFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected