| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * | 10 * |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 #include <wtf/Vector.h> | 34 #include <wtf/Vector.h> |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 class InspectorArray; | 38 class InspectorArray; |
| 39 class RegularExpression; | 39 class RegularExpression; |
| 40 | 40 |
| 41 namespace ContentSearchUtils { | 41 namespace ContentSearchUtils { |
| 42 | 42 |
| 43 RegularExpression createSearchRegex(const String& text, bool caseSensitive, bool
isRegex); | 43 RegularExpression createSearchRegex(const String& query, bool caseSensitive, boo
l isRegex); |
| 44 int countRegularExpressionMatches(const RegularExpression&, const String&); | 44 int countRegularExpressionMatches(const RegularExpression&, const String&); |
| 45 PassRefPtr<InspectorArray> searchInTextByLines(const String& query, const String
& text); | 45 PassRefPtr<InspectorArray> searchInTextByLines(const String& text, const String&
query, const bool caseSensitive, const bool isRegex); |
| 46 | 46 |
| 47 } // namespace ContentSearchUtils | 47 } // namespace ContentSearchUtils |
| 48 } // namespace WebCore | 48 } // namespace WebCore |
| 49 | 49 |
| 50 #endif // !defined(ContentSearchUtils_h) | 50 #endif // !defined(ContentSearchUtils_h) |
| OLD | NEW |