File: uconv.h

package info (click to toggle)
ruby-uconv 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,704 kB
  • ctags: 195
  • sloc: ansic: 161,247; ruby: 44,412; makefile: 2
file content (44 lines) | stat: -rw-r--r-- 989 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
33
34
35
36
37
38
39
40
41
42
43
44
/*
 * Unicode Conversion Library
 * 1997-1998 by yoshidam
 *
 */

#ifndef _UCONV_H
#define _UCONV_H

#include "ustring.h"
#include "ruby.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef VALUE (unknown_unicode)(unsigned long);
typedef VALUE (unknown_euc)(const unsigned char*);
typedef VALUE (unknown_sjis)(const unsigned char*);


int u2e_conv2(const unsigned char* u, int len, UString* e,
	      unknown_unicode unknown_u_conv,
              unknown_unicode u2e_hook);
int u2s_conv2(const unsigned char* u, int len, UString* s,
	      unknown_unicode unknown_u_conv,
              unknown_unicode u2s_hook);

int e2u_conv2(const unsigned char* e, UString* u,
	      unknown_euc unknown_e_conv,
              unknown_euc e2u_hook);
int s2u_conv2(const unsigned char* s, UString* u,
	      unknown_sjis unknown_s_conv,
              unknown_sjis s2u_hook);

unsigned short sjis2euc(unsigned short sjis);
unsigned short euc2sjis(unsigned short euc);


#ifdef __cplusplus
}
#endif

#endif