OSDN Git Service

* Updated changelog.
[modchxj/mod_chxj.git] / include / chxj_encoding.h
1 /*
2  * Copyright (C) 2005-2009 Atsushi Konno All rights reserved.
3  * Copyright (C) 2005 QSDN,Inc. All rights reserved.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 #ifndef __CHXJ_ENCODING_H__
18 #define __CHXJ_ENCODING_H__
19
20 #include "mod_chxj.h"
21
22 #define DEFAULT_SERVER_SIDE_ENCODING "NONE"
23
24 /*----------------------------------------------------------------------------*/
25 /* Prototype                                                                  */
26 /*----------------------------------------------------------------------------*/
27 extern char *chxj_encoding(
28   request_rec *r, 
29   const char  *src, 
30   apr_size_t  *len);
31
32 extern char *chxj_rencoding(
33   request_rec *r, 
34   const char *src, 
35   apr_size_t *len,
36   const char *enc);
37
38 extern char *chxj_encoding_parameter(
39   request_rec *r, 
40   const char  *value,
41   int xmlflag);
42
43
44 char *chxj_iconv(request_rec *r, apr_pool_t *pool, const char *src, apr_size_t *len, const char *from, const char *to);
45 extern void
46 chxj_convert_illegal_charactor_sequence(
47   request_rec         *r,
48   chxjconvrule_entry  *entryp,
49   char                **ibuf,
50   apr_size_t          *ilen,
51   char                **obuf,
52   apr_size_t          *olen);
53
54 #endif
55