OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [include/] [linux/] [nls.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/*
2
 * Native language support structures and functions
3
 */
4
#ifndef _LINUX_NLS_H
5
#define _LINUX_NLS_H
6
 
7
struct nls_unicode {
8
        unsigned char uni1;
9
        unsigned char uni2;
10
};
11
 
12
struct nls_table {
13
        char *charset;
14
        unsigned char **page_uni2charset;
15
        struct nls_unicode *charset2uni;
16
 
17
        void (*inc_use_count) (void);
18
        void (*dec_use_count) (void);
19
        struct nls_table *next;
20
};
21
 
22
/* nls.c */
23
extern int init_nls(void);
24
extern int register_nls(struct nls_table *);
25
extern int unregister_nls(struct nls_table *);
26
extern struct nls_table *find_nls(char *);
27
extern struct nls_table *load_nls(char *);
28
extern void unload_nls(struct nls_table *);
29
extern struct nls_table *load_nls_default(void);
30
 
31
extern int utf8_mbtowc(__u16 *, const __u8 *, int);
32
extern int utf8_mbstowcs(__u16 *, const __u8 *, int);
33
extern int utf8_wctomb(__u8 *, __u16, int);
34
extern int utf8_wcstombs(__u8 *, const __u16 *, int);
35
 
36
extern int init_nls_iso8859_1(void);
37
extern int init_nls_iso8859_2(void);
38
extern int init_nls_iso8859_3(void);
39
extern int init_nls_iso8859_4(void);
40
extern int init_nls_iso8859_5(void);
41
extern int init_nls_iso8859_6(void);
42
extern int init_nls_iso8859_7(void);
43
extern int init_nls_iso8859_8(void);
44
extern int init_nls_iso8859_9(void);
45
extern int init_nls_iso8859_15(void);
46
extern int init_nls_cp437(void);
47
extern int init_nls_cp737(void);
48
extern int init_nls_cp775(void);
49
extern int init_nls_cp850(void);
50
extern int init_nls_cp852(void);
51
extern int init_nls_cp855(void);
52
extern int init_nls_cp857(void);
53
extern int init_nls_cp860(void);
54
extern int init_nls_cp861(void);
55
extern int init_nls_cp862(void);
56
extern int init_nls_cp863(void);
57
extern int init_nls_cp864(void);
58
extern int init_nls_cp865(void);
59
extern int init_nls_cp866(void);
60
extern int init_nls_cp869(void);
61
extern int init_nls_cp874(void);
62
extern int init_nls_koi8_r(void);
63
 
64
#endif /* _LINUX_NLS_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.