summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/fitz/document.c18
-rw-r--r--source/fitz/string.c20
2 files changed, 20 insertions, 18 deletions
diff --git a/source/fitz/document.c b/source/fitz/document.c
index 6c2d9500..52408ae3 100644
--- a/source/fitz/document.c
+++ b/source/fitz/document.c
@@ -64,24 +64,6 @@ void fz_register_document_handler(fz_context *ctx, const fz_document_handler *ha
dc->handler[dc->count++] = handler;
}
-static inline int fz_tolower(int c)
-{
- if (c >= 'A' && c <= 'Z')
- return c + 32;
- return c;
-}
-
-int fz_strcasecmp(const char *a, const char *b)
-{
- while (fz_tolower(*a) == fz_tolower(*b))
- {
- if (*a++ == 0)
- return 0;
- b++;
- }
- return fz_tolower(*a) - fz_tolower(*b);
-}
-
fz_document *
fz_open_document_with_stream(fz_context *ctx, const char *magic, fz_stream *stream)
{
diff --git a/source/fitz/string.c b/source/fitz/string.c
index 025b612c..95b216fe 100644
--- a/source/fitz/string.c
+++ b/source/fitz/string.c
@@ -1,5 +1,25 @@
#include "mupdf/fitz.h"
+static inline int
+fz_tolower(int c)
+{
+ if (c >= 'A' && c <= 'Z')
+ return c + 32;
+ return c;
+}
+
+int
+fz_strcasecmp(const char *a, const char *b)
+{
+ while (fz_tolower(*a) == fz_tolower(*b))
+ {
+ if (*a++ == 0)
+ return 0;
+ b++;
+ }
+ return fz_tolower(*a) - fz_tolower(*b);
+}
+
char *
fz_strsep(char **stringp, const char *delim)
{