comparison mupdf-source/thirdparty/extract/src/text.h @ 3:2c135c81b16c

MERGE: upstream PyMuPDF 1.26.4 with MuPDF 1.26.7
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:44:09 +0200
parents b50eed0cc0ef
children
comparison
equal deleted inserted replaced
0:6015a75abc2d 3:2c135c81b16c
1 #ifndef EXTRACT_TEXT_H
2 #define EXTRACT_TEXT_H
3
4 #include "extract/alloc.h"
5
6 #include "astring.h"
7
8
9 int extract_content_insert(
10 extract_alloc_t* alloc,
11 const char* original,
12 const char* single_name,
13 const char* mid_begin_name,
14 const char* mid_end_name,
15 extract_astring_t* contentss,
16 int contentss_num,
17 char** o_out
18 );
19 /* Creates a new string by inserting sequence of strings into a template
20 string.
21
22 If <single_name> is in <original>, it is replaced by <contentss>.
23
24 Otherwise the text between the end of <mid_begin_name> and beginning of
25 <mid_end_name> is replaced by <contentss>.
26
27 If <mid_begin_name> is NULL, we insert into the zero-length region before
28 <mid_end_name>.
29
30 If <mid_end_name> is NULL, we insert into the zero-length region after
31 <mid_begin_name>.
32
33 At least one of <single_name>, <mid_begin_name> and <mid_end_name> must be
34 non-NULL.
35 */
36
37 #endif