// Copyright 2012 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/gfx/utf16_indexing.h" #include "base/check_op.h" #include "base/third_party/icu/icu_utf.h" namespace gfx { bool IsValidCodePointIndex(const std::u16string& s, size_t index) { … } ptrdiff_t UTF16IndexToOffset(const std::u16string& s, size_t base, size_t pos) { … } size_t UTF16OffsetToIndex(const std::u16string& s, size_t base, ptrdiff_t offset) { … } } // namespace gfx