mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +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: https://github.com/LadybirdBrowser/ladybird/commit/e0a03147c60 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));
|
||||
}
|
||||
|
||||
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…
Add table
Reference in a new issue