OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_STRING_SEARCH_H_ | 5 #ifndef V8_STRING_SEARCH_H_ |
6 #define V8_STRING_SEARCH_H_ | 6 #define V8_STRING_SEARCH_H_ |
7 | 7 |
8 #include "src/isolate.h" | 8 #include "src/isolate.h" |
9 #include "src/vector.h" | 9 #include "src/vector.h" |
10 | 10 |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 // for each search. | 556 // for each search. |
557 template <typename SubjectChar, typename PatternChar> | 557 template <typename SubjectChar, typename PatternChar> |
558 int SearchString(Isolate* isolate, | 558 int SearchString(Isolate* isolate, |
559 Vector<const SubjectChar> subject, | 559 Vector<const SubjectChar> subject, |
560 Vector<const PatternChar> pattern, | 560 Vector<const PatternChar> pattern, |
561 int start_index) { | 561 int start_index) { |
562 StringSearch<PatternChar, SubjectChar> search(isolate, pattern); | 562 StringSearch<PatternChar, SubjectChar> search(isolate, pattern); |
563 return search.Search(subject, start_index); | 563 return search.Search(subject, start_index); |
564 } | 564 } |
565 | 565 |
566 }} // namespace v8::internal | 566 } // namespace internal |
| 567 } // namespace v8 |
567 | 568 |
568 #endif // V8_STRING_SEARCH_H_ | 569 #endif // V8_STRING_SEARCH_H_ |
OLD | NEW |