nxt::utf8::byte_offset_t struct

Byte offset into a UTF-8 string.

Public functions

auto count() const →  std::size_t constexpr noexcept
Return the raw byte offset.
auto operator+=(std::size_t bytes) →  byte_offset_t& constexpr noexcept

Public variables

std::size_t v
Raw byte offset.

Friends

auto operator<=>(byte_offset_t, byte_offset_t) →  auto defaulted constexpr noexcept
auto operator==(byte_offset_t, byte_offset_t) →  bool defaulted constexpr noexcept