• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2022 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "base/strings/abseil_string_number_conversions.h"
6 
7 #include <string_view>
8 
9 #include "base/strings/string_number_conversions_internal.h"
10 #include "third_party/abseil-cpp/absl/numeric/int128.h"
11 
12 namespace base {
13 
StringToUint128(std::string_view input,absl::uint128 * output)14 bool StringToUint128(std::string_view input, absl::uint128* output) {
15   return internal::StringToIntImpl(input, *output);
16 }
17 
HexStringToUInt128(std::string_view input,absl::uint128 * output)18 bool HexStringToUInt128(std::string_view input, absl::uint128* output) {
19   return internal::HexStringToIntImpl(input, *output);
20 }
21 
22 }  // namespace base
23