mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibGfx: Make UnicodeRange comparable
This commit is contained in:
parent
ef3a2bf907
commit
e0a03147c6
|
|
@ -35,6 +35,12 @@ public:
|
|||
return MUST(String::formatted("U+{:x}-{:x}", m_min_code_point, m_max_code_point));
|
||||
}
|
||||
|
||||
bool operator==(UnicodeRange const& other) const
|
||||
{
|
||||
return m_min_code_point == other.m_min_code_point
|
||||
&& m_max_code_point == other.m_max_code_point;
|
||||
}
|
||||
|
||||
private:
|
||||
u32 m_min_code_point;
|
||||
u32 m_max_code_point;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user