Home
last modified time | relevance | path

Searched refs:textpage (Results 1 – 4 of 4) sorted by relevance

/external/pdfium/fpdfsdk/
Dfpdf_searchex_embeddertest.cpp17 ScopedFPDFTextPage textpage(FPDFText_LoadPage(page)); in TEST_F() local
18 ASSERT_TRUE(textpage); in TEST_F()
20 EXPECT_EQ(-2, FPDFText_GetCharIndexFromTextIndex(textpage.get(), -2)); in TEST_F()
21 EXPECT_EQ(-1, FPDFText_GetCharIndexFromTextIndex(textpage.get(), -1)); in TEST_F()
22 EXPECT_EQ(0, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 0)); in TEST_F()
23 EXPECT_EQ(1, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 1)); in TEST_F()
24 EXPECT_EQ(2, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 2)); in TEST_F()
25 EXPECT_EQ(5, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 5)); in TEST_F()
26 EXPECT_EQ(10, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 10)); in TEST_F()
27 EXPECT_EQ(29, FPDFText_GetCharIndexFromTextIndex(textpage.get(), 29)); in TEST_F()
[all …]
Dfpdf_text_embeddertest.cpp48 FPDF_TEXTPAGE textpage = FPDFText_LoadPage(page); in TEST_F() local
49 ASSERT_TRUE(textpage); in TEST_F()
55 EXPECT_EQ(0, FPDFText_GetText(textpage, 0, 128, nullptr)); in TEST_F()
56 EXPECT_EQ(0, FPDFText_GetText(textpage, -1, 128, buffer)); in TEST_F()
57 EXPECT_EQ(0, FPDFText_GetText(textpage, 0, -1, buffer)); in TEST_F()
58 EXPECT_EQ(1, FPDFText_GetText(textpage, 0, 0, buffer)); in TEST_F()
63 EXPECT_EQ(2, FPDFText_GetText(textpage, 0, 1, buffer)); in TEST_F()
68 int num_chars = FPDFText_GetText(textpage, 0, 128, buffer); in TEST_F()
74 EXPECT_EQ(kHelloGoodbyeTextSize - 1, FPDFText_CountChars(textpage)); in TEST_F()
77 FPDFText_GetUnicode(textpage, i)) in TEST_F()
[all …]
Dfpdf_text.cpp39 CPDF_TextPage* textpage = CPDFTextPageFromFPDFTextPage(text_page); in GetTextPageForValidIndex() local
40 return static_cast<size_t>(index) < textpage->size() ? textpage : nullptr; in GetTextPageForValidIndex()
51 auto textpage = in FPDFText_LoadPage() local
55 return FPDFTextPageFromCPDFTextPage(textpage.release()); in FPDFText_LoadPage()
68 CPDF_TextPage* textpage = CPDFTextPageFromFPDFTextPage(text_page); in FPDFText_CountChars() local
69 return textpage->CountChars(); in FPDFText_CountChars()
74 CPDF_TextPage* textpage = GetTextPageForValidIndex(text_page, index); in FPDFText_GetUnicode() local
75 if (!textpage) in FPDFText_GetUnicode()
78 const CPDF_TextPage::CharInfo& charinfo = textpage->GetCharInfo(index); in FPDFText_GetUnicode()
84 CPDF_TextPage* textpage = GetTextPageForValidIndex(text_page, index); in FPDFText_GetFontSize() local
[all …]
/external/pdfium/samples/
Dpdfium_test_write_helper.cc249 ScopedFPDFTextPage textpage(FPDFText_LoadPage(page)); in WriteText() local
250 for (int i = 0; i < FPDFText_CountChars(textpage.get()); i++) { in WriteText()
251 uint32_t c = FPDFText_GetUnicode(textpage.get(), i); in WriteText()