summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-03-07 20:53:31 +0000
committerRobin Watts <robin.watts@artifex.com>2012-03-07 20:53:31 +0000
commit7a2973ba2c4865f42d02a4f878ce51ab7d72c394 (patch)
tree0ca4fe90d624796cd039f4e8608c770774d44c70 /pdf
parentc4e870b5422207e6ca31eb2cd6694ba44faec21e (diff)
downloadmupdf-7a2973ba2c4865f42d02a4f878ce51ab7d72c394.tar.xz
More release tidyups.
Add some function documentation to fitz.h. Add fz_ prefix to runetochar, chartorune, runelen etc. Change fz_runetochar to avoid passing unnecessary pointer.
Diffstat (limited to 'pdf')
-rw-r--r--pdf/pdf_parse.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/pdf/pdf_parse.c b/pdf/pdf_parse.c
index d2cf8d81..fe9db368 100644
--- a/pdf/pdf_parse.c
+++ b/pdf/pdf_parse.c
@@ -45,7 +45,7 @@ pdf_to_utf8(fz_context *ctx, pdf_obj *src)
for (i = 2; i + 1 < srclen; i += 2)
{
ucs = srcptr[i] << 8 | srcptr[i+1];
- dstlen += runelen(ucs);
+ dstlen += fz_runelen(ucs);
}
dstptr = dst = fz_malloc(ctx, dstlen + 1);
@@ -53,7 +53,7 @@ pdf_to_utf8(fz_context *ctx, pdf_obj *src)
for (i = 2; i + 1 < srclen; i += 2)
{
ucs = srcptr[i] << 8 | srcptr[i+1];
- dstptr += runetochar(dstptr, &ucs);
+ dstptr += fz_runetochar(dstptr, ucs);
}
}
else if (srclen >= 2 && srcptr[0] == 255 && srcptr[1] == 254)
@@ -61,7 +61,7 @@ pdf_to_utf8(fz_context *ctx, pdf_obj *src)
for (i = 2; i + 1 < srclen; i += 2)
{
ucs = srcptr[i] | srcptr[i+1] << 8;
- dstlen += runelen(ucs);
+ dstlen += fz_runelen(ucs);
}
dstptr = dst = fz_malloc(ctx, dstlen + 1);
@@ -69,20 +69,20 @@ pdf_to_utf8(fz_context *ctx, pdf_obj *src)
for (i = 2; i + 1 < srclen; i += 2)
{
ucs = srcptr[i] | srcptr[i+1] << 8;
- dstptr += runetochar(dstptr, &ucs);
+ dstptr += fz_runetochar(dstptr, ucs);
}
}
else
{
for (i = 0; i < srclen; i++)
- dstlen += runelen(pdf_doc_encoding[srcptr[i]]);
+ dstlen += fz_runelen(pdf_doc_encoding[srcptr[i]]);
dstptr = dst = fz_malloc(ctx, dstlen + 1);
for (i = 0; i < srclen; i++)
{
ucs = pdf_doc_encoding[srcptr[i]];
- dstptr += runetochar(dstptr, &ucs);
+ dstptr += fz_runetochar(dstptr, ucs);
}
}