mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-24 19:28:48 +00:00
LibGfx: Make UnicodeRange comparable
This commit is contained in:
parent
ef3a2bf907
commit
e0a03147c6
Notes:
github-actions[bot]
2025-03-28 09:15:59 +00:00
Author: https://github.com/AtkinsSJ
Commit: e0a03147c6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4125
1 changed files with 6 additions and 0 deletions
|
@ -35,6 +35,12 @@ public:
|
||||||
return MUST(String::formatted("U+{:x}-{:x}", m_min_code_point, m_max_code_point));
|
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:
|
private:
|
||||||
u32 m_min_code_point;
|
u32 m_min_code_point;
|
||||||
u32 m_max_code_point;
|
u32 m_max_code_point;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue