All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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  */
17 #ifndef UTF8_H
18 #define UTF8_H
20 #include "apr.h"
21 #include "apr_lib.h"
22 #include "apr_errno.h"
24 /* If we ever support anything more exciting than char... this could move.
25  */
39  apr_size_t *inbytes,
40  apr_wchar_t *out,
41  apr_size_t *outwords);
46 #define apr_conv_utf8_to_ucs2(in, inbytes, out, outwords) apr_conv_utf8_to_utf16(in, inbytes, out, outwords)
59  apr_size_t *inwords,
60  char *out,
61  apr_size_t *outbytes);
66 #define apr_conv_ucs2_to_utf8(in, inwords, out, outbytes) apr_conv_utf16_to_utf8(in, inwords, out, outbytes)
68 #endif /* def UTF8_H */
size_t apr_size_t
Definition: apr.h:393
apr_status_t apr_conv_utf8_to_utf16(const char *in, apr_size_t *inbytes, apr_wchar_t *out, apr_size_t *outwords)
unsigned short apr_uint16_t
Definition: apr.h:344
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 Platform Definitions.
APR general purpose library routines.
#define APR_DECLARE(x)
Definition: macros.h:6
int apr_status_t
Definition: apr_errno.h:44
apr_uint16_t apr_wchar_t
Definition: apr_arch_utf8.h:26