SlHelpers
CVE.h
1 // SPDX-License-Identifier: GPL-2.0-only
2 
3 #pragma once
4 
5 #include <optional>
6 #include <string_view>
7 
8 namespace SlCVEs {
9 
13 class CVE {
14 public:
20  static std::optional<std::string_view> getCVENumber(std::string_view sv) noexcept;
21 };
22 
23 }
Helper class for CVE numbers.
Definition: CVE.h:13
static std::optional< std::string_view > getCVENumber(std::string_view sv) noexcept
Try to parse sv as a CVE number and return it.
Definition: CVE.h:8