Atlas Game Manager
A game manager for f95 and dlsite written in c++
Loading...
Searching...
No Matches
regex.hpp
Go to the documentation of this file.
1//
2// Created by kj16609 on 3/26/23.
3//
4
5#pragma once
6#ifndef ATLAS_REGEX_HPP
7#define ATLAS_REGEX_HPP
8
9#include <QString>
10
11#if ( QT_VERSION < QT_VERSION_CHECK( 6, 1, 0 ) )
12#error "Atlas requires Qt 6.1.0 or newer"
13#endif
14
15namespace regex
16{
17 QString groupify( const QString group_name );
18
20 QString escapeStr( QString pattern );
21
22 QString processRegexify( QString pattern );
23
24 QString regexify( QString pattern );
25
26 bool valid( QRegularExpression& regex, QString text );
27 bool valid( QString pattern, QString text );
28
30 {
31 QString title;
32 QString creator;
33 QString version;
34 QString engine;
35 };
36
38 GroupsOutput extractGroups( QString pattern, QString text );
39} // namespace regex
40#endif //ATLAS_REGEX_HPP
Definition regex.cpp:15
bool valid(QRegularExpression &regex, QString text)
Definition regex.cpp:61
QString groupify(const QString group_name)
Definition regex.cpp:16
GroupsOutput extractGroups(QString pattern, const QString text)
Extracts all groups from a given string with a given pattern.
Definition regex.cpp:77
QString processRegexify(QString pattern)
Definition regex.cpp:38
QString escapeStr(QString pattern)
SHOULD NOT BE USED ANYWHERE EXCEPT FOR PATHS.
Definition regex.cpp:23
QString regexify(QString pattern)
Definition regex.cpp:55
Definition regex.hpp:30
QString engine
Definition regex.hpp:34
QString version
Definition regex.hpp:33
QString title
Definition regex.hpp:31
QString creator
Definition regex.hpp:32