MCPcopy Create free account
hub / github.com/crossuo/crossuo / valid_url

Function valid_url

xuocore/common.cpp:13–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include <external/lookup3.h>
12
13bool valid_url(const astr_t &url)
14{
15 return url.rfind("http://", 0) == 0 || url.rfind("https://", 0) == 0;
16}
17
18#if defined(XUO_WINDOWS)
19#include <windows.h>

Callers 3

ui_shardsFunction · 0.85
convertFunction · 0.85
open_urlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected