summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mupdf/fitz/string.h')
-rw-r--r--include/mupdf/fitz/string.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/mupdf/fitz/string.h b/include/mupdf/fitz/string.h
index 7700b6c7..9f1f656b 100644
--- a/include/mupdf/fitz/string.h
+++ b/include/mupdf/fitz/string.h
@@ -63,6 +63,15 @@ void fz_dirname(char *dir, const char *path, int dirsize);
char *fz_urldecode(char *url);
/*
+ fz_format_output_path: create output file name using a template.
+ If the path contains %[0-9]*d, the first such pattern will be replaced
+ with the page number. If the template does not contain such a pattern, the page
+ number will be inserted before the file suffix. If the template does not have
+ a file suffix, the page number will be added to the end.
+*/
+void fz_format_output_path(fz_context *ctx, char *path, int size, const char *fmt, int page);
+
+/*
fz_cleanname: rewrite path to the shortest string that names the same path.
Eliminates multiple and trailing slashes, interprets "." and "..".