GME  13
apr_arch_utf8.h
Go to the documentation of this file.
00001 /* Licensed to the Apache Software Foundation (ASF) under one or more
00002  * contributor license agreements.  See the NOTICE file distributed with
00003  * this work for additional information regarding copyright ownership.
00004  * The ASF licenses this file to You under the Apache License, Version 2.0
00005  * (the "License"); you may not use this file except in compliance with
00006  * the License.  You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef UTF8_H
00018 #define UTF8_H
00019 
00020 #include "apr.h"
00021 #include "apr_lib.h"
00022 #include "apr_errno.h"
00023 
00024 /* If we ever support anything more exciting than char... this could move.
00025  */
00026 typedef apr_uint16_t apr_wchar_t;
00027 
00037 APR_DECLARE(apr_status_t) apr_conv_utf8_to_ucs2(const char *in, 
00038                                                 apr_size_t *inbytes,
00039                                                 apr_wchar_t *out, 
00040                                                 apr_size_t *outwords);
00041 
00051 APR_DECLARE(apr_status_t) apr_conv_ucs2_to_utf8(const apr_wchar_t *in, 
00052                                                 apr_size_t *inwords,
00053                                                 char *out, 
00054                                                 apr_size_t *outbytes);
00055 
00056 #endif /* def UTF8_H */