Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
URIParser.cpp File Reference
#include "URIParser.h"
#include <algorithm>
#include <ranges>
#include <string_view>

Namespaces

namespace  URIParser
 

Functions

std::optional< std::string_view > URIParser::GetScheme (std::string_view input)
 Recognize a leading RFC 3986 scheme followed by a colon, regardless of body validity.
 
Components URIParser::ScanReference (std::string_view input)
 Locate URI-reference components, including those in malformed candidates.
 
std::optional< Components > URIParser::ParseReference (std::string_view input)
 Validate the RFC 3986 URI-reference production (URI or relative-ref).
 
bool URIParser::IsURI (std::string_view input)
 Validate the RFC 3986 URI production using ParseReference and requiring a scheme.