Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::xml::XMLDecodedTextSourceMap Class Reference

Immutable mapping from projected decoded XML text back to authored source bytes. More...

#include "donner/base/xml/XMLNode.h"

Public Member Functions

std::optional< SourceRange > mapRange (const SourceRange &range) const
 Map a range entirely in one original XML text chunk.
std::size_t retainedCapacityBytes () const
 Allocated vector-capacity bytes retained by this mapping, excluding allocator overhead.

Friends

class XMLNode

Detailed Description

Immutable mapping from projected decoded XML text back to authored source bytes.

Member Function Documentation

◆ mapRange()

std::optional< SourceRange > donner::xml::XMLDecodedTextSourceMap::mapRange ( const SourceRange & range) const

Map a range entirely in one original XML text chunk.

Parameters
rangeHalf-open decoded byte range.
Returns
Original source range when the boundaries have exact authored locations.

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