header_utils
Loading...
Searching...
No Matches
ghassanpl::string_ops::utf8_view< R > Struct Template Reference

A simple view over an UTF8 string range with codepoint values. More...

Inherits std::ranges::view_interface< utf8_view< R > >.

Public Member Functions

constexpr utf8_view (R base)
 
template<typename... ARGS>
requires std::constructible_from<std::string_view, ARGS...>
constexpr utf8_view (ARGS &&... args)
 
constexprbase () const &
 
constexprbase () &&
 
constexpr auto begin () const
 
constexpr auto end () const
 

Detailed Description

template<std::ranges::view R>
struct ghassanpl::string_ops::utf8_view< R >

A simple view over an UTF8 string range with codepoint values.

Definition at line 974 of file unicode.h.

Constructor & Destructor Documentation

◆ utf8_view() [1/2]

template<std::ranges::view R>
constexpr ghassanpl::string_ops::utf8_view< R >::utf8_view ( base)
inlineconstexpr

Definition at line 1049 of file unicode.h.

◆ utf8_view() [2/2]

template<std::ranges::view R>
template<typename... ARGS>
requires std::constructible_from<std::string_view, ARGS...>
constexpr ghassanpl::string_ops::utf8_view< R >::utf8_view ( ARGS &&...  args)
inlineexplicitconstexpr

Definition at line 1056 of file unicode.h.

Member Function Documentation

◆ base() [1/2]

template<std::ranges::view R>
constexpr R ghassanpl::string_ops::utf8_view< R >::base ( ) &&
inlineconstexpr

Definition at line 1065 of file unicode.h.

◆ base() [2/2]

template<std::ranges::view R>
constexpr R ghassanpl::string_ops::utf8_view< R >::base ( ) const &
inlineconstexpr

Definition at line 1061 of file unicode.h.

◆ begin()

template<std::ranges::view R>
constexpr auto ghassanpl::string_ops::utf8_view< R >::begin ( ) const
inlineconstexpr

Definition at line 1070 of file unicode.h.

◆ end()

template<std::ranges::view R>
constexpr auto ghassanpl::string_ops::utf8_view< R >::end ( ) const
inlineconstexpr

Definition at line 1075 of file unicode.h.