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

Function is_github_url

src/network/UrlHelpers.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26bool is_github_url(std::wstring url) {
27 trim_inplace(url);
28 to_lower_inplace(url);
29 auto view = std::wstring_view(url);
30 view = remove_prefix_equals(view, L"https://");
31 view = remove_prefix_equals(view, L"www.");
32 return starts_with(view, L"github.com");
33}
34
35namespace {
36std::wstring to_github_base_url(std::wstring github_url) {

Callers 2

StringTests.cppFile · 0.85
selected_url_typeMethod · 0.85

Calls 4

trim_inplaceFunction · 0.85
to_lower_inplaceFunction · 0.85
remove_prefix_equalsFunction · 0.85
starts_withFunction · 0.85

Tested by

no test coverage detected