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

Classes

struct  URIParser::Range
 A raw component's byte range, excluding its delimiter. More...
 
struct  URIParser::Components
 Raw URI-reference boundaries in the scanned input. More...
 

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.