summaryrefslogtreecommitdiff
path: root/i18n/unix
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2000-05-10 19:45:31 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2000-05-10 19:45:31 +0000
commit3dbb12d90225073a4ad5e466d005029b1d2776f7 (patch)
treef0cf15255a2607331aadc94c5e7914d303d415f6 /i18n/unix
parent7e4c7560922e12aef78908488ba566c3c247c0dd (diff)
downloadlibapr-3dbb12d90225073a4ad5e466d005029b1d2776f7.tar.gz
Add ap_xlate_conv_byte() to convert one char between single-byte character
sets. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60034 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'i18n/unix')
-rw-r--r--i18n/unix/xlate.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/i18n/unix/xlate.c b/i18n/unix/xlate.c
index ce9db86c5..d4b0838be 100644
--- a/i18n/unix/xlate.c
+++ b/i18n/unix/xlate.c
@@ -268,6 +268,16 @@ ap_status_t ap_xlate_conv_buffer(ap_xlate_t *convset, const char *inbuf,
return status;
}
+ap_int32_t ap_xlate_conv_byte(ap_xlate_t *convset, unsigned char inchar)
+{
+ if (convset->sbcs_table) {
+ return convset->sbcs_table[inchar];
+ }
+ else {
+ return -1;
+ }
+}
+
ap_status_t ap_xlate_close(ap_xlate_t *convset)
{
ap_status_t status;