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

Namespaces

namespace  URIPolicy
 

Functions

std::optional< std::string_view > URIPolicy::GetScheme (std::string_view input)
 Extract a scheme, respecting native drive prefixes.
 
bool URIPolicy::IsURILocation (std::string_view input)
 Classify mixed input as a recognized URI scheme or legacy VFS URL.
 
bool URIPolicy::SchemeEquals (std::string_view left, std::string_view right)
 Compare raw ASCII scheme names case-insensitively, without decoding.
 
Policy URIPolicy::GetPolicy (std::string_view scheme)
 Return the policy for a case-insensitive scheme name.
 
bool URIPolicy::IsLegacyURL (std::string_view input)
 Recognize Kodi's legacy leading scheme:// spelling, not every URI or URL.
 
bool URIPolicy::UsesLegacyURL (std::string_view input)
 Select Kodi compatibility for a mixed-input location, including legacy backslashes.
 
bool URIPolicy::SupportsPathOperations (const CURI &uri)
 
bool URIPolicy::CanSetPath (const CURI &uri, std::string_view path)