LibGfx: Make UnicodeRange comparable

This commit is contained in:
Sam Atkins 2025-03-27 17:31:31 +00:00
parent ef3a2bf907
commit e0a03147c6
Notes: github-actions[bot] 2025-03-28 09:15:59 +00:00

View file

@ -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;