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.


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