FE 0.15.0
A C++23 toolkit for writing compiler/interpreter frontends.
Loading...
Searching...
No Matches
fe::utf8::Char32 Struct Reference

Wrapper for char32_t with an operator<< that writes UTF-8. More...

#include <fe/utf8.h>

Public Member Functions

constexpr Char32 (char32_t c) noexcept

Public Attributes

char32_t c

Friends

std::ostream & operator<< (std::ostream &os, Char32 c)

Detailed Description

Wrapper for char32_t with an operator<< that writes UTF-8.

Definition at line 125 of file utf8.h.

Constructor & Destructor Documentation

◆ Char32()

fe::utf8::Char32::Char32 ( char32_t c)
inlineconstexprnoexcept

Definition at line 126 of file utf8.h.

References c.

Referenced by operator<<.

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
Char32 c )
friend

Definition at line 129 of file utf8.h.

References assert_unused, c, Char32(), and fe::utf8::encode().

Member Data Documentation

◆ c

char32_t fe::utf8::Char32::c

Definition at line 135 of file utf8.h.

Referenced by Char32(), and operator<<.


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