ReactOS 0.4.15-dev-5664-g3bf4ef6
nls.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYRIGHT.TXT
3 * PROJECT: Ext2 File System Driver for WinNT/2K/XP
4 * FILE: nls.c
5 * PROGRAMMER: Matt Wu <mattwu@163.com>
6 * HOMEPAGE: http://www.ext2fsd.com
7 * UPDATE HISTORY:
8 */
9
10/* INCLUDES *****************************************************************/
11
12#include "ext2fs.h"
13
14/* GOBALS** ****************************************************************/
15
16extern struct nls_table *tables;
17extern spinlock_t nls_lock;
18
19/* DECLARES ****************************************************************/
20
21#define FULL_CODEPAGES_SUPPORT
22
23#ifdef FULL_CODEPAGES_SUPPORT
24
99#endif //FULL_CODEPAGES_SUPPORT
100
101/* gb2312 */
104
105/* big5 */
108
109/* utf8 */
112
113
114/* FUNCTIONS ****************************************************************/
115
116
117int
119{
120 int rc;
121
122 tables = NULL;
124
125 /* loading utf8 ... */
127
128#ifdef FULL_CODEPAGES_SUPPORT
129
130 /* loading chinese gb2312 and big5... */
133
134 /* loading all others */
135
173
174#endif //FULL_CODEPAGES_SUPPORT
175
176 return rc;
177}
178
179
180VOID
182{
183
184#ifdef FULL_CODEPAGES_SUPPORT
185
223
224 /* unloading chinese codepages */
227
228#endif //FULL_CODEPAGES_SUPPORT
229
230 /* unloading nls of utf8 */
232}
#define NULL
Definition: types.h:112
struct nls_table * tables
Definition: nls_base.c:22
VOID Ext2UnloadAllNls()
Definition: nls.c:181
int Ext2LoadAllNls()
Definition: nls.c:118
spinlock_t nls_lock
Definition: nls_base.c:23
#define DECLARE_EXIT(X)
Definition: module.h:280
#define DECLARE_INIT(X)
Definition: module.h:279
#define LOAD_NLS
Definition: module.h:290
#define spin_lock_init(sl)
Definition: module.h:303
#define UNLOAD_NLS
Definition: module.h:291
static void __exit exit_nls_ascii(void)
Definition: nls_ascii.c:160
static int __init init_nls_ascii(void)
Definition: nls_ascii.c:155
static int __init init_nls_cp1250(void)
Definition: nls_cp1250.c:336
static void __exit exit_nls_cp1250(void)
Definition: nls_cp1250.c:340
static void __exit exit_nls_cp1251(void)
Definition: nls_cp1251.c:295
static int __init init_nls_cp1251(void)
Definition: nls_cp1251.c:290
static void __exit exit_nls_cp1255(void)
Definition: nls_cp1255.c:376
static int __init init_nls_cp1255(void)
Definition: nls_cp1255.c:371
static int __init init_nls_cp437(void)
Definition: nls_cp437.c:376
static void __exit exit_nls_cp437(void)
Definition: nls_cp437.c:381
static int __init init_nls_cp737(void)
Definition: nls_cp737.c:339
static void __exit exit_nls_cp737(void)
Definition: nls_cp737.c:344
static void __exit exit_nls_cp775(void)
Definition: nls_cp775.c:313
static int __init init_nls_cp775(void)
Definition: nls_cp775.c:308
static int __init init_nls_cp850(void)
Definition: nls_cp850.c:304
static void __exit exit_nls_cp850(void)
Definition: nls_cp850.c:309
static int __init init_nls_cp852(void)
Definition: nls_cp852.c:326
static void __exit exit_nls_cp852(void)
Definition: nls_cp852.c:331
static int __init init_nls_cp855(void)
Definition: nls_cp855.c:288
static void __exit exit_nls_cp855(void)
Definition: nls_cp855.c:293
static int __init init_nls_cp857(void)
Definition: nls_cp857.c:290
static void __exit exit_nls_cp857(void)
Definition: nls_cp857.c:295
static void __exit exit_nls_cp860(void)
Definition: nls_cp860.c:358
static int __init init_nls_cp860(void)
Definition: nls_cp860.c:353
static void __exit exit_nls_cp861(void)
Definition: nls_cp861.c:381
static int __init init_nls_cp861(void)
Definition: nls_cp861.c:376
static void __exit exit_nls_cp862(void)
Definition: nls_cp862.c:415
static int __init init_nls_cp862(void)
Definition: nls_cp862.c:410
static int __init init_nls_cp863(void)
Definition: nls_cp863.c:370
static void __exit exit_nls_cp863(void)
Definition: nls_cp863.c:375
static void __exit exit_nls_cp864(void)
Definition: nls_cp864.c:401
static int __init init_nls_cp864(void)
Definition: nls_cp864.c:396
static void __exit exit_nls_cp865(void)
Definition: nls_cp865.c:381
static int __init init_nls_cp865(void)
Definition: nls_cp865.c:376
static int __init init_nls_cp866(void)
Definition: nls_cp866.c:294
static void __exit exit_nls_cp866(void)
Definition: nls_cp866.c:299
static void __exit exit_nls_cp869(void)
Definition: nls_cp869.c:309
static int __init init_nls_cp869(void)
Definition: nls_cp869.c:304
static void __exit exit_nls_cp874(void)
Definition: nls_cp874.c:267
static int __init init_nls_cp874(void)
Definition: nls_cp874.c:262
static int __init init_nls_cp932(void)
Definition: nls_cp932.c:7932
static void __exit exit_nls_cp932(void)
Definition: nls_cp932.c:7937
static void __exit exit_nls_cp936(void)
Definition: nls_cp936.c:11022
static int __init init_nls_cp936(void)
Definition: nls_cp936.c:11017
static void __exit exit_nls_cp949(void)
Definition: nls_cp949.c:13939
static int __init init_nls_cp949(void)
Definition: nls_cp949.c:13934
static void __exit exit_nls_cp950(void)
Definition: nls_cp950.c:9478
static int __init init_nls_cp950(void)
Definition: nls_cp950.c:9473
static int __init init_nls_euc_jp(void)
Definition: nls_euc-jp.c:565
static void __exit exit_nls_euc_jp(void)
Definition: nls_euc-jp.c:578
static void __exit exit_nls_iso8859_13(void)
static int __init init_nls_iso8859_13(void)
static int __init init_nls_iso8859_14(void)
static void __exit exit_nls_iso8859_14(void)
static void __exit exit_nls_iso8859_15(void)
static int __init init_nls_iso8859_15(void)
static int __init init_nls_iso8859_1(void)
static void __exit exit_nls_iso8859_1(void)
static void __exit exit_nls_iso8859_2(void)
static int __init init_nls_iso8859_2(void)
static int __init init_nls_iso8859_3(void)
static void __exit exit_nls_iso8859_3(void)
static void __exit exit_nls_iso8859_4(void)
static int __init init_nls_iso8859_4(void)
static void __exit exit_nls_iso8859_5(void)
static int __init init_nls_iso8859_5(void)
static void __exit exit_nls_iso8859_6(void)
static int __init init_nls_iso8859_6(void)
static void __exit exit_nls_iso8859_7(void)
static int __init init_nls_iso8859_7(void)
static void __exit exit_nls_iso8859_9(void)
static int __init init_nls_iso8859_9(void)
static int __init init_nls_koi8_r(void)
Definition: nls_koi8-r.c:312
static void __exit exit_nls_koi8_r(void)
Definition: nls_koi8-r.c:317
static void __exit exit_nls_koi8_ru(void)
Definition: nls_koi8-ru.c:76
static int __init init_nls_koi8_ru(void)
Definition: nls_koi8-ru.c:63
static int __init init_nls_koi8_u(void)
Definition: nls_koi8-u.c:319
static void __exit exit_nls_koi8_u(void)
Definition: nls_koi8-u.c:324
static void __exit exit_nls_utf8(void)
Definition: nls_utf8.c:55
static int __init init_nls_utf8(void)
Definition: nls_utf8.c:46