7582477: spanification: migrate base::ReadUnicodeCharacter usage to string_view

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7582477

Co-Authored-By: Claude (claude-3-5-sonnet, Anthropic)
This commit is contained in:
John Kleinschmidt
2026-02-25 08:44:41 -05:00
parent 2125ad8768
commit e787b035eb

View File

@@ -31,7 +31,7 @@ namespace {
bool HasWordCharacters(const std::u16string& text, size_t index) {
base_icu::UChar32 code;
while (index < text.size() &&
base::ReadUnicodeCharacter(text.c_str(), text.size(), &index, &code)) {
base::ReadUnicodeCharacter(text, &index, &code)) {
++index;
UErrorCode error = U_ZERO_ERROR;
if (uscript_getScript(code, &error) != USCRIPT_COMMON)