1 /* @(#)strcasemap.c	1.1 11/11/24 Copyright 2011 J. Schilling */
2 /*
3  *	Character map for strcasecmp()/strncasecmp()
4  *
5  *	This only maps 7-Bit ASCII upper case chars to lower case chars.
6  *
7  *	Copyright (c) 2011 J. Schilling
8  */
9 /*
10  * The contents of this file are subject to the terms of the
11  * Common Development and Distribution License, Version 1.0 only
12  * (the "License").  You may not use this file except in compliance
13  * with the License.
14  *
15  * See the file CDDL.Schily.txt in this distribution for details.
16  * A copy of the CDDL is also available via the Internet at
17  * http://www.opensource.org/licenses/cddl1.txt
18  *
19  * When distributing Covered Code, include this CDDL HEADER in each
20  * file and include the License file CDDL.Schily.txt from this distribution.
21  */
22 
23 #include <schily/standard.h>
24 #include <schily/schily.h>
25 
26 #if	!defined(HAVE_STRCASECMP) || !defined(HAVE_STRNCASECMP)
27 
28 const char js_strcase_charmap[] = {
29 	'\000', '\001', '\002', '\003', '\004', '\005', '\006', '\007',
30 	'\010', '\011', '\012', '\013', '\014', '\015', '\016', '\017',
31 	'\020', '\021', '\022', '\023', '\024', '\025', '\026', '\027',
32 	'\030', '\031', '\032', '\033', '\034', '\035', '\036', '\037',
33 	'\040', '\041', '\042', '\043', '\044', '\045', '\046', '\047',
34 	'\050', '\051', '\052', '\053', '\054', '\055', '\056', '\057',
35 	'\060', '\061', '\062', '\063', '\064', '\065', '\066', '\067',
36 	'\070', '\071', '\072', '\073', '\074', '\075', '\076', '\077',
37 	'\100', '\141', '\142', '\143', '\144', '\145', '\146', '\147',
38 	'\150', '\151', '\152', '\153', '\154', '\155', '\156', '\157',
39 	'\160', '\161', '\162', '\163', '\164', '\165', '\166', '\167',
40 	'\170', '\171', '\172', '\133', '\134', '\135', '\136', '\137',
41 	'\140', '\141', '\142', '\143', '\144', '\145', '\146', '\147',
42 	'\150', '\151', '\152', '\153', '\154', '\155', '\156', '\157',
43 	'\160', '\161', '\162', '\163', '\164', '\165', '\166', '\167',
44 	'\170', '\171', '\172', '\173', '\174', '\175', '\176', '\177',
45 	'\200', '\201', '\202', '\203', '\204', '\205', '\206', '\207',
46 	'\210', '\211', '\212', '\213', '\214', '\215', '\216', '\217',
47 	'\220', '\221', '\222', '\223', '\224', '\225', '\226', '\227',
48 	'\230', '\231', '\232', '\233', '\234', '\235', '\236', '\237',
49 	'\240', '\241', '\242', '\243', '\244', '\245', '\246', '\247',
50 	'\250', '\251', '\252', '\253', '\254', '\255', '\256', '\257',
51 	'\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267',
52 	'\270', '\271', '\272', '\273', '\274', '\275', '\276', '\277',
53 	'\300', '\301', '\302', '\303', '\304', '\305', '\306', '\307',
54 	'\310', '\311', '\312', '\313', '\314', '\315', '\316', '\317',
55 	'\320', '\321', '\322', '\323', '\324', '\325', '\326', '\327',
56 	'\330', '\331', '\332', '\333', '\334', '\335', '\336', '\337',
57 	'\340', '\341', '\342', '\343', '\344', '\345', '\346', '\347',
58 	'\350', '\351', '\352', '\353', '\354', '\355', '\356', '\357',
59 	'\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367',
60 	'\370', '\371', '\372', '\373', '\374', '\375', '\376', '\377',
61 };
62 
63 #endif
64