Bug 1745113 Part 3 - Change CountGraphemeClusters() to take a Span parameter. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D135641
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "mozilla/intl/UnicodeProperties.h"
|
||||
|
||||
#include "mozilla/Span.h"
|
||||
#include "nsBidiUtils.h"
|
||||
#include "nsUGenCategory.h"
|
||||
#include "harfbuzz/hb.h"
|
||||
@@ -159,7 +160,7 @@ inline bool IsClusterExtender(uint32_t aCh) {
|
||||
}
|
||||
|
||||
// Count the number of grapheme clusters in the given string
|
||||
uint32_t CountGraphemeClusters(const char16_t* aText, uint32_t aLength);
|
||||
uint32_t CountGraphemeClusters(Span<const char16_t> aText);
|
||||
|
||||
// Determine whether a character is a "combining diacritic" for the purpose
|
||||
// of diacritic-insensitive text search. Examples of such characters include
|
||||
|
||||
Reference in New Issue
Block a user