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