Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fpdf_searchex.h
Go to the documentation of this file.
1
// Copyright 2014 The PDFium Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7
#
ifndef
PUBLIC_FPDF_SEARCHEX_H_
8
#
define
PUBLIC_FPDF_SEARCHEX_H_
9
10
// NOLINTNEXTLINE(build/include)
11
#
include
"fpdfview.h"
12
13
#
ifdef
__cplusplus
14
extern
"C"
{
15
#
endif
// __cplusplus
16
17
// Get the character index in |text_page| internal character list.
18
//
19
// text_page - a text page information structure.
20
// nTextIndex - index of the text returned from FPDFText_GetText().
21
//
22
// Returns the index of the character in internal character list. -1 for error.
23
FPDF_EXPORT
int
FPDF_CALLCONV
24
FPDFText_GetCharIndexFromTextIndex
(FPDF_TEXTPAGE text_page,
int
nTextIndex);
25
26
// Get the text index in |text_page| internal character list.
27
//
28
// text_page - a text page information structure.
29
// nCharIndex - index of the character in internal character list.
30
//
31
// Returns the index of the text returned from FPDFText_GetText(). -1 for error.
32
FPDF_EXPORT
int
FPDF_CALLCONV
33
FPDFText_GetTextIndexFromCharIndex
(FPDF_TEXTPAGE text_page,
int
nCharIndex);
34
35
#
ifdef
__cplusplus
36
}
// extern "C"
37
#
endif
// __cplusplus
38
39
#
endif
// PUBLIC_FPDF_SEARCHEX_H_
CPDF_TextPage::CharIndexFromTextIndex
int CharIndexFromTextIndex(int text_index) const
Definition
cpdf_textpage.cpp:323
CPDF_TextPage::TextIndexFromCharIndex
int TextIndexFromCharIndex(int char_index) const
Definition
cpdf_textpage.cpp:333
CPDFTextPageFromFPDFTextPage
CPDF_TextPage * CPDFTextPageFromFPDFTextPage(FPDF_TEXTPAGE page)
Definition
cpdfsdk_helpers.h:200
FPDFText_GetTextIndexFromCharIndex
FPDF_EXPORT int FPDF_CALLCONV FPDFText_GetTextIndexFromCharIndex(FPDF_TEXTPAGE text_page, int nCharIndex)
Definition
fpdf_searchex.cpp:21
FPDFText_GetCharIndexFromTextIndex
FPDF_EXPORT int FPDF_CALLCONV FPDFText_GetCharIndexFromTextIndex(FPDF_TEXTPAGE text_page, int nTextIndex)
Definition
fpdf_searchex.cpp:13
FPDF_CALLCONV
#define FPDF_CALLCONV
Definition
fpdfview.h:227
FPDF_EXPORT
#define FPDF_EXPORT
Definition
fpdfview.h:221
qtwebengine
src
3rdparty
chromium
third_party
pdfium
public
fpdf_searchex.h
Generated on Sat Sep 21 2024 00:57:31 for Qt by
1.12.0