Lines Matching refs:SubjectChar

56 template <typename PatternChar, typename SubjectChar>
63 if (sizeof(PatternChar) > sizeof(SubjectChar)) { in StringSearch()
81 int Search(Vector<const SubjectChar> subject, int index) { in Search()
98 StringSearch<PatternChar, SubjectChar>*,
99 Vector<const SubjectChar>,
102 static int FailSearch(StringSearch<PatternChar, SubjectChar>*, in FailSearch() argument
103 Vector<const SubjectChar>, in FailSearch() argument
108 static int SingleCharSearch(StringSearch<PatternChar, SubjectChar>* search,
109 Vector<const SubjectChar> subject,
112 static int LinearSearch(StringSearch<PatternChar, SubjectChar>* search,
113 Vector<const SubjectChar> subject,
116 static int InitialSearch(StringSearch<PatternChar, SubjectChar>* search,
117 Vector<const SubjectChar> subject,
121 StringSearch<PatternChar, SubjectChar>* search,
122 Vector<const SubjectChar> subject,
125 static int BoyerMooreSearch(StringSearch<PatternChar, SubjectChar>* search,
126 Vector<const SubjectChar> subject,
142 SubjectChar char_code) { in CharOccurrence()
143 if (sizeof(SubjectChar) == 1) { in CharOccurrence()
209 template <typename PatternChar, typename SubjectChar>
211 Vector<const SubjectChar> subject, int index) { in FindFirstCharacter()
216 const SubjectChar search_char = static_cast<SubjectChar>(pattern_first_char); in FindFirstCharacter()
220 const SubjectChar* char_pos = reinterpret_cast<const SubjectChar*>( in FindFirstCharacter()
222 (max_n - pos) * sizeof(SubjectChar))); in FindFirstCharacter()
224 char_pos = AlignDown(char_pos, sizeof(SubjectChar)); in FindFirstCharacter()
237 template <typename PatternChar, typename SubjectChar>
238 int StringSearch<PatternChar, SubjectChar>::SingleCharSearch( in SingleCharSearch()
239 StringSearch<PatternChar, SubjectChar>* search, in SingleCharSearch()
240 Vector<const SubjectChar> subject, in SingleCharSearch()
244 if (sizeof(PatternChar) > sizeof(SubjectChar)) { in SingleCharSearch()
257 template <typename PatternChar, typename SubjectChar>
259 const SubjectChar* subject, in CharCompare()
274 template <typename PatternChar, typename SubjectChar>
275 int StringSearch<PatternChar, SubjectChar>::LinearSearch( in LinearSearch()
276 StringSearch<PatternChar, SubjectChar>* search, in LinearSearch()
277 Vector<const SubjectChar> subject, in LinearSearch()
304 template <typename PatternChar, typename SubjectChar>
305 int StringSearch<PatternChar, SubjectChar>::BoyerMooreSearch( in BoyerMooreSearch()
306 StringSearch<PatternChar, SubjectChar>* search, in BoyerMooreSearch()
307 Vector<const SubjectChar> subject, in BoyerMooreSearch()
340 static_cast<SubjectChar>(last_char)); in BoyerMooreSearch()
357 template <typename PatternChar, typename SubjectChar>
358 void StringSearch<PatternChar, SubjectChar>::PopulateBoyerMooreTable() { in PopulateBoyerMooreTable()
427 template <typename PatternChar, typename SubjectChar>
428 int StringSearch<PatternChar, SubjectChar>::BoyerMooreHorspoolSearch( in BoyerMooreHorspoolSearch()
429 StringSearch<PatternChar, SubjectChar>* search, in BoyerMooreHorspoolSearch()
430 Vector<const SubjectChar> subject, in BoyerMooreHorspoolSearch()
441 CharOccurrence(char_occurrences, static_cast<SubjectChar>(last_char)); in BoyerMooreHorspoolSearch()
478 template <typename PatternChar, typename SubjectChar>
479 void StringSearch<PatternChar, SubjectChar>::PopulateBoyerMooreHorspoolTable() { in PopulateBoyerMooreHorspoolTable()
512 template <typename PatternChar, typename SubjectChar>
513 int StringSearch<PatternChar, SubjectChar>::InitialSearch( in InitialSearch()
514 StringSearch<PatternChar, SubjectChar>* search, in InitialSearch()
515 Vector<const SubjectChar> subject, in InitialSearch()
557 template <typename SubjectChar, typename PatternChar>
559 Vector<const SubjectChar> subject, in SearchString()
562 StringSearch<PatternChar, SubjectChar> search(isolate, pattern); in SearchString()