We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9474594 commit 5542c04Copy full SHA for 5542c04
third_party/txt/src/txt/paragraph_txt.cc
@@ -1992,7 +1992,8 @@ Paragraph::Range<size_t> ParagraphTxt::GetWordBoundary(size_t offset) {
1992
return Range<size_t>(0, 0);
1993
}
1994
1995
- word_breaker_->setText(icu::UnicodeString(false, text_.data(), text_.size()));
+ auto unicode_text = icu::UnicodeString(false, text_.data(), text_.size());
1996
+ word_breaker_->setText(unicode_text);
1997
1998
int32_t prev_boundary = word_breaker_->preceding(offset + 1);
1999
int32_t next_boundary = word_breaker_->next();
0 commit comments