OSDN Git Service

* version up.
[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
41 extern void
42 chxj_convert_illegal_charactor_sequence(
43   request_rec         *r,
44   chxjconvrule_entry  *entryp,
45   char                **ibuf,
46   apr_size_t          *ilen,
47   char                **obuf,
48   apr_size_t          *olen);
49
50 #endif
51