libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Types | Public Member Functions | List of all members
donut::unicode::UTF8View Class Reference

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

#include <donut/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 (std::u8string_view str) noexcept
 
 UTF8View (std::string_view str) noexcept
 
constexpr const iteratorbegin () 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]

constexpr donut::unicode::UTF8View::UTF8View ( )
constexprdefaultnoexcept

◆ UTF8View() [2/3]

constexpr donut::unicode::UTF8View::UTF8View ( std::u8string_view  str)
inlineexplicitconstexprnoexcept

◆ UTF8View() [3/3]

donut::unicode::UTF8View::UTF8View ( std::string_view  str)
inlineexplicitnoexcept

Member Function Documentation

◆ begin()

constexpr const iterator& donut::unicode::UTF8View::begin ( ) const
inlineconstexprnoexcept

◆ end()

constexpr sentinel donut::unicode::UTF8View::end ( ) const
inlineconstexprnoexcept

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