comparison include/WStr.h @ 0:92745d501b9a

initial import from kinput2-v3.1
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 08 Mar 2010 04:44:30 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:92745d501b9a
1 /*
2 * WStr.h -- header file for Wide-Character String Library
3 */
4
5 /*
6 * Copyright (c) 1989 Software Research Associates, Inc.
7 *
8 * Permission to use, copy, modify, and distribute this software and its
9 * documentation for any purpose and without fee is hereby granted, provided
10 * that the above copyright notice appear in all copies and that both that
11 * copyright notice and this permission notice appear in supporting
12 * documentation, and that the name of Software Research Associates not be
13 * used in advertising or publicity pertaining to distribution of the
14 * software without specific, written prior permission. Software Research
15 * Associates makes no representations about the suitability of this software
16 * for any purpose. It is provided "as is" without express or implied
17 * warranty.
18 *
19 * Author: Makoto Ishisone, Software Research Associates, Inc., Japan
20 * ishisone@sra.co.jp
21 */
22
23 /* $Id: WStr.h,v 2.1 1991/09/23 05:32:48 ishisone Rel $ */
24
25 #ifndef _WStr_h
26 #define _WStr_h
27
28 #ifndef WCHAR_DEFINED
29 #define WCHAR_DEFINED
30 typedef unsigned short wchar;
31 #endif
32
33 /* for backward compatibility... */
34 #define convWStoLatin1 convJWStoLatin1
35 #define convLatin1toWS convLatin1toJWS
36 #define convWStoJIS convJWStoJIS
37 #define convJIStoWS convJIStoJWS
38 #define convWStoEUC convJWStoEUC
39 #define convEUCtoWS convEUCtoJWS
40 #define convWStoSJIS convJWStoSJIS
41 #define convSJIStoWS convSJIStoJWS
42
43 #if __STDC__ == 1
44 extern int convJWStoLatin1(wchar *, unsigned char *);
45 extern int convLatin1toJWS(unsigned char *, wchar *);
46 extern int convJWStoJIS(wchar *, unsigned char *);
47 extern int convJIStoJWS(unsigned char *, wchar *);
48 extern int convJWStoEUC(wchar *, unsigned char *);
49 extern int convEUCtoJWS(unsigned char *, wchar *);
50 extern int convJWStoSJIS(wchar *, unsigned char *);
51 extern int convSJIStoJWS(unsigned char *, wchar *);
52 extern wchar *wstrcat(wchar *, wchar *);
53 extern wchar *wstrncat(wchar *, wchar *, int);
54 extern int wstrcmp(wchar *, wchar *);
55 extern int wstrncmp(wchar *, wchar *, int);
56 extern wchar *wstrcpy(wchar *, wchar *);
57 extern wchar *wstrncpy(wchar *, wchar *, int);
58 extern int wstrlen(wchar *);
59 extern wchar *windex(wchar *, wchar);
60 extern wchar *wrindex(wchar *, wchar);
61 #else
62 extern int convJWStoLatin1();
63 extern int convLatin1toJWS();
64 extern int convJWStoJIS();
65 extern int convJIStoJWS();
66 extern int convJWStoEUC();
67 extern int convEUCtoJWS();
68 extern int convJWStoSJIS();
69 extern int convSJIStoJWS();
70 extern wchar *wstrcat();
71 extern wchar *wstrncat();
72 extern int wstrcmp();
73 extern int wstrncmp();
74 extern wchar *wstrcpy();
75 extern wchar *wstrncpy();
76 extern int wstrlen();
77 extern wchar *windex();
78 extern wchar *wrindex();
79 #endif
80
81 #endif