20 virtual QString
error() = 0;
21 virtual int indexIn(
const QString& str,
int offset ) = 0;
22 virtual int indexIn(
const QChar* str,
int offset,
int length ) = 0;
23 virtual int lastIndexIn(
const QString& str,
int offset ) = 0;
24 virtual int lastIndexIn(
const QChar* str,
int offset,
int length ) = 0;
26 virtual int pos(
int nth = 0 )
const = 0;
27 virtual int len(
int nth = 0 )
const = 0;
28 virtual QString
cap(
int nth = 0 )
const = 0;
60 static QString escape(
const QString& str,
Engine engine=EngineOniguruma );
63 QString errorString()
const ;
67 int indexIn(
const QString& str,
int offset = 0 );
68 int indexIn(
const QChar* str,
int offset,
int length );
69 int lastIndexIn(
const QString& str,
int offset=-1 );
70 int lastIndexIn(
const QChar* str,
int offset,
int length );
71 int pos(
int nth = 0 )
const;
72 int len(
int nth = 0 )
const;
73 QString
cap(
int nth = 0)
const;
int matchedLength()
matched length is equal to pos-0-length
Definition: regexp.h:77
virtual int indexIn(const QString &str, int offset)=0
Engine
Definition: regexp.h:39
virtual ~RegExpEngine()
Definition: regexp.h:17
The minimal engine we currently require for handling regexpt. It may grow in the future.
Definition: regexp.h:14
virtual int len(int nth=0) const =0
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition: commentcommand.cpp:22
A class for matching QStrings with the Oniguruma API We need this Regular Expression library to be ab...
Definition: regexp.h:36
virtual QString error()=0
virtual int pos(int nth=0) const =0
virtual QString cap(int nth=0) const =0
virtual int lastIndexIn(const QString &str, int offset)=0
TestEngine & engine()
Definition: test.h:306
Syntax
Definition: regexp.h:50
virtual QString pattern()=0