2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2016-11-23 13:31:47 +01:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2023-05-05 15:51:11 +02:00
|
|
|
#include <utils/searchresultitem.h>
|
2016-11-23 13:31:47 +01:00
|
|
|
|
2023-05-05 15:51:11 +02:00
|
|
|
namespace Utils {
|
2016-11-23 13:31:47 +01:00
|
|
|
namespace Search {
|
|
|
|
|
|
|
|
|
|
inline
|
|
|
|
|
bool operator==(const TextPosition first, class TextPosition second)
|
|
|
|
|
{
|
|
|
|
|
return first.line == second.line
|
2020-06-25 09:27:24 +02:00
|
|
|
&& first.column == second.column;
|
2016-11-23 13:31:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
inline
|
|
|
|
|
bool operator==(const TextRange first, class TextRange second)
|
|
|
|
|
{
|
|
|
|
|
return first.begin == second.begin
|
|
|
|
|
&& first.end == second.end;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|