Searched refs:current_byte_index (Results 1 – 1 of 1) sorted by relevance
24 int GetUTF8StartPosition(std::string_view text, int current_byte_index) { in GetUTF8StartPosition() argument25 while (!i18n_utils::IsLeadUtf8Byte(text[current_byte_index])) { in GetUTF8StartPosition()26 --current_byte_index; in GetUTF8StartPosition()28 return current_byte_index; in GetUTF8StartPosition()