#include "third_party/blink/public/common/interest_group/ad_display_size_utils.h"
#include <string>
#include <string_view>
#include "base/check.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "third_party/re2/src/re2/re2.h"
namespace blink {
namespace {
blink::AdSize::LengthUnit ConvertUnitStringToUnitEnum(
const std::string_view input) { … }
}
std::string ConvertAdDimensionToString(double value, AdSize::LengthUnit units) { … }
std::string ConvertAdSizeUnitToString(const blink::AdSize::LengthUnit& unit) { … }
std::string ConvertAdSizeToString(const blink::AdSize& ad_size) { … }
std::tuple<double, blink::AdSize::LengthUnit> ParseAdSizeString(
const std::string_view input) { … }
bool IsValidAdSize(const blink::AdSize& size) { … }
}