Commit 2200293e authored by Laurent Montel's avatar Laurent Montel 😁

Rename file

parent c996b724
......@@ -3,7 +3,7 @@ set(adblocklibprivate_SRCS
adblocksearchtree.cpp
adblockrule.cpp
qzregexp.cpp
qztools.cpp
adblockutil.cpp
#adblockmatcher.cpp
#adblocksubscription.cpp
)
......
......@@ -62,7 +62,7 @@
#include "adblockrule.h"
#include "adblocksubscription.h"
#include "qztools.h"
#include "adblockutil.h"
#include "qzregexp.h"
#include <QUrl>
......@@ -691,7 +691,7 @@ bool AdBlockRule::stringMatch(const QString &domain, const QString &encodedUrl)
bool AdBlockRule::isMatchingDomain(const QString &domain, const QString &filter) const
{
return QzTools::matchDomain(filter, domain);
return AdblockUtil::matchDomain(filter, domain);
}
bool AdBlockRule::isMatchingRegExpStrings(const QString &url) const
......
......@@ -31,13 +31,13 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* ============================================================ */
#include "qztools.h"
#include "adblockutil.h"
using namespace AdBlock;
// Matches domain (assumes both pattern and domain not starting with dot)
// pattern = domain to be matched
// domain = site domain
bool QzTools::matchDomain(const QString &pattern, const QString &domain)
bool AdblockUtil::matchDomain(const QString &pattern, const QString &domain)
{
if (pattern == domain) {
return true;
......
......@@ -34,17 +34,11 @@
#ifndef QZTOOLS_H
#define QZTOOLS_H
#include <QFileDialog>
#include <QString>
class QSslCertificate;
class QFontMetrics;
class QPixmap;
class QIcon;
class QWidget;
class QUrl;
namespace AdBlock
{
class QzTools
class AdblockUtil
{
public:
static bool matchDomain(const QString &pattern, const QString &domain);
......
......@@ -32,7 +32,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* ============================================================ */
#include "qzregexp.h"
#include "qztools.h"
#include "adblockutil.h"
using namespace AdBlock;
QzRegExp::QzRegExp()
......@@ -92,7 +92,7 @@ int QzRegExp::matchedLength() const
QString QzRegExp::cap(int nth) const
{
if (!QzTools::containsIndex(m_capturedTexts, nth)) {
if (!AdblockUtil::containsIndex(m_capturedTexts, nth)) {
return QString();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment