chromium/components/omnibox/browser/url_prefix.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/url_prefix.h"

#include "base/check_op.h"
#include "base/i18n/case_conversion.h"
#include "base/logging.h"
#include "base/no_destructor.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"

namespace {

// Implements URLPrefix::BestURLPrefix(). Expects parameters to
// already be lowercased.
const URLPrefix* BestURLPrefixInternal(
    const std::u16string& lower_text,
    const std::u16string& lower_prefix_suffix) {}

// Like BestURLPrefixInternal() except also handles the prefix of "www.".
const URLPrefix* BestURLPrefixWithWWWCase(
    const std::u16string& lower_text,
    const std::u16string& lower_prefix_suffix) {}

}  // namespace

URLPrefix::URLPrefix(const std::u16string& lower_prefix, size_t num_components)
    :{}

// static
const URLPrefixes& URLPrefix::GetURLPrefixes() {}

// static
const URLPrefix* URLPrefix::BestURLPrefix(const std::u16string& text,
                                          const std::u16string& prefix_suffix) {}

// static
size_t URLPrefix::GetInlineAutocompleteOffset(
    const std::u16string& input,
    const std::u16string& fixed_up_input,
    const bool allow_www_prefix_without_scheme,
    const std::u16string& text) {}