From e50ede1410458db86c08d4368496b924e0d5d221 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 7 Nov 2012 13:46:59 +0100 Subject: Move text searching function into fitz. --- fitz/fitz.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'fitz/fitz.h') diff --git a/fitz/fitz.h b/fitz/fitz.h index 0d5a52c0..2090b31f 100644 --- a/fitz/fitz.h +++ b/fitz/fitz.h @@ -1794,6 +1794,15 @@ void fz_print_text_page_xml(fz_context *ctx, FILE *out, fz_text_page *page); */ void fz_print_text_page(fz_context *ctx, FILE *out, fz_text_page *page); +/* + fz_search_text_page: Search for occurrence of 'needle' in text page. + + Return the number of hits and store hit bboxes in the passed in array. + + NOTE: This is an experimental interface and subject to change without notice. +*/ +int fz_search_text_page(fz_context *ctx, fz_text_page *text, char *needle, fz_bbox *hit_bbox, int hit_max); + /* Cookie support - simple communication channel between app/library. */ -- cgit v1.2.3