Lines Matching refs:textpage
38 FPDF_TEXTPAGE textpage = FPDFText_LoadPage(page); in TEST_F() local
39 EXPECT_TRUE(textpage); in TEST_F()
46 EXPECT_EQ(0, FPDFText_GetText(textpage, 0, 128, nullptr)); in TEST_F()
47 EXPECT_EQ(0, FPDFText_GetText(textpage, -1, 128, fixed_buffer)); in TEST_F()
48 EXPECT_EQ(0, FPDFText_GetText(textpage, 0, -1, fixed_buffer)); in TEST_F()
49 EXPECT_EQ(1, FPDFText_GetText(textpage, 0, 0, fixed_buffer)); in TEST_F()
54 EXPECT_EQ(2, FPDFText_GetText(textpage, 0, 1, fixed_buffer)); in TEST_F()
59 int num_chars = FPDFText_GetText(textpage, 0, 128, fixed_buffer); in TEST_F()
66 static_cast<size_t>(FPDFText_CountChars(textpage))); in TEST_F()
69 FPDFText_GetUnicode(textpage, i)) in TEST_F()
79 EXPECT_EQ(6, FPDFText_GetText(textpage, 0, 5, small_buffer)); in TEST_F()
83 EXPECT_EQ(12.0, FPDFText_GetFontSize(textpage, 0)); in TEST_F()
84 EXPECT_EQ(16.0, FPDFText_GetFontSize(textpage, 15)); in TEST_F()
95 EXPECT_FALSE(FPDFText_GetCharBox(textpage, -1, &left, &right, &bottom, &top)); in TEST_F()
100 EXPECT_FALSE(FPDFText_GetCharBox(textpage, 55, &left, &right, &bottom, &top)); in TEST_F()
106 EXPECT_TRUE(FPDFText_GetCharBox(textpage, 4, &left, &right, &bottom, &top)); in TEST_F()
114 EXPECT_TRUE(FPDFText_GetCharOrigin(textpage, 4, &x, &y)); in TEST_F()
118 EXPECT_EQ(4, FPDFText_GetCharIndexAtPos(textpage, 42.0, 50.0, 1.0, 1.0)); in TEST_F()
119 EXPECT_EQ(-1, FPDFText_GetCharIndexAtPos(textpage, 0.0, 0.0, 1.0, 1.0)); in TEST_F()
120 EXPECT_EQ(-1, FPDFText_GetCharIndexAtPos(textpage, 199.0, 199.0, 1.0, 1.0)); in TEST_F()
124 FPDFText_GetCharIndexAtPos(textpage, 42.0, 10000000.0, 1.0, 1.0)); in TEST_F()
125 EXPECT_EQ(-1, FPDFText_GetCharIndexAtPos(textpage, -1.0, 50.0, 1.0, 1.0)); in TEST_F()
128 EXPECT_EQ(2, FPDFText_CountRects(textpage, 0, sizeof(expected) - 1)); in TEST_F()
134 EXPECT_TRUE(FPDFText_GetRect(textpage, 1, &left, &top, &right, &bottom)); in TEST_F()
145 EXPECT_FALSE(FPDFText_GetRect(textpage, -1, &left, &top, &right, &bottom)); in TEST_F()
155 EXPECT_FALSE(FPDFText_GetRect(textpage, 2, &left, &top, &right, &bottom)); in TEST_F()
161 EXPECT_EQ(9, FPDFText_GetBoundedText(textpage, 41.0, 56.0, 82.0, 48.0, 0, 0)); in TEST_F()
165 EXPECT_EQ(1, FPDFText_GetBoundedText(textpage, 41.0, 56.0, 82.0, 48.0, in TEST_F()
171 EXPECT_EQ(9, FPDFText_GetBoundedText(textpage, 41.0, 56.0, 82.0, 48.0, in TEST_F()
177 EXPECT_EQ(10, FPDFText_GetBoundedText(textpage, 41.0, 56.0, 82.0, 48.0, in TEST_F()
183 FPDFText_ClosePage(textpage); in TEST_F()
192 FPDF_TEXTPAGE textpage = FPDFText_LoadPage(page); in TEST_F() local
193 EXPECT_TRUE(textpage); in TEST_F()
205 FPDF_SCHHANDLE search = FPDFText_FindStart(textpage, nope.get(), 0, 0); in TEST_F()
222 search = FPDFText_FindStart(textpage, world.get(), 0, 2); in TEST_F()
256 search = FPDFText_FindStart(textpage, world.get(), in TEST_F()
265 search = FPDFText_FindStart(textpage, world_caps.get(), 0, 0); in TEST_F()
273 search = FPDFText_FindStart(textpage, world_caps.get(), FPDF_MATCHCASE, 0); in TEST_F()
280 search = FPDFText_FindStart(textpage, world_substr.get(), 0, 0); in TEST_F()
288 FPDFText_FindStart(textpage, world_substr.get(), FPDF_MATCHWHOLEWORD, 0); in TEST_F()
293 FPDFText_ClosePage(textpage); in TEST_F()
303 FPDF_TEXTPAGE textpage = FPDFText_LoadPage(page); in TEST_F() local
304 EXPECT_TRUE(textpage); in TEST_F()
305 EXPECT_EQ(13, FPDFText_CountChars(textpage)); in TEST_F()
307 FPDFText_ClosePage(textpage); in TEST_F()
316 FPDF_TEXTPAGE textpage = FPDFText_LoadPage(page); in TEST_F() local
317 EXPECT_TRUE(textpage); in TEST_F()
319 FPDF_PAGELINK pagelink = FPDFLink_LoadWebLinks(textpage); in TEST_F()
413 FPDFText_ClosePage(textpage); in TEST_F()
422 FPDF_TEXTPAGE textpage = FPDFText_LoadPage(page); in TEST_F() local
423 EXPECT_TRUE(textpage); in TEST_F()
425 FPDF_PAGELINK pagelink = FPDFLink_LoadWebLinks(textpage); in TEST_F()
454 FPDFText_ClosePage(textpage); in TEST_F()
463 FPDF_TEXTPAGE textpage = FPDFText_LoadPage(page); in TEST_F() local
464 EXPECT_TRUE(textpage); in TEST_F()
466 FPDF_PAGELINK pagelink = FPDFLink_LoadWebLinks(textpage); in TEST_F()
481 FPDFText_ClosePage(textpage); in TEST_F()
490 FPDF_TEXTPAGE textpage = FPDFText_LoadPage(page); in TEST_F() local
491 EXPECT_TRUE(textpage); in TEST_F()
497 int count = FPDFText_CountChars(textpage); in TEST_F()
500 EXPECT_EQ(kExpectedFontsSizes[i], FPDFText_GetFontSize(textpage, i)) << i; in TEST_F()
502 FPDFText_ClosePage(textpage); in TEST_F()
511 FPDF_TEXTPAGE textpage = FPDFText_LoadPage(page); in TEST_F() local
512 EXPECT_TRUE(textpage); in TEST_F()
514 ASSERT_EQ(1, FPDFText_CountChars(textpage)); in TEST_F()
515 EXPECT_EQ(static_cast<unsigned int>(0), FPDFText_GetUnicode(textpage, 0)); in TEST_F()
517 FPDFText_ClosePage(textpage); in TEST_F()
526 FPDF_TEXTPAGE textpage = FPDFText_LoadPage(page); in TEST_F() local
527 EXPECT_TRUE(textpage); in TEST_F()
534 ASSERT_EQ(268, FPDFText_CountChars(textpage)); in TEST_F()
536 EXPECT_EQ(kData[i], FPDFText_GetUnicode(textpage, kStartIndex + i)); in TEST_F()
541 FPDFText_GetText(textpage, kStartIndex, FX_ArraySize(kData), buffer); in TEST_F()
548 FPDFText_ClosePage(textpage); in TEST_F()
557 FPDF_TEXTPAGE textpage = FPDFText_LoadPage(page); in TEST_F() local
558 EXPECT_TRUE(textpage); in TEST_F()
572 EXPECT_EQ(count + 1, FPDFText_GetText(textpage, 0, count, buffer)); in TEST_F()
590 EXPECT_EQ(count + 1, FPDFText_GetText(textpage, offset, count, buffer)); in TEST_F()
595 FPDFText_ClosePage(textpage); in TEST_F()
604 FPDF_TEXTPAGE textpage = FPDFText_LoadPage(page); in TEST_F() local
605 EXPECT_TRUE(textpage); in TEST_F()
606 FPDFText_ClosePage(textpage); in TEST_F()
615 FPDF_TEXTPAGE textpage = FPDFText_LoadPage(page); in TEST_F() local
616 EXPECT_TRUE(textpage); in TEST_F()
622 int num_chars = FPDFText_GetText(textpage, 0, 128, fixed_buffer); in TEST_F()
634 num_chars = FPDFText_GetText(textpage, offset, 128, fixed_buffer); in TEST_F()
641 FPDFText_ClosePage(textpage); in TEST_F()