1*9880d681SAndroid Build Coastguard Worker /*- 2*9880d681SAndroid Build Coastguard Worker * This code is derived from OpenBSD's libc/regex, original license follows: 3*9880d681SAndroid Build Coastguard Worker * 4*9880d681SAndroid Build Coastguard Worker * This code is derived from OpenBSD's libc/regex, original license follows: 5*9880d681SAndroid Build Coastguard Worker * 6*9880d681SAndroid Build Coastguard Worker * Copyright (c) 1992, 1993, 1994 Henry Spencer. 7*9880d681SAndroid Build Coastguard Worker * Copyright (c) 1992, 1993, 1994 8*9880d681SAndroid Build Coastguard Worker * The Regents of the University of California. All rights reserved. 9*9880d681SAndroid Build Coastguard Worker * 10*9880d681SAndroid Build Coastguard Worker * This code is derived from software contributed to Berkeley by 11*9880d681SAndroid Build Coastguard Worker * Henry Spencer. 12*9880d681SAndroid Build Coastguard Worker * 13*9880d681SAndroid Build Coastguard Worker * Redistribution and use in source and binary forms, with or without 14*9880d681SAndroid Build Coastguard Worker * modification, are permitted provided that the following conditions 15*9880d681SAndroid Build Coastguard Worker * are met: 16*9880d681SAndroid Build Coastguard Worker * 1. Redistributions of source code must retain the above copyright 17*9880d681SAndroid Build Coastguard Worker * notice, this list of conditions and the following disclaimer. 18*9880d681SAndroid Build Coastguard Worker * 2. Redistributions in binary form must reproduce the above copyright 19*9880d681SAndroid Build Coastguard Worker * notice, this list of conditions and the following disclaimer in the 20*9880d681SAndroid Build Coastguard Worker * documentation and/or other materials provided with the distribution. 21*9880d681SAndroid Build Coastguard Worker * 3. Neither the name of the University nor the names of its contributors 22*9880d681SAndroid Build Coastguard Worker * may be used to endorse or promote products derived from this software 23*9880d681SAndroid Build Coastguard Worker * without specific prior written permission. 24*9880d681SAndroid Build Coastguard Worker * 25*9880d681SAndroid Build Coastguard Worker * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 26*9880d681SAndroid Build Coastguard Worker * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 27*9880d681SAndroid Build Coastguard Worker * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28*9880d681SAndroid Build Coastguard Worker * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 29*9880d681SAndroid Build Coastguard Worker * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30*9880d681SAndroid Build Coastguard Worker * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31*9880d681SAndroid Build Coastguard Worker * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32*9880d681SAndroid Build Coastguard Worker * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33*9880d681SAndroid Build Coastguard Worker * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34*9880d681SAndroid Build Coastguard Worker * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35*9880d681SAndroid Build Coastguard Worker * SUCH DAMAGE. 36*9880d681SAndroid Build Coastguard Worker * 37*9880d681SAndroid Build Coastguard Worker * @(#)cclass.h 8.3 (Berkeley) 3/20/94 38*9880d681SAndroid Build Coastguard Worker */ 39*9880d681SAndroid Build Coastguard Worker 40*9880d681SAndroid Build Coastguard Worker #ifndef LLVM_SUPPORT_REGCCLASS_H 41*9880d681SAndroid Build Coastguard Worker #define LLVM_SUPPORT_REGCCLASS_H 42*9880d681SAndroid Build Coastguard Worker 43*9880d681SAndroid Build Coastguard Worker /* character-class table */ 44*9880d681SAndroid Build Coastguard Worker static struct cclass { 45*9880d681SAndroid Build Coastguard Worker const char *name; 46*9880d681SAndroid Build Coastguard Worker const char *chars; 47*9880d681SAndroid Build Coastguard Worker const char *multis; 48*9880d681SAndroid Build Coastguard Worker } cclasses[] = { 49*9880d681SAndroid Build Coastguard Worker { "alnum", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\ 50*9880d681SAndroid Build Coastguard Worker 0123456789", ""} , 51*9880d681SAndroid Build Coastguard Worker { "alpha", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", 52*9880d681SAndroid Build Coastguard Worker ""} , 53*9880d681SAndroid Build Coastguard Worker { "blank", " \t", ""} , 54*9880d681SAndroid Build Coastguard Worker { "cntrl", "\007\b\t\n\v\f\r\1\2\3\4\5\6\16\17\20\21\22\23\24\ 55*9880d681SAndroid Build Coastguard Worker \25\26\27\30\31\32\33\34\35\36\37\177", ""} , 56*9880d681SAndroid Build Coastguard Worker { "digit", "0123456789", ""} , 57*9880d681SAndroid Build Coastguard Worker { "graph", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\ 58*9880d681SAndroid Build Coastguard Worker 0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~", 59*9880d681SAndroid Build Coastguard Worker ""} , 60*9880d681SAndroid Build Coastguard Worker { "lower", "abcdefghijklmnopqrstuvwxyz", 61*9880d681SAndroid Build Coastguard Worker ""} , 62*9880d681SAndroid Build Coastguard Worker { "print", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\ 63*9880d681SAndroid Build Coastguard Worker 0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ ", 64*9880d681SAndroid Build Coastguard Worker ""} , 65*9880d681SAndroid Build Coastguard Worker { "punct", "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~", 66*9880d681SAndroid Build Coastguard Worker ""} , 67*9880d681SAndroid Build Coastguard Worker { "space", "\t\n\v\f\r ", ""} , 68*9880d681SAndroid Build Coastguard Worker { "upper", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 69*9880d681SAndroid Build Coastguard Worker ""} , 70*9880d681SAndroid Build Coastguard Worker { "xdigit", "0123456789ABCDEFabcdef", 71*9880d681SAndroid Build Coastguard Worker ""} , 72*9880d681SAndroid Build Coastguard Worker { NULL, 0, "" } 73*9880d681SAndroid Build Coastguard Worker }; 74*9880d681SAndroid Build Coastguard Worker 75*9880d681SAndroid Build Coastguard Worker #endif 76