FOSSredder 0.5.0
Loading...
Searching...
No Matches
ParserDateUtils.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <optional>
9#include <string>
10
12
18bool hasShortDateToken(const std::string& text) noexcept;
24bool containsShortDate(const std::string& text) noexcept;
30std::optional<std::string> findFirstFullDate(const std::string& text) noexcept;
31
32}
33
34namespace core {
35namespace parser {
36namespace helpers = application::importing::internal;
37}
38}
bool containsShortDate(const std::string &text) noexcept
Checks whether the text contains any short date pattern.
std::optional< std::string > findFirstFullDate(const std::string &text) noexcept
Finds the first full date in a text fragment.
bool hasShortDateToken(const std::string &text) noexcept
Checks whether the text contains a short date token.