HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Friends
tt::unicode_ranges Struct Reference

#include <ttauri/text/unicode_ranges.hpp>

Public Member Functions

 unicode_ranges (char32_t c) noexcept
 
 unicode_ranges (grapheme g) noexcept
 
 operator bool () const noexcept
 
void add (char32_t c) noexcept
 Add code point to unicode-ranges.
 
void add (char32_t first, char32_t last) noexcept
 Add code points to unicode-ranges.
 
bool contains (char32_t c) const noexcept
 Check if the code point is present in the unicode-ranges.
 
bool contains (grapheme g) const noexcept
 
void set_bit (int i) noexcept
 
bool get_bit (int i) const noexcept
 
int popcount () const noexcept
 
unicode_rangesoperator|= (unicode_ranges const &rhs) noexcept
 

Data Fields

uint32_t value [4]
 

Friends

std::string to_string (unicode_ranges const &rhs) noexcept
 
bool operator>= (unicode_ranges const &lhs, unicode_ranges const &rhs) noexcept
 The lhs has at least all bits on the rhs set.
 
unicode_ranges operator| (unicode_ranges const &lhs, unicode_ranges const &rhs) noexcept
 
std::ostreamoperator<< (std::ostream &lhs, unicode_ranges const &rhs)
 

Detailed Description

Unicode Ranges based on the OS/2 table in TrueType fonts.

Member Function Documentation

◆ add() [1/2]

void tt::unicode_ranges::add ( char32_t c)
noexcept

Add code point to unicode-ranges.

◆ add() [2/2]

void tt::unicode_ranges::add ( char32_t first,
char32_t last )
noexcept

Add code points to unicode-ranges.

Parameters
firstFirst code point.
lastOne beyond the last code point.

◆ contains()

bool tt::unicode_ranges::contains ( char32_t c) const
noexcept

Check if the code point is present in the unicode-ranges.

Friends And Related Symbol Documentation

◆ operator>=

bool operator>= ( unicode_ranges const & lhs,
unicode_ranges const & rhs )
friend

The lhs has at least all bits on the rhs set.


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