// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/base/ime/utf_offset.h" #include <string> #include <string_view> #include "base/strings/utf_string_conversions.h" namespace ui { std::optional<size_t> Utf16OffsetFromUtf8Offset(std::string_view text, size_t utf8_offset) { … } std::optional<size_t> Utf8OffsetFromUtf16Offset(std::u16string_view text, size_t utf16_offset) { … } } // namespace ui