ReactOS  0.4.14-dev-77-gd9e7c48
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 
16 extern struct nls_table *tables;
17 extern 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 
117 int
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 
180 VOID
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 }
static void __exit exit_nls_cp860(void)
Definition: nls_cp860.c:358
static void __exit exit_nls_cp874(void)
Definition: nls_cp874.c:267
static int __init init_nls_cp861(void)
Definition: nls_cp861.c:376
DECLARE_EXIT(exit_nls_ascii)
static void __exit exit_nls_koi8_u(void)
Definition: nls_koi8-u.c:324
static void __exit exit_nls_cp861(void)
Definition: nls_cp861.c:381
static int __init init_nls_cp866(void)
Definition: nls_cp866.c:294
static void __exit exit_nls_cp850(void)
Definition: nls_cp850.c:309
static void __exit exit_nls_iso8859_5(void)
static void __exit exit_nls_cp869(void)
Definition: nls_cp869.c:309
static int __init init_nls_euc_jp(void)
Definition: nls_euc-jp.c:565
static int __init init_nls_cp1255(void)
Definition: nls_cp1255.c:371
static void __exit exit_nls_iso8859_13(void)
static int __init init_nls_koi8_ru(void)
Definition: nls_koi8-ru.c:63
static void __exit exit_nls_iso8859_4(void)
static void __exit exit_nls_cp862(void)
Definition: nls_cp862.c:415
static void __exit exit_nls_cp865(void)
Definition: nls_cp865.c:381
static int __init init_nls_cp737(void)
Definition: nls_cp737.c:339
static int __init init_nls_iso8859_5(void)
static int __init init_nls_cp869(void)
Definition: nls_cp869.c:304
static void __exit exit_nls_cp863(void)
Definition: nls_cp863.c:375
static void __exit exit_nls_iso8859_6(void)
static int __init init_nls_iso8859_1(void)
static int __init init_nls_cp860(void)
Definition: nls_cp860.c:353
static void __exit exit_nls_iso8859_1(void)
static void __exit exit_nls_cp936(void)
Definition: nls_cp936.c:11022
static int __init init_nls_cp857(void)
Definition: nls_cp857.c:290
static void __exit exit_nls_cp864(void)
Definition: nls_cp864.c:401
static void __exit exit_nls_koi8_ru(void)
Definition: nls_koi8-ru.c:76
static void __exit exit_nls_cp1251(void)
Definition: nls_cp1251.c:295
static void __exit exit_nls_cp1255(void)
Definition: nls_cp1255.c:376
static void __exit exit_nls_iso8859_7(void)
static void __exit exit_nls_cp949(void)
Definition: nls_cp949.c:13939
int Ext2LoadAllNls()
Definition: nls.c:118
static int __init init_nls_cp863(void)
Definition: nls_cp863.c:370
static void __exit exit_nls_cp737(void)
Definition: nls_cp737.c:344
smooth NULL
Definition: ftsmooth.c:416
static int __init init_nls_iso8859_4(void)
static int __init init_nls_cp862(void)
Definition: nls_cp862.c:410
static void __exit exit_nls_iso8859_14(void)
static void __exit exit_nls_cp1250(void)
Definition: nls_cp1250.c:340
static int __init init_nls_iso8859_9(void)
static int __init init_nls_cp874(void)
Definition: nls_cp874.c:262
static void __exit exit_nls_cp950(void)
Definition: nls_cp950.c:9478
static int __init init_nls_iso8859_14(void)
static int __init init_nls_cp864(void)
Definition: nls_cp864.c:396
static void __exit exit_nls_iso8859_9(void)
static int __init init_nls_iso8859_7(void)
spinlock_t nls_lock
Definition: nls_base.c:23
#define LOAD_NLS
Definition: module.h:290
static int __init init_nls_cp936(void)
Definition: nls_cp936.c:11017
static int __init init_nls_cp850(void)
Definition: nls_cp850.c:304
VOID Ext2UnloadAllNls()
Definition: nls.c:181
static int __init init_nls_koi8_r(void)
Definition: nls_koi8-r.c:312
static int __init init_nls_cp865(void)
Definition: nls_cp865.c:376
static int __init init_nls_cp949(void)
Definition: nls_cp949.c:13934
static int __init init_nls_cp775(void)
Definition: nls_cp775.c:308
static int __init init_nls_utf8(void)
Definition: nls_utf8.c:46
static int __init init_nls_cp437(void)
Definition: nls_cp437.c:376
static void __exit exit_nls_cp932(void)
Definition: nls_cp932.c:7937
#define UNLOAD_NLS
Definition: module.h:291
static void __exit exit_nls_koi8_r(void)
Definition: nls_koi8-r.c:317
static void __exit exit_nls_cp857(void)
Definition: nls_cp857.c:295
static void __exit exit_nls_cp775(void)
Definition: nls_cp775.c:313
static int __init init_nls_iso8859_2(void)
static int __init init_nls_cp855(void)
Definition: nls_cp855.c:288
DECLARE_INIT(init_nls_ascii)
static int __init init_nls_cp950(void)
Definition: nls_cp950.c:9473
#define spin_lock_init(sl)
Definition: module.h:303
static void __exit exit_nls_iso8859_15(void)
static int __init init_nls_ascii(void)
Definition: nls_ascii.c:155
static void __exit exit_nls_cp852(void)
Definition: nls_cp852.c:331
static void __exit exit_nls_ascii(void)
Definition: nls_ascii.c:160
static void __exit exit_nls_cp866(void)
Definition: nls_cp866.c:299
static void __exit exit_nls_cp437(void)
Definition: nls_cp437.c:381
static void __exit exit_nls_iso8859_2(void)
static int __init init_nls_iso8859_13(void)
static int __init init_nls_cp852(void)
Definition: nls_cp852.c:326
static void __exit exit_nls_cp855(void)
Definition: nls_cp855.c:293
struct nls_table * tables
Definition: nls_base.c:22
static void __exit exit_nls_utf8(void)
Definition: nls_utf8.c:55
static int __init init_nls_cp932(void)
Definition: nls_cp932.c:7932
static int __init init_nls_iso8859_3(void)
static int __init init_nls_cp1251(void)
Definition: nls_cp1251.c:290
static int __init init_nls_iso8859_15(void)
static void __exit exit_nls_euc_jp(void)
Definition: nls_euc-jp.c:578
static int __init init_nls_iso8859_6(void)
static void __exit exit_nls_iso8859_3(void)
static int __init init_nls_cp1250(void)
Definition: nls_cp1250.c:336
static int __init init_nls_koi8_u(void)
Definition: nls_koi8-u.c:319