diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-11-07 13:46:59 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-11-16 14:05:07 +0100 |
commit | e50ede1410458db86c08d4368496b924e0d5d221 (patch) | |
tree | 768329e7243992e776607ad98d3e1f054e9f2b3b /fitz/fitz.h | |
parent | 3b276ac7be6e4935e771f6ac46f91c73144594dc (diff) | |
download | mupdf-e50ede1410458db86c08d4368496b924e0d5d221.tar.xz |
Move text searching function into fitz.
Diffstat (limited to 'fitz/fitz.h')
-rw-r--r-- | fitz/fitz.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h index 0d5a52c0..2090b31f 100644 --- a/fitz/fitz.h +++ b/fitz/fitz.h @@ -1795,6 +1795,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. */ |