File: roman.h

package info (click to toggle)
fdclone 3.01b-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 4,772 kB
  • ctags: 8,674
  • sloc: ansic: 100,552; makefile: 4,497; sh: 1,480; sed: 224
file content (32 lines) | stat: -rw-r--r-- 826 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 *	roman.h
 *
 *	definitions & function prototype declarations for "roman.c"
 */

#define	R_MAXROMAN		4
#define	R_MAXKANA		2
#define	J_MIN			0x2121
#define	J_MAX			0x7e7e
#define	J_CHO			0x213c
#define	J_TSU			0x2443
#define	J_NN			0x2473
#define	VALIDJIS(c)		(iseuc((((c) >> 8) & 0xff) ^ 0x80) \
				&& iseuc(((c) & 0xff) ^ 0x80))

typedef struct _romantable {
	char str[R_MAXROMAN + 1];
	ALLOC_T len;
	u_short code[R_MAXKANA];
} romantable;

extern int code2kanji __P_((char *, u_int));
extern int searchroman __P_((CONST char *, int));
extern VOID initroman __P_((VOID_A));
extern int jis2str __P_((char *, u_int));
extern int str2jis __P_((u_short *, int, CONST char *));
extern int addroman __P_((CONST char *, CONST char *));
extern VOID freeroman __P_((int));

extern romantable *romanlist;
extern int maxromanlist;