mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user