Bug 202251 - Add an option to ignore diacritics when searching. r=fluent-reviewers,mikedeboer,jfkthame,flod

Differential Revision: https://phabricator.services.mozilla.com/D51841
This commit is contained in:
Alex Henrie
2019-12-09 19:26:40 +00:00
parent 958a6e1ea8
commit 497b982004
32 changed files with 419 additions and 11 deletions

View File

@@ -229,6 +229,9 @@ class ClusterIterator {
// Count the number of grapheme clusters in the given string
uint32_t CountGraphemeClusters(const char16_t* aText, uint32_t aLength);
// Remove diacritics from a character
uint32_t GetNaked(uint32_t aCh);
// A simple reverse iterator for a string of char16_t codepoints that
// advances by Unicode grapheme clusters
class ClusterReverseIterator {