LLVM API Documentation

regcname.h
Go to the documentation of this file.
00001 /*-
00002  * This code is derived from OpenBSD's libc/regex, original license follows:
00003  *
00004  * Copyright (c) 1992, 1993, 1994 Henry Spencer.
00005  * Copyright (c) 1992, 1993, 1994
00006  *  The Regents of the University of California.  All rights reserved.
00007  *
00008  * This code is derived from software contributed to Berkeley by
00009  * Henry Spencer.
00010  *
00011  * Redistribution and use in source and binary forms, with or without
00012  * modification, are permitted provided that the following conditions
00013  * are met:
00014  * 1. Redistributions of source code must retain the above copyright
00015  *    notice, this list of conditions and the following disclaimer.
00016  * 2. Redistributions in binary form must reproduce the above copyright
00017  *    notice, this list of conditions and the following disclaimer in the
00018  *    documentation and/or other materials provided with the distribution.
00019  * 3. Neither the name of the University nor the names of its contributors
00020  *    may be used to endorse or promote products derived from this software
00021  *    without specific prior written permission.
00022  *
00023  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
00024  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00025  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00026  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
00027  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00028  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00029  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00030  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00031  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00032  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00033  * SUCH DAMAGE.
00034  *
00035  *  @(#)cname.h 8.3 (Berkeley) 3/20/94
00036  */
00037 
00038 #ifndef LLVM_SUPPORT_REGCNAME_H
00039 #define LLVM_SUPPORT_REGCNAME_H
00040 
00041 /* character-name table */
00042 static struct cname {
00043   const char *name;
00044   char code;
00045 } cnames[] = {
00046   { "NUL",      '\0' },
00047   { "SOH",      '\001' },
00048   { "STX",      '\002' },
00049   { "ETX",      '\003' },
00050   { "EOT",      '\004' },
00051   { "ENQ",      '\005' },
00052   { "ACK",      '\006' },
00053   { "BEL",      '\007' },
00054   { "alert",      '\007' },
00055   { "BS",       '\010' },
00056   { "backspace",      '\b' },
00057   { "HT",       '\011' },
00058   { "tab",      '\t' },
00059   { "LF",       '\012' },
00060   { "newline",      '\n' },
00061   { "VT",       '\013' },
00062   { "vertical-tab",   '\v' },
00063   { "FF",       '\014' },
00064   { "form-feed",      '\f' },
00065   { "CR",       '\015' },
00066   { "carriage-return",    '\r' },
00067   { "SO",       '\016' },
00068   { "SI",       '\017' },
00069   { "DLE",      '\020' },
00070   { "DC1",      '\021' },
00071   { "DC2",      '\022' },
00072   { "DC3",      '\023' },
00073   { "DC4",      '\024' },
00074   { "NAK",      '\025' },
00075   { "SYN",      '\026' },
00076   { "ETB",      '\027' },
00077   { "CAN",      '\030' },
00078   { "EM",       '\031' },
00079   { "SUB",      '\032' },
00080   { "ESC",      '\033' },
00081   { "IS4",      '\034' },
00082   { "FS",       '\034' },
00083   { "IS3",      '\035' },
00084   { "GS",       '\035' },
00085   { "IS2",      '\036' },
00086   { "RS",       '\036' },
00087   { "IS1",      '\037' },
00088   { "US",       '\037' },
00089   { "space",      ' ' },
00090   { "exclamation-mark",   '!' },
00091   { "quotation-mark",   '"' },
00092   { "number-sign",    '#' },
00093   { "dollar-sign",    '$' },
00094   { "percent-sign",   '%' },
00095   { "ampersand",      '&' },
00096   { "apostrophe",     '\'' },
00097   { "left-parenthesis",   '(' },
00098   { "right-parenthesis",    ')' },
00099   { "asterisk",     '*' },
00100   { "plus-sign",      '+' },
00101   { "comma",      ',' },
00102   { "hyphen",     '-' },
00103   { "hyphen-minus",   '-' },
00104   { "period",     '.' },
00105   { "full-stop",      '.' },
00106   { "slash",      '/' },
00107   { "solidus",      '/' },
00108   { "zero",     '0' },
00109   { "one",      '1' },
00110   { "two",      '2' },
00111   { "three",      '3' },
00112   { "four",     '4' },
00113   { "five",     '5' },
00114   { "six",      '6' },
00115   { "seven",      '7' },
00116   { "eight",      '8' },
00117   { "nine",     '9' },
00118   { "colon",      ':' },
00119   { "semicolon",      ';' },
00120   { "less-than-sign",   '<' },
00121   { "equals-sign",    '=' },
00122   { "greater-than-sign",    '>' },
00123   { "question-mark",    '?' },
00124   { "commercial-at",    '@' },
00125   { "left-square-bracket",  '[' },
00126   { "backslash",      '\\' },
00127   { "reverse-solidus",    '\\' },
00128   { "right-square-bracket", ']' },
00129   { "circumflex",     '^' },
00130   { "circumflex-accent",    '^' },
00131   { "underscore",     '_' },
00132   { "low-line",     '_' },
00133   { "grave-accent",   '`' },
00134   { "left-brace",     '{' },
00135   { "left-curly-bracket",   '{' },
00136   { "vertical-line",    '|' },
00137   { "right-brace",    '}' },
00138   { "right-curly-bracket",  '}' },
00139   { "tilde",      '~' },
00140   { "DEL",      '\177' },
00141   { NULL,       0 }
00142 };
00143 
00144 #endif