chromium/components/omnibox/browser/autocomplete_match_type.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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"

// static
std::string AutocompleteMatchType::ToString(AutocompleteMatchType::Type type) {}

// static
bool AutocompleteMatchType::FromInteger(int value, Type* result) {}

static constexpr char16_t kAccessibilityLabelPrefixEndSentinel[] =;  // Embedded object character.

static int AccessibilityLabelPrefixLength(std::u16string accessibility_label) {}

// Places the |replacement| inside the given format string.
// It also adjusts |label_prefix_length|, if non-nullptr.
std::u16string AddAdditionalMessaging(const std::u16string& format,
                                      const std::u16string& replacement,
                                      int* label_prefix_length) {}

// Returns the base label for this match, without handling the positional or
// secondary button messaging.
std::u16string GetAccessibilityBaseLabel(const AutocompleteMatch& match,
                                         const std::u16string& match_text,
                                         int* label_prefix_length) {}

// static
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) {}