MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / to_github_base_url

Function to_github_base_url

src/network/UrlHelpers.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35namespace {
36std::wstring to_github_base_url(std::wstring github_url) {
37 std::wstring_view vw = github_url;
38 vw = remove_prefix_equals(vw, L"https://");
39 vw = remove_prefix_equals(vw, L"www.");
40 github_url = vw;
41 github_url.insert(L"github.com/"sv.length(), L"repos/");
42 return L"https://api." + github_url;
43}
44}
45
46

Callers 1

Calls 1

remove_prefix_equalsFunction · 0.85

Tested by

no test coverage detected