(d7007090bbc1840f873fd4173de8542cb62206d0)
#include "qregularexpression.h"
#include <QtCore/qcoreapplication.h>
#include <QtCore/qhashfunctions.h>
#include <QtCore/qlist.h>
#include <QtCore/qmutex.h>
#include <QtCore/qstringlist.h>
#include <QtCore/qdebug.h>
#include <QtCore/qglobal.h>
#include <QtCore/qatomic.h>
#include <QtCore/qdatastream.h>
#include <pcre2.h>
Go to the source code of this file.
◆ PCRE2_CODE_UNIT_WIDTH
#define PCRE2_CODE_UNIT_WIDTH 16 |
◆ begin()
◆ comparesEqual()
◆ convertToPcreOptions() [1/2]
static int convertToPcreOptions |
( |
QRegularExpression::MatchOptions | matchOptions | ) |
|
|
static |
◆ convertToPcreOptions() [2/2]
static int convertToPcreOptions |
( |
QRegularExpression::PatternOptions | patternOptions | ) |
|
|
static |
◆ isJitEnabled()
static bool isJitEnabled |
( |
| ) |
|
|
static |
◆ qtPcreCallback()
static pcre2_jit_stack_16 * qtPcreCallback |
( |
void * | | ) |
|
|
static |
◆ qtWarnAboutInvalidRegularExpression()
Used to centralize the warning about using an invalid QRegularExpression. In case the pattern is an illegal UTF-16 string, we can't pass print it (pass it to qUtf16Printable, etc.), so we need to check for that.
Definition at line 802 of file qregularexpression.cpp.
◆ safe_pcre2_match_16()
static int safe_pcre2_match_16 |
( |
const pcre2_code_16 * | code, |
|
|
PCRE2_SPTR16 | subject, |
|
|
qsizetype | length, |
|
|
qsizetype | startOffset, |
|
|
int | options, |
|
|
pcre2_match_data_16 * | matchData, |
|
|
pcre2_match_context_16 * | matchContext ) |
|
static |
This is a simple wrapper for pcre2_match_16 for handling the case in which the JIT runs out of memory. In that case, we allocate a thread-local JIT stack and re-run pcre2_match_16.
Definition at line 1054 of file qregularexpression.cpp.