Qx v0.5.8
Qt Extensions Library
Loading...
Searching...
No Matches
qx-textquery.h
1#ifndef QX_TEXTQUERY_H
2#define QX_TEXTQUERY_H
3
4// Shared Lib Support
5#include "qx/io/qx_io_export.h"
6
7// Qt Includes
8#include <QString>
9
10// Intra-component Includes
11#include "qx/io/qx-textpos.h"
12
13namespace Qx
14{
15
16class QX_IO_EXPORT TextQuery
17{
18//-Instance Variables------------------------------------------------------------------------------------------------
19private:
20 QString mString;
21 Qt::CaseSensitivity mCaseSensitivity;
22 TextPos mStartPos;
23 int mHitsToSkip;
24 int mHitLimit;
25 bool mAllowSplit;
26
27//-Constructor-------------------------------------------------------------------------------------------------------
28public:
30
31//-Instance Functions------------------------------------------------------------------------------------------------
32public:
33 const QString& string() const;
34 Qt::CaseSensitivity caseSensitivity() const;
35 TextPos startPosition() const;
36 int hitsToSkip() const;
37 int hitLimit() const;
38 bool allowSplit() const;
39
40 void setString(QString string);
41 void setCaseSensitivity(Qt::CaseSensitivity caseSensitivity);
42 void setStartPosition(TextPos startPosition);
43 void setHitsToSkip(int hitsToSkip);
44 void setHitLimit(int hitLimit);
45 void setAllowSplit(bool allowSplit);
46};
47
48}
49
50#endif // QX_TEXTQUERY_H
The TextPos class is used to represent an offset within a text file in terms of lines and characters.
Definition qx-textpos.h:18
The TextQuery class contains rules for conducting a search of text.
Definition qx-textquery.h:17
The Qx namespace is the main namespace through which all non-global functionality of the Qx library i...
Definition qx-processwaiter.cpp:5
CaseSensitivity