LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
regexp.h File Reference
#include "sllconfig.h"
#include <memory>
#include <QString>
#include <QMetaType>
#include <QRegularExpression>
#include "visitor.h"
+ Include dependency graph for regexp.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LC::Util::RegExp
 
struct  LC::Util::StopReplace
 
struct  LC::Util::ReplaceAdvance
 

Namespaces

namespace  LC
 
namespace  LC::Util
 

Typedefs

using LC::Util::ReplacerResult = std::variant<StopReplace, ReplaceAdvance>
 

Functions

template<typename R>
requires requires { { replacer (body, QRegularExpressionMatch {}) } -> std::convertible_to<ReplacerResult>; }
void LC::Util::ReplaceByRegexp (QString &body, const QRegularExpression &rx, R &&replacer)
 
UTIL_SLL_API QDataStream & operator<< (QDataStream &, const LC::Util::RegExp &)
 
UTIL_SLL_API QDataStream & operator>> (QDataStream &, LC::Util::RegExp &)
 

Function Documentation

◆ operator<<()

UTIL_SLL_API QDataStream & operator<< ( QDataStream & out,
const LC::Util::RegExp & rx )

Definition at line 61 of file regexp.cpp.

References LC::Util::RegExp::GetCaseSensitivity(), and LC::Util::RegExp::GetPattern().

+ Here is the call graph for this function:

◆ operator>>()

UTIL_SLL_API QDataStream & operator>> ( QDataStream & in,
LC::Util::RegExp & rx )

Definition at line 69 of file regexp.cpp.