summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2000-05-24 11:45:44 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2000-05-24 11:45:44 +0000
commit36cab5abbf6ef597a2814354eb49540b0a2b33c5 (patch)
treea41036288614352dd0a634e99f83b6ed1f8085c1 /include
parent7d081999479bdf68d799a681a665cff636a85fa4 (diff)
downloadlibapr-36cab5abbf6ef597a2814354eb49540b0a2b33c5.tar.gz
Add ap_xlate_get_sb() so that an app can find out whether or not
a conversion is single-byte only. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60090 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/apr_xlate.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/include/apr_xlate.h b/include/apr_xlate.h
index df82e5201..fda8d6d5d 100644
--- a/include/apr_xlate.h
+++ b/include/apr_xlate.h
@@ -81,6 +81,8 @@ typedef void ap_xlate_t;
#define ap_xlate_open(convset, topage, frompage, pool) APR_ENOTIMPL
+#define ap_xlate_get_sb(convset, onoff) APR_ENOTIMPL
+
#define ap_xlate_conv_buffer(convset, inbuf, inbytes_left, outbuf, \
outbytes_left) APR_ENOTIMPL
@@ -121,12 +123,27 @@ B<NOTE>: Specify APR_DEFAULT_CHARSET for one of the charset
=cut
*/
ap_status_t ap_xlate_open(ap_xlate_t **convset, const char *topage,
- const char *frompage, ap_pool_t *pool);
+ const char *frompage, ap_pool_t *pool);
#define APR_DEFAULT_CHARSET NULL
/*
+=head1 ap_status_t ap_xlate_get_sb(ap_xlate_t *convset, int *onoff)
+
+B<Find out whether or not the specified conversion is single-byte-only.>
+
+ arg 1) The handle allocated by ap_xlate_open, specifying the parameters
+ of conversion
+ arg 2) Output: whether or not the conversion is single-byte-only
+
+=cut
+ */
+
+ap_status_t ap_xlate_get_sb(ap_xlate_t *convset, int *onoff);
+
+/*
+
=head1 ap_status_t ap_xlate_conv_buffer(ap_xlate_t *convset, const char *inbuf, ap_size_t *inbytes_left, char *outbuf, ap_size_t outbytes_left)
B<Convert a buffer of text from one codepage to another.>