search-util.h 836 Bytes
Newer Older
1 2 3 4
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

5 6
#ifndef V8_INSPECTOR_SEARCH_UTIL_H_
#define V8_INSPECTOR_SEARCH_UTIL_H_
7

8 9
#include <memory>

10
#include "src/inspector/protocol/Debugger.h"
11
#include "src/inspector/string-util.h"
12 13 14 15 16

namespace v8_inspector {

class V8InspectorSession;

17 18
String16 findSourceURL(const String16& content, bool multiline);
String16 findSourceMapURL(const String16& content, bool multiline);
19 20 21 22 23
std::vector<std::unique_ptr<protocol::Debugger::SearchMatch>>
searchInTextByLinesImpl(V8InspectorSession*, const String16& text,
                        const String16& query, bool caseSensitive,
                        bool isRegex);

24
}  // namespace v8_inspector
25

26
#endif  // V8_INSPECTOR_SEARCH_UTIL_H_