Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
URIParser::Range Struct Reference

A raw component's byte range, excluding its delimiter. More...

#include <URIParser.h>

Public Member Functions

std::string_view Get (std::string_view source) const
 View this component without decoding or normalization.
 

Public Attributes

size_t offset {0}
 
size_t length {0}
 

Detailed Description

A raw component's byte range, excluding its delimiter.

Note
Offsets hold no borrowed views and survive copying or moving the source storage. Reparse after changing its contents; ranges describe the original byte positions.

Member Function Documentation

◆ Get()

std::string_view URIParser::Range::Get ( std::string_view source) const
inline

View this component without decoding or normalization.

Parameters
sourceThe original input, or an identical copy, containing this entire range.
Returns
A view valid until the supplied storage is changed or destroyed.

Member Data Documentation

◆ length

size_t URIParser::Range::length {0}

◆ offset

size_t URIParser::Range::offset {0}

The documentation for this struct was generated from the following file: