#include "components/omnibox/browser/autocomplete_match_type.h"
#include <array>
#include "base/check.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "components/omnibox/browser/actions/omnibox_action.h"
#include "components/omnibox/browser/autocomplete_match.h"
#include "components/omnibox/browser/omnibox_feature_configs.h"
#include "components/omnibox/browser/omnibox_field_trial.h"
#include "components/omnibox/browser/omnibox_popup_selection.h"
#include "components/omnibox/browser/suggestion_answer.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
std::string AutocompleteMatchType::ToString(AutocompleteMatchType::Type type) { … }
bool AutocompleteMatchType::FromInteger(int value, Type* result) { … }
static constexpr char16_t kAccessibilityLabelPrefixEndSentinel[] = …;
static int AccessibilityLabelPrefixLength(std::u16string accessibility_label) { … }
std::u16string AddAdditionalMessaging(const std::u16string& format,
const std::u16string& replacement,
int* label_prefix_length) { … }
std::u16string GetAccessibilityBaseLabel(const AutocompleteMatch& match,
const std::u16string& match_text,
int* label_prefix_length) { … }
std::u16string AutocompleteMatchType::ToAccessibilityLabel(
const AutocompleteMatch& match,
const std::u16string& match_text,
size_t match_index,
size_t total_matches,
const std::u16string& additional_message_format,
int* label_prefix_length) { … }