Revert "Remove IPDFSDK_AnnotHandler interface."
[pdfium.git] / fpdfsdk / src / fpdf_searchex.cpp
index e012d30..9747316 100644 (file)
@@ -8,11 +8,9 @@
 
 #include "../../core/include/fpdftext/fpdf_text.h"
 
-DLLEXPORT int STDCALL FPDFText_GetCharIndexFromTextIndex(
-    FPDF_TEXTPAGE text_page,
-    int nTextIndex)
-{
-    if (!text_page)
-        return -1;
-    return ((IPDF_TextPage*)text_page)->CharIndexFromTextIndex(nTextIndex);
+DLLEXPORT int STDCALL
+FPDFText_GetCharIndexFromTextIndex(FPDF_TEXTPAGE text_page, int nTextIndex) {
+  if (!text_page)
+    return -1;
+  return ((IPDF_TextPage*)text_page)->CharIndexFromTextIndex(nTextIndex);
 }