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

#include <TTauri/Text/UnicodeRanges.hpp>

Public Member Functions

 UnicodeRanges (char32_t c) noexcept
 
 UnicodeRanges (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
 
UnicodeRangesoperator|= (UnicodeRanges const &rhs) noexcept
 

Data Fields

uint32_t value [4]
 

Friends

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

Detailed Description

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

Member Function Documentation

◆ add() [1/2]

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

Add code point to unicode-ranges.

◆ add() [2/2]

void tt::UnicodeRanges::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::UnicodeRanges::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>= ( UnicodeRanges const & lhs,
UnicodeRanges 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: