REAL
Regular Expression Algorithmic Library — constexpr C++20 regex
Loading...
Searching...
No Matches
real::detail::decoded_codepoint Struct Reference

The result of a strict UTF-8 decode: the code point, its byte length, and validity. More...

#include <utf8.hpp>

Public Attributes

std::uint32_t cp {}
 The decoded code point (meaningful only when valid).
 
std::size_t length {}
 Bytes consumed by the sequence (1–4), or the bytes examined on failure.
 
bool valid {}
 Whether the sequence is a well-formed, canonical code point.
 

Detailed Description

The result of a strict UTF-8 decode: the code point, its byte length, and validity.

Definition at line 24 of file utf8.hpp.

Member Data Documentation

◆ cp

std::uint32_t real::detail::decoded_codepoint::cp {}

The decoded code point (meaningful only when valid).

Definition at line 26 of file utf8.hpp.

◆ length

std::size_t real::detail::decoded_codepoint::length {}

Bytes consumed by the sequence (1–4), or the bytes examined on failure.

Definition at line 27 of file utf8.hpp.

◆ valid

bool real::detail::decoded_codepoint::valid {}

Whether the sequence is a well-formed, canonical code point.

Definition at line 28 of file utf8.hpp.


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