HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Friends
v1::iso_3166 Class Reference

#include <hikogui/i18n/iso_3166_intf.hpp>

Public Member Functions

constexpr iso_3166 (iso_3166 const &) noexcept=default
 
constexpr iso_3166 (iso_3166 &&) noexcept=default
 
constexpr iso_3166operator= (iso_3166 const &) noexcept=default
 
constexpr iso_3166operator= (iso_3166 &&) noexcept=default
 
constexpr iso_3166 (uint16_t number)
 
constexpr iso_3166 (std::string_view str)
 
constexpr iso_3166 (std::in_place_t, uint16_t v) noexcept
 
constexpr uint16_t const & intrinsic () const noexcept
 
constexpr uint16_t & intrinsic () noexcept
 
constexpr bool empty () const noexcept
 
constexpr operator bool () const noexcept
 
constexpr uint16_t number () const noexcept
 
constexpr std::string code2 () const noexcept
 
constexpr std::string code3 () const noexcept
 

Friends

constexpr friend std::string to_string (iso_3166 const &rhs) noexcept
 
constexpr friend bool operator== (iso_3166 const &lhs, iso_3166 const &rhs) noexcept=default
 
constexpr friend auto operator<=> (iso_3166 const &lhs, iso_3166 const &rhs) noexcept=default
 
constexpr friend bool matches (iso_3166 const &lhs, iso_3166 const &rhs) noexcept
 Check if rhs matches with lhs.
 

Detailed Description

ISO-3166 country code.

Friends And Related Symbol Documentation

◆ matches

constexpr friend bool matches ( iso_3166 const & lhs,
iso_3166 const & rhs )
friend

Check if rhs matches with lhs.

Parameters
lhsThe country or wild-card.
rhsThe country.
Returns
True when lhs is a wild-card or when lhs and rhs are equal.

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