parser 1.0.0
UTF-8 CEL expression compilation and checked library extensions
Loading...
Searching...
No Matches
cel::source_span Struct Reference

Identifies a half-open UTF-8 byte interval; begin never exceeds end. Example: source_span{0, 4} covers all bytes of "true". More...

#include <cel/parser/diagnostic.hpp>

Public Member Functions

bool operator== (const source_span &) const =default
 Returns true if both byte offsets are equal.

Public Attributes

std::size_t begin
 Inclusive byte offset in the producer's source.
std::size_t end
 Exclusive byte offset; equal to begin for an empty interval.

Detailed Description

Identifies a half-open UTF-8 byte interval; begin never exceeds end. Example: source_span{0, 4} covers all bytes of "true".


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