Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::SearchHighlight Struct Reference

Half-open byte range in the original label, always on complete grapheme boundaries. More...

#include <search.hpp>

Public Member Functions

bool operator== (const SearchHighlight &) const noexcept=default

Public Attributes

std::size_t begin {}
 Inclusive original UTF-8 byte offset.
std::size_t end {}
 Exclusive original UTF-8 byte offset.

Detailed Description

Half-open byte range in the original label, always on complete grapheme boundaries.

Member Function Documentation

◆ operator==()

bool portals::SearchHighlight::operator== ( const SearchHighlight & ) const
defaultnoexcept
Returns
True when both original-label byte offsets are equal.

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