Home | History | Annotate | Download | only in src

Lines Matching refs:search

158   FPDF_SCHHANDLE search = FPDFText_FindStart(textpage, nope.get(), 0, 0);
159 EXPECT_NE(nullptr, search);
160 EXPECT_EQ(0, FPDFText_GetSchResultIndex(search));
161 EXPECT_EQ(0, FPDFText_GetSchCount(search));
164 EXPECT_FALSE(FPDFText_FindNext(search));
165 EXPECT_EQ(0, FPDFText_GetSchResultIndex(search));
166 EXPECT_EQ(0, FPDFText_GetSchCount(search));
169 EXPECT_FALSE(FPDFText_FindPrev(search));
170 EXPECT_EQ(0, FPDFText_GetSchResultIndex(search));
171 EXPECT_EQ(0, FPDFText_GetSchCount(search));
172 FPDFText_FindClose(search);
175 search = FPDFText_FindStart(textpage, world.get(), 0, 2);
176 EXPECT_NE(nullptr, search);
179 EXPECT_EQ(0, FPDFText_GetSchResultIndex(search));
180 EXPECT_EQ(0, FPDFText_GetSchCount(search));
183 EXPECT_TRUE(FPDFText_FindNext(search));
184 EXPECT_EQ(7, FPDFText_GetSchResultIndex(search));
185 EXPECT_EQ(5, FPDFText_GetSchCount(search));
188 EXPECT_TRUE(FPDFText_FindNext(search));
189 EXPECT_EQ(24, FPDFText_GetSchResultIndex(search));
190 EXPECT_EQ(5, FPDFText_GetSchCount(search));
193 EXPECT_FALSE(FPDFText_FindNext(search));
194 EXPECT_EQ(24, FPDFText_GetSchResultIndex(search));
195 EXPECT_EQ(5, FPDFText_GetSchCount(search));
198 EXPECT_TRUE(FPDFText_FindPrev(search));
199 EXPECT_EQ(7, FPDFText_GetSchResultIndex(search));
200 EXPECT_EQ(5, FPDFText_GetSchCount(search));
203 EXPECT_FALSE(FPDFText_FindPrev(search));
204 EXPECT_EQ(7, FPDFText_GetSchResultIndex(search));
205 EXPECT_EQ(5, FPDFText_GetSchCount(search));
206 FPDFText_FindClose(search);
208 // Exact search unaffected by case sensitiity and whole word flags.
209 search = FPDFText_FindStart(textpage, world.get(),
211 EXPECT_NE(nullptr, search);
212 EXPECT_TRUE(FPDFText_FindNext(search));
213 EXPECT_EQ(7, FPDFText_GetSchResultIndex(search));
214 EXPECT_EQ(5, FPDFText_GetSchCount(search));
215 FPDFText_FindClose(search);
218 search = FPDFText_FindStart(textpage, world_caps.get(), 0, 0);
219 EXPECT_NE(nullptr, search);
220 EXPECT_TRUE(FPDFText_FindNext(search));
221 EXPECT_EQ(7, FPDFText_GetSchResultIndex(search));
222 EXPECT_EQ(5, FPDFText_GetSchCount(search));
223 FPDFText_FindClose(search);
226 search = FPDFText_FindStart(textpage, world_caps.get(), FPDF_MATCHCASE, 0);
227 EXPECT_FALSE(FPDFText_FindNext(search));
228 EXPECT_EQ(0, FPDFText_GetSchResultIndex(search));
229 EXPECT_EQ(0, FPDFText_GetSchCount(search));
230 FPDFText_FindClose(search);
233 search = FPDFText_FindStart(textpage, world_substr.get(), 0, 0);
234 EXPECT_TRUE(FPDFText_FindNext(search));
235 EXPECT_EQ(8, FPDFText_GetSchResultIndex(search));
236 EXPECT_EQ(4, FPDFText_GetSchCount(search));
237 FPDFText_FindClose(search);
240 search =
242 EXPECT_FALSE(FPDFText_FindNext(search));
244 FPDFText_FindClose(search);