2 * linux/fs/fat/tables.c
4 * Unicode escape translation tables for VFAT filename handling.
7 * Note: This file is used by all fat-based filesystems.
10 #include <linux/kernel.h>
11 #include <linux/string.h>
12 #include <linux/msdos_fs.h>
14 unsigned char fat_uni2esc
[64] = {
15 '0', '1', '2', '3', '4', '5', '6', '7',
16 '8', '9', 'A', 'B', 'C', 'D', 'E', 'F',
17 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N',
18 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V',
19 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd',
20 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
21 'm', 'n', 'o', 'p', 'q', 'r', 's', 't',
22 'u', 'v', 'w', 'x', 'y', 'z', '+', '-'
25 unsigned char fat_esc2uni
[256] = {
26 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
27 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
28 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
29 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
30 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
31 0xff, 0xff, 0xff, 0x3e, 0xff, 0x3f, 0xff, 0xff,
32 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
33 0x08, 0x09, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
34 0xff, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10,
35 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18,
36 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20,
37 0x21, 0x22, 0x23, 0xff, 0xff, 0xff, 0xff, 0xff,
38 0xff, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a,
39 0x2b, 0x2c, 0x2d, 0x2e, 0x2f, 0x30, 0x31, 0x32,
40 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a,
41 0x3b, 0x3c, 0x3d, 0xff, 0xff, 0xff, 0xff, 0xff,
42 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
43 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
44 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
45 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
46 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
47 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
48 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
49 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
50 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
51 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
52 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
53 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
54 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
55 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
56 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
57 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
62 * Overrides for Emacs so that we follow Linus's tabbing style.
63 * Emacs will notice this stuff at the end of the file and automatically
64 * adjust the settings for this buffer only. This must remain at the end
66 * ---------------------------------------------------------------------------
69 * c-brace-imaginary-offset: 0
73 * c-continued-statement-offset: 8
74 * c-continued-brace-offset: 0