• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef V8_INSPECTOR_SEARCH_UTIL_H_
6 #define V8_INSPECTOR_SEARCH_UTIL_H_
7 
8 #include <memory>
9 
10 #include "src/inspector/protocol/Debugger.h"
11 #include "src/inspector/string-util.h"
12 
13 namespace v8_inspector {
14 
15 class V8InspectorSession;
16 
17 String16 findSourceURL(const String16& content, bool multiline);
18 String16 findSourceMapURL(const String16& content, bool multiline);
19 std::vector<std::unique_ptr<protocol::Debugger::SearchMatch>>
20 searchInTextByLinesImpl(V8InspectorSession*, const String16& text,
21                         const String16& query, bool caseSensitive,
22                         bool isRegex);
23 
24 }  // namespace v8_inspector
25 
26 #endif  // V8_INSPECTOR_SEARCH_UTIL_H_
27