mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +00:00
LibJS+LibUnicode: Make the collation punctation default locale-aware
This commit is contained in:
parent
eb8e516ed3
commit
78625c746d
Notes:
github-actions[bot]
2024-08-15 11:45:33 +00:00
Author: https://github.com/trflynn89
Commit: 78625c746d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1078
Reviewed-by: https://github.com/awesomekling
4 changed files with 40 additions and 9 deletions
|
@ -44,7 +44,7 @@ public:
|
|||
Sensitivity,
|
||||
CaseFirst,
|
||||
bool numeric,
|
||||
bool ignore_punctuation);
|
||||
Optional<bool> ignore_punctuation);
|
||||
|
||||
virtual ~Collator() = default;
|
||||
|
||||
|
@ -55,6 +55,8 @@ public:
|
|||
};
|
||||
virtual Order compare(StringView, StringView) const = 0;
|
||||
|
||||
virtual bool ignore_punctuation() const = 0;
|
||||
|
||||
protected:
|
||||
Collator() = default;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue