OSDN Git Service

0ac71502acd3a8293e0b402c752da658bbc71b45
[bbk/bchan.git] / src / sjisstring.h
1 /*
2  * sjisstring.h
3  *
4  * Copyright (c) 2009-2010 project bchan
5  *
6  * This software is provided 'as-is', without any express or implied
7  * warranty. In no event will the authors be held liable for any damages
8  * arising from the use of this software.
9  *
10  * Permission is granted to anyone to use this software for any purpose,
11  * including commercial applications, and to alter it and redistribute it
12  * freely, subject to the following restrictions:
13  *
14  * 1. The origin of this software must not be misrepresented; you must not
15  *    claim that you wrote the original software. If you use this software
16  *    in a product, an acknowledgment in the product documentation would be
17  *    appreciated but is not required.
18  *
19  * 2. Altered source versions must be plainly marked as such, and must not be
20  *    misrepresented as being the original software.
21  *
22  * 3. This notice may not be removed or altered from any source
23  *    distribution.
24  *
25  */
26
27 #include        <basic.h>
28
29 #ifndef __SJISSTRING_H__
30 #define __SJISSTRING_H__
31
32 IMPORT W sjstring_appendasciistring(UB **dest, W *dest_len, UB *str, W len);
33 IMPORT W sjstring_appendUWstring(UB **dest, W *dlen, UW n);
34 IMPORT W sjstring_appendurlencodestring(UB **dest, W *dest_len, UB *str, W len);
35 IMPORT W sjstring_appendconvartingTCstring(UB **dest, W *dest_len, TC *str, W len);
36 IMPORT W sjstring_appendformpoststring(UB **dest, W *dest_len, UB *str, W len);
37
38 IMPORT W sjstring_totcs(UB *sjstr, UB sjstr_len, TC *tcstr);
39
40 IMPORT UB* sjstring_searchchar(UB *str, W len, UB ch);
41
42 IMPORT Bool sjstring_isurlusablecharacter(UB ch);
43
44 #ifdef BCHAN_CONFIG_DEBUG
45 IMPORT VOID SJSTRING_DP(UB *str, W len);
46 #else
47 #define SJSTRING_DP(str, len) /**/
48 #endif
49
50 #endif