summaryrefslogtreecommitdiff
path: root/platform/java/mupdf_native.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2021-11-18 14:02:24 +0100
committerTor Andersson <tor.andersson@artifex.com>2021-12-08 12:24:05 +0100
commit2a951a4a53746b760ebd2ffd3b3bbcae30d99b28 (patch)
treea279c26a1bc8e807764d33a6e478d1f50771d6a9 /platform/java/mupdf_native.h
parent115a027c8fc6d065bcd52a4b6d14efa15abb8c64 (diff)
Distinguish separate search hit results.
Add a new optional argument to mark search hits to all of the search functions. With the marker each individual hit on the page can be identified. A quad that starts a new array has a matching 1 in the 'hits' array. Each continuation quad is marked with a 0 instead. This is the minimally invasive API change, it just adds an optional extra int array for recording the hit markers. The Java and mutool run APIs have been changed to return an array of array of quads for the search results.
Diffstat (limited to 'platform/java/mupdf_native.h')
-rw-r--r--platform/java/mupdf_native.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/java/mupdf_native.h b/platform/java/mupdf_native.h
index ec2185b87..c66e89e38 100644
--- a/platform/java/mupdf_native.h
+++ b/platform/java/mupdf_native.h
@@ -387,7 +387,7 @@ JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_DisplayList_toStructuredTe
/*
* Class: com_artifex_mupdf_fitz_DisplayList
* Method: search
- * Signature: (Ljava/lang/String;)[Lcom/artifex/mupdf/fitz/Quad;
+ * Signature: (Ljava/lang/String;)[[Lcom/artifex/mupdf/fitz/Quad;
*/
JNIEXPORT jobjectArray JNICALL Java_com_artifex_mupdf_fitz_DisplayList_search
(JNIEnv *, jobject, jstring);
@@ -581,7 +581,7 @@ JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_Document_loadPage
/*
* Class: com_artifex_mupdf_fitz_Document
* Method: search
- * Signature: (IILjava/lang/String;)[Lcom/artifex/mupdf/fitz/Quad;
+ * Signature: (IILjava/lang/String;)[[Lcom/artifex/mupdf/fitz/Quad;
*/
JNIEXPORT jobjectArray JNICALL Java_com_artifex_mupdf_fitz_Document_search
(JNIEnv *, jobject, jint, jint, jstring);
@@ -3725,7 +3725,7 @@ JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_Page_toStructuredText
/*
* Class: com_artifex_mupdf_fitz_Page
* Method: search
- * Signature: (Ljava/lang/String;)[Lcom/artifex/mupdf/fitz/Quad;
+ * Signature: (Ljava/lang/String;)[[Lcom/artifex/mupdf/fitz/Quad;
*/
JNIEXPORT jobjectArray JNICALL Java_com_artifex_mupdf_fitz_Page_search
(JNIEnv *, jobject, jstring);
@@ -4245,7 +4245,7 @@ JNIEXPORT void JNICALL Java_com_artifex_mupdf_fitz_StructuredText_finalize
/*
* Class: com_artifex_mupdf_fitz_StructuredText
* Method: search
- * Signature: (Ljava/lang/String;)[Lcom/artifex/mupdf/fitz/Quad;
+ * Signature: (Ljava/lang/String;)[[Lcom/artifex/mupdf/fitz/Quad;
*/
JNIEXPORT jobjectArray JNICALL Java_com_artifex_mupdf_fitz_StructuredText_search
(JNIEnv *, jobject, jstring);