xref: /original-bsd/lib/libc/locale/ctype_case.c (revision f66f3413)
1 /*
2  * Copyright (c) 1989 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #if defined(LIBC_SCCS) && !defined(lint)
9 static char sccsid[] = "@(#)ctype_case.c	5.1 (Berkeley) 03/12/92";
10 #endif /* LIBC_SCCS and not lint */
11 
12 char __maplower[1 + 256] = {
13 	0,
14 	0000,	0001,	0002,	0003,	0004,	0005,	0006,	0007,
15 	0010,	0011,	0012,	0013,	0014,	0015,	0016,	0017,
16 	0020,	0021,	0022,	0023,	0024,	0025,	0026,	0027,
17 	0030,	0031,	0032,	0033,	0034,	0035,	0036,	0037,
18 	0040,	0041,	0042,	0043,	0044,	0045,	0046,	0047,
19 	0050,	0051,	0052,	0053,	0054,	0055,	0056,	0057,
20 	0060,	0061,	0062,	0063,	0064,	0065,	0066,	0067,
21 	0070,	0071,	0072,	0073,	0074,	0075,	0076,	0077,
22 	0100,	 'a',	 'b',	 'c',	 'd',	 'e',	 'f',	 'g',
23 	 'h',	 'i',	 'j',	 'k',	 'l',	 'm',	 'n',	 'o',
24 	 'p',	 'q',	 'r',	 's',	 't',	 'u',	 'v',	 'w',
25 	 'x',	 'y',	 'z',	0133,	0134,	0135,	0136,	0137,
26 	0140,	 'a',	 'b',	 'c',	 'd',	 'e',	 'f',	 'g',
27 	 'h',	 'i',	 'j',	 'k',	 'l',	 'm',	 'n',	 'o',
28 	 'p',	 'q',	 'r',	 's',	 't',	 'u',	 'v',	 'w',
29 	 'x',	 'y',	 'z',	0173,	0174,	0175,	0176,	0177,
30 };
31 
32 char __mapupper[1 + 256] = {
33 	0,
34 	0000,	0001,	0002,	0003,	0004,	0005,	0006,	0007,
35 	0010,	0011,	0012,	0013,	0014,	0015,	0016,	0017,
36 	0020,	0021,	0022,	0023,	0024,	0025,	0026,	0027,
37 	0030,	0031,	0032,	0033,	0034,	0035,	0036,	0037,
38 	0040,	0041,	0042,	0043,	0044,	0045,	0046,	0047,
39 	0050,	0051,	0052,	0053,	0054,	0055,	0056,	0057,
40 	0060,	0061,	0062,	0063,	0064,	0065,	0066,	0067,
41 	0070,	0071,	0072,	0073,	0074,	0075,	0076,	0077,
42 	0100,	 'A',	 'B',	 'C',	 'D',	 'E',	 'F',	 'G',
43 	 'H',	 'I',	 'J',	 'K',	 'L',	 'M',	 'N',	 'O',
44 	 'P',	 'Q',	 'R',	 'S',	 'T',	 'U',	 'V',	 'W',
45 	 'X',	 'Y',	 'Z',	0133,	0134,	0135,	0136,	0137,
46 	0140,	 'A',	 'B',	 'C',	 'D',	 'E',	 'F',	 'G',
47 	 'H',	 'I',	 'J',	 'K',	 'L',	 'M',	 'N',	 'O',
48 	 'P',	 'Q',	 'R',	 'S',	 'T',	 'U',	 'V',	 'W',
49 	 'X',	 'Y',	 'Z',	0173,	0174,	0175,	0176,	0177,
50 };
51