OSDN Git Service

Merge branch 'branch_0.12.0' into branch_0.13.0
[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
37 extern char *chxj_encoding_parameter(
38   request_rec *r, 
39   const char  *value,
40   int xmlflag);
41
42
43 char *chxj_iconv(request_rec *r, apr_pool_t *pool, const char *src, apr_size_t *len, const char *from, const char *to);
44 extern void
45 chxj_convert_illegal_charactor_sequence(
46   request_rec         *r,
47   chxjconvrule_entry  *entryp,
48   char                **ibuf,
49   apr_size_t          *ilen,
50   char                **obuf,
51   apr_size_t          *olen);
52
53 #endif
54