cpp.php

gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*************************************************************************************
00003  * cpp.php
00004  * -------
00005  * Author: Dennis Bayer (Dennis.Bayer@mnifh-giessen.de)
00006  * Contributors:
00007  *  - M. Uli Kusterer (witness.of.teachtext@gmx.net)
00008  *  - Jack Lloyd (lloyd@randombit.net)
00009  * Copyright: (c) 2004 Dennis Bayer, Nigel McNie (http://qbnz.com/highlighter)
00010  * Release Version: 1.0.7.20
00011  * Date Started: 2004/09/27
00012  *
00013  * C++ language file for GeSHi.
00014  *
00015  * CHANGES
00016  * -------
00017  * 2004/XX/XX (1.0.2)
00018  *  -  Added several new keywords (Jack Lloyd)
00019  * 2004/11/27 (1.0.1)
00020  *  -  Added StdCLib function and constant names, changed color scheme to
00021  *     a cleaner one. (M. Uli Kusterer)
00022  *  -  Added support for multiple object splitters
00023  * 2004/10/27 (1.0.0)
00024  *  -  First Release
00025  *
00026  * TODO (updated 2004/11/27)
00027  * -------------------------
00028  *
00029  *************************************************************************************
00030  *
00031  *     This file is part of GeSHi.
00032  *
00033  *   GeSHi is free software; you can redistribute it and/or modify
00034  *   it under the terms of the GNU General Public License as published by
00035  *   the Free Software Foundation; either version 2 of the License, or
00036  *   (at your option) any later version.
00037  *
00038  *   GeSHi is distributed in the hope that it will be useful,
00039  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00040  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00041  *   GNU General Public License for more details.
00042  *
00043  *   You should have received a copy of the GNU General Public License
00044  *   along with GeSHi; if not, write to the Free Software
00045  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00046  *
00047  ************************************************************************************/
00048 
00049 $language_data = array (
00050      'LANG_NAME' => 'C++',
00051      'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
00052      'COMMENT_MULTI' => array('/*' => '*/'),
00053      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
00054      'QUOTEMARKS' => array("'", '"'),
00055      'ESCAPE_CHAR' => '\\',
00056      'KEYWORDS' => array(
00057           1 => array(
00058                'case', 'continue', 'default', 'do', 'else', 'for', 'goto', 'if', 'return',
00059                'switch', 'while'
00060                ),
00061           2 => array(
00062                'NULL', 'false', 'break', 'true', 'enum', 'errno', 'EDOM',
00063                'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG',
00064                'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG',
00065                'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP',
00066                'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP',
00067                'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN',
00068                'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN',
00069                'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT',
00070                'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR',
00071                'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam', 'NULL',
00072                'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr',
00073                'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC',
00074                'virtual', 'public', 'private', 'protected', 'template', 'using', 'namespace',
00075                'try', 'catch', 'inline', 'dynamic_cast', 'const_cast', 'reinterpret_cast',
00076                'static_cast', 'explicit', 'friend', 'wchar_t', 'typename', 'typeid', 'class'
00077                ),
00078           3 => array(
00079                'cin', 'cerr', 'clog', 'cout', 'delete', 'new', 'this',
00080                'printf', 'fprintf', 'snprintf', 'sprintf', 'assert',
00081                'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint',
00082                'ispunct', 'isspace', 'ispunct', 'isupper', 'isxdigit', 'tolower', 'toupper',
00083                'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp',
00084                'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2',
00085                'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp', 'asin', 'acos', 'atan', 'atan2',
00086                'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen',
00087                'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf',
00088                'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf',
00089                'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc',
00090                'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind',
00091                'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs',
00092                'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc',
00093                'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv',
00094                'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat',
00095                'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn',
00096                'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy',
00097                'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime',
00098                'asctime', 'ctime', 'gmtime', 'localtime', 'strftime'
00099                ),
00100           4 => array(
00101                'auto', 'bool', 'char', 'const', 'double', 'float', 'int', 'long', 'longint',
00102                'register', 'short', 'shortint', 'signed', 'static', 'struct',
00103                'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf',
00104                'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t',
00105                'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm',
00106                ),
00107           ),
00108      'SYMBOLS' => array(
00109           '(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
00110           ),
00111      'CASE_SENSITIVE' => array(
00112           GESHI_COMMENTS => true,
00113           1 => false,
00114           2 => false,
00115           3 => false,
00116           4 => false,
00117           ),
00118      'STYLES' => array(
00119           'KEYWORDS' => array(
00120                1 => 'color: #0000ff;',
00121                2 => 'color: #0000ff;',
00122                3 => 'color: #0000dd;',
00123                4 => 'color: #0000ff;'
00124                ),
00125           'COMMENTS' => array(
00126                1 => 'color: #ff0000;',
00127                2 => 'color: #339900;',
00128                'MULTI' => 'color: #ff0000; font-style: italic;'
00129                ),
00130           'ESCAPE_CHAR' => array(
00131                0 => 'color: #666666; font-weight: bold;'
00132                ),
00133           'BRACKETS' => array(
00134                0 => 'color: #000000;'
00135                ),
00136           'STRINGS' => array(
00137                0 => 'color: #666666;'
00138                ),
00139           'NUMBERS' => array(
00140                0 => 'color: #0000dd;'
00141                ),
00142           'METHODS' => array(
00143                1 => 'color: #00eeff;',
00144                2 => 'color: #00eeff;'
00145                ),
00146           'SYMBOLS' => array(
00147                0 => 'color: #000000;'
00148                ),
00149           'REGEXPS' => array(
00150                ),
00151           'SCRIPT' => array(
00152                )
00153           ),
00154      'URLS' => array(
00155           ),
00156      'OOLANG' => true,
00157      'OBJECT_SPLITTERS' => array(
00158           1 => '.',
00159           2 => '::'
00160           ),
00161      'REGEXPS' => array(
00162           ),
00163      'STRICT_MODE_APPLIES' => GESHI_NEVER,
00164      'SCRIPT_DELIMITERS' => array(
00165           ),
00166      'HIGHLIGHT_STRICT_BLOCK' => array(
00167         ),
00168     'TAB_WIDTH' => 4
00169 );
00170 
00171 ?>

Erzeugt am Thu May 14 00:55:48 2009 für OpenRat von  doxygen 1.5.8