GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::unicode::UTF8View Class Reference

Non-owning view type for decoding Unicode code points from a contiguous UTF-8 string. More...

#include <GREM/core/formats/unicode.hpp>

Public Types

using iterator = UTF8Iterator<const char8_t*>
using difference_type = typename iterator::difference_type
using value_type = typename iterator::value_type
using reference = typename iterator::reference
using pointer = typename iterator::pointer
using iterator_category = typename iterator::iterator_category
using sentinel = typename iterator::sentinel

Public Member Functions

constexpr UTF8View () noexcept=default
constexpr UTF8View (UTF8StringView str) noexcept
 UTF8View (StringView str) noexcept
constexpr const iterator & begin () const noexcept
constexpr sentinel end () const noexcept

Detailed Description

Non-owning view type for decoding Unicode code points from a contiguous UTF-8 string.

Member Typedef Documentation

◆ iterator

◆ difference_type

◆ value_type

◆ reference

◆ pointer

◆ iterator_category

◆ sentinel

Constructor & Destructor Documentation

◆ UTF8View() [1/3]

grem::unicode::UTF8View::UTF8View ( )
constexprdefaultnoexcept

◆ UTF8View() [2/3]

grem::unicode::UTF8View::UTF8View ( UTF8StringView str)
inlineexplicitconstexprnoexcept

◆ UTF8View() [3/3]

grem::unicode::UTF8View::UTF8View ( StringView str)
inlineexplicitnoexcept

Member Function Documentation

◆ begin()

const iterator & grem::unicode::UTF8View::begin ( ) const
inlinenodiscardconstexprnoexcept

◆ end()

sentinel grem::unicode::UTF8View::end ( ) const
inlinenodiscardconstexprnoexcept

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