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" |
| 9 #include "src/vector.h" |
| 10 |
8 namespace v8 { | 11 namespace v8 { |
9 namespace internal { | 12 namespace internal { |
10 | 13 |
11 | 14 |
12 //--------------------------------------------------------------------- | 15 //--------------------------------------------------------------------- |
13 // String Search object. | 16 // String Search object. |
14 //--------------------------------------------------------------------- | 17 //--------------------------------------------------------------------- |
15 | 18 |
16 // Class holding constants and methods that apply to all string search variants, | 19 // Class holding constants and methods that apply to all string search variants, |
17 // independently of subject and pattern char size. | 20 // independently of subject and pattern char size. |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 Vector<const SubjectChar> subject, | 551 Vector<const SubjectChar> subject, |
549 Vector<const PatternChar> pattern, | 552 Vector<const PatternChar> pattern, |
550 int start_index) { | 553 int start_index) { |
551 StringSearch<PatternChar, SubjectChar> search(isolate, pattern); | 554 StringSearch<PatternChar, SubjectChar> search(isolate, pattern); |
552 return search.Search(subject, start_index); | 555 return search.Search(subject, start_index); |
553 } | 556 } |
554 | 557 |
555 }} // namespace v8::internal | 558 }} // namespace v8::internal |
556 | 559 |
557 #endif // V8_STRING_SEARCH_H_ | 560 #endif // V8_STRING_SEARCH_H_ |
OLD | NEW |