Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
Classes | Public Member Functions | Public Attributes | Related Functions | List of all members
gf::CodepointRange Struct Reference

A range over a sequence of codepoints in UTF-8. More...

#include <gf/StringUtils.h>

Classes

struct  Iterator
 Iterator for a range of codepoints. More...
 

Public Member Functions

Iterator begin () const noexcept
 
Iterator end () const noexcept
 

Public Attributes

std::string_view ref
 

Related Functions

(Note that these are not member functions.)

constexpr CodepointRange codepoints (std::string_view ref)
 Create a range over codepoints from a string. More...
 

Detailed Description

A range over a sequence of codepoints in UTF-8.

See also
gf::codepoints

Member Function Documentation

◆ begin()

Iterator gf::CodepointRange::begin ( ) const
inlinenoexcept

◆ end()

Iterator gf::CodepointRange::end ( ) const
inlinenoexcept

Friends And Related Function Documentation

◆ codepoints()

constexpr CodepointRange codepoints ( std::string_view  ref)
related

Create a range over codepoints from a string.

Member Data Documentation

◆ ref

std::string_view gf::CodepointRange::ref