blob: 7eb927d75eddf9ae7935bade7e69494143865f2e [file] [log] [blame]
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "polyfills/base/base_export.h"
#include "base/strings/string_piece_forward.h"
namespace absl {
class uint128;
} // namespace absl
namespace gurl_base {
// Best effort conversion, see `gurl_base::StringToInt()` for restrictions.
// Will only successfully parse hex values that will fit into |output|.
// The string is not required to start with 0x.
BASE_EXPORT bool HexStringToUInt128(StringPiece input, absl::uint128* output);
} // namespace base