summaryrefslogtreecommitdiff
path: root/src/cairoint.h
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2017-03-18 08:55:11 +0100
committerAndrea Canciani <ranma42@gmail.com>2017-04-25 18:05:40 +0200
commit5584bf755c98703653eef06670abaeb4873f9ee5 (patch)
tree56124e93311ee1a27b92071720142f07282d4fb2 /src/cairoint.h
parentcb9f6273780bb2ffc710d2efdd4224d9096972cb (diff)
downloadcairo-5584bf755c98703653eef06670abaeb4873f9ee5.tar.gz
unicode: Extract the UCS4 to UTF-16 conversion to a separate function
Reuse the function for the UTF-8 to UTF-16 conversion, but also make it available for internal use by cairo.
Diffstat (limited to 'src/cairoint.h')
-rw-r--r--src/cairoint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cairoint.h b/src/cairoint.h
index 493d46103..1ae045c9b 100644
--- a/src/cairoint.h
+++ b/src/cairoint.h
@@ -1872,6 +1872,10 @@ cairo_private int
_cairo_ucs4_to_utf8 (uint32_t unicode,
char *utf8);
+cairo_private int
+_cairo_ucs4_to_utf16 (uint32_t unicode,
+ uint16_t *utf16);
+
#if CAIRO_HAS_WIN32_FONT || CAIRO_HAS_QUARTZ_FONT || CAIRO_HAS_PDF_OPERATORS
# define CAIRO_HAS_UTF8_TO_UTF16 1
#endif