Restore deprecated function names for httpd and tcnative
- apr_conv_utf8_to_ucs2 and apr_conv_ucs2_to_utf8 functions are used by
both httpd and the tomcat tcnative connector
- if ever exposed as public and platform agnostic, the archaic 'ucs2' forms
should be dropped at that time
@@ -40,6 +40,11 @@ APR_DECLARE(apr_status_t) apr_conv_utf8_to_utf16(const char *in,
apr_wchar_t *out,
apr_size_t *outwords);
+/**
+ * @deprecated @see apr_conv_utf8_to_utf16
+ */
+#define apr_conv_utf8_to_ucs2(in, inbytes, out, outwords) apr_conv_utf8_to_utf16(in, inbytes, out, outwords)
+
/**
* An APR internal function for fast utf-16 Unicode including surrogate pairs
* format conversion to the utf-8 octet-encoded Unicode. This function is used
@@ -55,4 +60,9 @@ APR_DECLARE(apr_status_t) apr_conv_utf16_to_utf8(const apr_wchar_t *in,
char *out,
apr_size_t *outbytes);
+/**
+ * @deprecated @see apr_conv_utf16_to_utf8
+ */
+#define apr_conv_ucs2_to_utf8(in, inwords, out, outbytes) apr_conv_utf16_to_utf8(in, inwords, out, outbytes)
+
#endif /* def UTF8_H */
