Apache2
apr_arch_utf8.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef UTF8_H
18 #define UTF8_H
19 
20 #include "apr.h"
21 #include "apr_lib.h"
22 #include "apr_errno.h"
23 
24 /* If we ever support anything more exciting than char... this could move.
25  */
27 
39  apr_size_t *inbytes,
40  apr_wchar_t *out,
41  apr_size_t *outwords);
42 
46 #define apr_conv_utf8_to_ucs2(in, inbytes, out, outwords) apr_conv_utf8_to_utf16(in, inbytes, out, outwords)
47 
59  apr_size_t *inwords,
60  char *out,
61  apr_size_t *outbytes);
62 
66 #define apr_conv_ucs2_to_utf8(in, inwords, out, outbytes) apr_conv_utf16_to_utf8(in, inwords, out, outbytes)
67 
68 #endif /* def UTF8_H */
APR Platform Definitions.
apr_status_t apr_conv_utf8_to_utf16(const char *in, apr_size_t *inbytes, apr_wchar_t *out, apr_size_t *outwords)
apr_uint16_t apr_wchar_t
Definition: apr_arch_utf8.h:26
apr_status_t apr_conv_utf16_to_utf8(const apr_wchar_t *in, apr_size_t *inwords, char *out, apr_size_t *outbytes)
APR Error Codes.
APR general purpose library routines.
int apr_status_t
Definition: apr_errno.h:44
unsigned short apr_uint16_t
Definition: apr.h:345
size_t apr_size_t
Definition: apr.h:394
#define APR_DECLARE(x)
Definition: macros.h:6