#include "components/omnibox/browser/in_memory_url_index_types.h"
#include <functional>
#include <iterator>
#include <numeric>
#include <set>
#include "base/i18n/case_conversion.h"
#include "base/ranges/algorithm.h"
#include "base/strings/escape.h"
#include "base/strings/string_util.h"
#include "base/trace_event/memory_usage_estimator.h"
#include "components/omnibox/browser/tailored_word_break_iterator.h"
namespace {
const size_t kMaxSignificantChars = …;
void String16VectorFromString16Internal(std::u16string word,
size_t previous_position,
String16Vector* words,
WordStarts* word_starts) { … }
}
TermMatches MatchTermsInString(const String16Vector& terms,
const std::u16string& cleaned_string) { … }
TermMatches MatchTermInString(const std::u16string& term,
const std::u16string& cleaned_string,
int term_num) { … }
bool SortMatchComparator(const TermMatch& m1, const TermMatch& m2) { … }
TermMatches SortMatches(const TermMatches& matches) { … }
TermMatches DeoverlapMatches(const TermMatches& sorted_matches) { … }
std::vector<size_t> OffsetsFromTermMatches(const TermMatches& matches) { … }
TermMatches ReplaceOffsetsInTermMatches(const TermMatches& matches,
const std::vector<size_t>& offsets) { … }
String16Set String16SetFromString16(const std::u16string& cleaned_uni_string,
WordStarts* word_starts) { … }
String16Vector String16VectorFromString16(
const std::u16string& cleaned_uni_string,
WordStarts* word_starts) { … }
Char16Set Char16SetFromString16(const std::u16string& term) { … }
HistoryInfoMapValue::HistoryInfoMapValue() = default;
HistoryInfoMapValue::HistoryInfoMapValue(const HistoryInfoMapValue& other) =
default;
HistoryInfoMapValue::HistoryInfoMapValue(HistoryInfoMapValue&& other) = default;
HistoryInfoMapValue& HistoryInfoMapValue::operator=(
const HistoryInfoMapValue& other) = default;
HistoryInfoMapValue& HistoryInfoMapValue::operator=(
HistoryInfoMapValue&& other) = default;
HistoryInfoMapValue::~HistoryInfoMapValue() = default;
size_t HistoryInfoMapValue::EstimateMemoryUsage() const { … }
RowWordStarts::RowWordStarts() = default;
RowWordStarts::RowWordStarts(const RowWordStarts& other) = default;
RowWordStarts::RowWordStarts(RowWordStarts&& other) = default;
RowWordStarts& RowWordStarts::operator=(const RowWordStarts& other) = default;
RowWordStarts& RowWordStarts::operator=(RowWordStarts&& other) = default;
RowWordStarts::~RowWordStarts() = default;
size_t RowWordStarts::EstimateMemoryUsage() const { … }
void RowWordStarts::Clear() { … }