LibJS+LibUnicode: Make the collation punctation default locale-aware

This commit is contained in:
Timothy Flynn 2024-08-14 15:53:47 -04:00 committed by Andreas Kling
commit 78625c746d
Notes: github-actions[bot] 2024-08-15 11:45:33 +00:00
4 changed files with 40 additions and 9 deletions

View file

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