#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 {
const URLPrefix* BestURLPrefixInternal(
const std::u16string& lower_text,
const std::u16string& lower_prefix_suffix) { … }
const URLPrefix* BestURLPrefixWithWWWCase(
const std::u16string& lower_text,
const std::u16string& lower_prefix_suffix) { … }
}
URLPrefix::URLPrefix(const std::u16string& lower_prefix, size_t num_components)
: … { … }
const URLPrefixes& URLPrefix::GetURLPrefixes() { … }
const URLPrefix* URLPrefix::BestURLPrefix(const std::u16string& text,
const std::u16string& prefix_suffix) { … }
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) { … }