4 * Copyright (c) 2009-2010 project bchan
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.
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:
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.
19 * 2. Altered source versions must be plainly marked as such, and must not be
20 * misrepresented as being the original software.
22 * 3. This notice may not be removed or altered from any source
29 #ifndef __SJISSTRING_H__
30 #define __SJISSTRING_H__
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);
38 IMPORT W sjstring_totcs(UB *sjstr, UB sjstr_len, TC *tcstr);
40 IMPORT UB* sjstring_searchchar(UB *str, W len, UB ch);
42 IMPORT Bool sjstring_isurlusablecharacter(UB ch);
44 #ifdef BCHAN_CONFIG_DEBUG
45 IMPORT VOID SJSTRING_DP(UB *str, W len);
47 #define SJSTRING_DP(str, len) /**/