// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_OMNIBOX_BROWSER_TAILORED_WORD_BREAK_ITERATOR_H_ #define COMPONENTS_OMNIBOX_BROWSER_TAILORED_WORD_BREAK_ITERATOR_H_ #include <string> #include <string_view> #include "base/i18n/break_iterator.h" // Breaks on an underscore and numbers. Otherwise, it behaves like its parent // class with `BreakIterator::BREAK_WORD`. // E.g. 'Viktor Ambartsumian_is__anAwesome99_99Astrophysicist!!' is broken into: // [Viktor, <space>, Ambartsumian, _, is, _, _, anAwesome, 99, _, 99, // Astrophysicist, !, !]. class TailoredWordBreakIterator : public base::i18n::BreakIterator { … }; #endif // COMPONENTS_OMNIBOX_BROWSER_TAILORED_WORD_BREAK_ITERATOR_H_