chromium/chrome/browser/web_applications/isolated_web_apps/isolated_web_app_version.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_version.h"

#include <string_view>
#include <vector>

#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/types/expected.h"
#include "base/version.h"

namespace web_app {

// This parser validates that the given version matches `<version core>` in the
// Semantic Versioning specification: https://semver.org.
base::expected<std::vector<uint32_t>, IwaVersionParseError>
ParseIwaVersionIntoComponents(std::string_view version_string) {}

std::string IwaVersionParseErrorToString(IwaVersionParseError error) {}

}  // namespace web_app