SlHelpers
Loading...
Searching...
No Matches
CVE.h
1// SPDX-License-Identifier: GPL-2.0-only
2
3#pragma once
4
5#include <optional>
6#include <string_view>
7
8namespace SlCVEs {
9
13class CVE {
14public:
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.