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 "src/inspector/protocol/Debugger.h" 9 #include "src/inspector/string-util.h" 10 11 namespace v8_inspector { 12 13 class V8InspectorSession; 14 15 String16 findSourceURL(const String16& content, bool multiline); 16 String16 findSourceMapURL(const String16& content, bool multiline); 17 std::vector<std::unique_ptr<protocol::Debugger::SearchMatch>> 18 searchInTextByLinesImpl(V8InspectorSession*, const String16& text, 19 const String16& query, bool caseSensitive, 20 bool isRegex); 21 22 } // namespace v8_inspector 23 24 #endif // V8_INSPECTOR_SEARCH_UTIL_H_ 25