#include #include namespace LFoundation { URL::Scheme URL::parse_scheme(const std::string& path) { if (path.starts_with("file://")) { return Scheme::File; } else if (path.starts_with("http://")) { return Scheme::Http; } else if (path.starts_with("https://")) { return Scheme::Https; } // Unknown scheme. std::abort(); } } // namespace LFoundation