File indexing completed on 2025-01-05 05:23:32
0001 /* 0002 This file is part of the Okteta Kasten module, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2023 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef KASTEN_BYTEARRAYSEARCHUTILS_HPP 0010 #define KASTEN_BYTEARRAYSEARCHUTILS_HPP 0011 0012 // libfinddialog 0013 #include <finddirection.hpp> 0014 // Okteta core 0015 #include <Okteta/AddressRange> 0016 0017 namespace Okteta { 0018 class AbstractByteArrayModel; 0019 } 0020 0021 class QByteArray; 0022 0023 namespace Kasten { 0024 0025 namespace ByteArraySearchUtils { 0026 0027 bool getSearchIndexes(Okteta::Address* searchFirstIndex, Okteta::Address* searchLastIndex, 0028 const Okteta::AbstractByteArrayModel* byteArrayModel, 0029 Okteta::AddressRange selection, 0030 Okteta::Address cursorPosition, 0031 const QByteArray& searchData, 0032 FindDirection direction, 0033 bool fromCursor, bool inSelection); 0034 0035 } 0036 0037 } 0038 0039 #endif