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

Note this happens to be 'variant' for every locale currently.
This commit is contained in:
Timothy Flynn 2024-08-14 16:18:06 -04:00 committed by Andreas Kling
commit ca1257c6f9
Notes: github-actions[bot] 2024-08-15 11:45:25 +00:00
5 changed files with 53 additions and 14 deletions

View file

@ -41,7 +41,7 @@ public:
StringView locale,
Usage,
StringView collation,
Sensitivity,
Optional<Sensitivity>,
CaseFirst,
bool numeric,
Optional<bool> ignore_punctuation);
@ -55,6 +55,7 @@ public:
};
virtual Order compare(StringView, StringView) const = 0;
virtual Sensitivity sensitivity() const = 0;
virtual bool ignore_punctuation() const = 0;
protected: