blob: 0d90bdddb91b5c78b471d41f5c66c38de9d30fe3 [file] [log] [blame]
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07001// Copyright 2014 PDFium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
Tom Sepez9857e202015-05-13 17:09:26 -07004
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07005// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
Tom Sepez9857e202015-05-13 17:09:26 -07007#ifndef PUBLIC_FPDF_SEARCHEX_H_
8#define PUBLIC_FPDF_SEARCHEX_H_
9
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070010#include "fpdfview.h"
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070011
12#ifdef __cplusplus
13extern "C" {
dsinclair860193b2016-04-25 19:44:20 -070014#endif // __cplusplus
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070015
dsinclair860193b2016-04-25 19:44:20 -070016// Get the character index in |text_page| internal character list.
17//
18// text_page - a text page information structure.
19// nTextIndex - index of the text returned from |FPDFText_GetText|.
20//
21// Returns the index of the character in internal character list. -1 for error.
Nico Weber9d8ec5a2015-08-04 13:00:21 -070022DLLEXPORT int STDCALL
23FPDFText_GetCharIndexFromTextIndex(FPDF_TEXTPAGE text_page, int nTextIndex);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070024
25#ifdef __cplusplus
dsinclair860193b2016-04-25 19:44:20 -070026} // extern "C"
27#endif // __cplusplus
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070028
Tom Sepez9857e202015-05-13 17:09:26 -070029#endif // PUBLIC_FPDF_SEARCHEX_H_