ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
HFile_cpp Class Reference
+ Inheritance diagram for HFile_cpp:
+ Collaboration diagram for HFile_cpp:

Public Member Functions

 HFile_cpp ()
 
 donothing ($keywordin)
 

Detailed Description

Definition at line 6 of file HFile_cpp.php.

Member Function Documentation

◆ donothing()

HFile_cpp::donothing (   $keywordin)

Definition at line 168 of file HFile_cpp.php.

169{
170 return $keywordin;
171}

◆ HFile_cpp()

HFile_cpp::HFile_cpp ( )

Definition at line 8 of file HFile_cpp.php.

8 {
9
10 $this->HFile();
11
12
13/*************************************/
14// Beautifier Highlighting Configuration File
15// C++ Source
16/*************************************/
17// Flags
18
19$this->nocase = "0";
20$this->notrim = "0";
21$this->perl = "0";
22
23// Colours
24
25$this->colours = array("blue", "purple", "gray", "brown", "blue");
26$this->quotecolour = "blue";
27$this->blockcommentcolour = "green";
28$this->linecommentcolour = "green";
29
30// Indent Strings
31
32$this->indent = array("{");
33$this->unindent = array("}");
34
35// String characters and delimiters
36
37$this->stringchars = array("\"", "'");
38$this->delimiters = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "{", "}", "[", "]", "<", ">", ":", ";", "\"", "'", " ", ",", " ", ".", "?");
39$this->escchar = "";
40
41// Comment settings
42
43$this->linecommenton = array("//");
44$this->blockcommenton = array("/*");
45$this->blockcommentoff = array("*/");
46
47// Keywords (keyword mapping to colour number)
48
49$this->keywords = array(
50 "bool" => "1",
51 "char" => "1",
52 "class" => "1",
53 "const" => "1",
54 "case" => "1",
55 "catch" => "1",
56 "const_cast" => "1",
57 "double" => "1",
58 "default" => "1",
59 "do" => "1",
60 "delete" => "1",
61 "dynamic_cast" => "1",
62 "else" => "1",
63 "enum" => "1",
64 "explicit" => "1",
65 "export" => "1",
66 "extern" => "1",
67 "for" => "1",
68 "false" => "1",
69 "float" => "1",
70 "friend" => "1",
71 "if" => "1",
72 "inline" => "1",
73 "int" => "1",
74 "long" => "1",
75 "mutable" => "1",
76 "new" => "1",
77 "namespace" => "1",
78 "operator" => "1",
79 "protected" => "1",
80 "private" => "1",
81 "public" => "1",
82 "reinterpret_cast" => "1",
83 "return" => "1",
84 "short" => "1",
85 "signed" => "1",
86 "sizeof" => "1",
87 "static" => "1",
88 "struct" => "1",
89 "static_cast" => "1",
90 "switch" => "1",
91 "template" => "1",
92 "throw" => "1",
93 "true" => "1",
94 "typedef" => "1",
95 "typename" => "1",
96 "this" => "1",
97 "try" => "1",
98 "typeid" => "1",
99 "union" => "1",
100 "unsigned" => "1",
101 "using" => "1",
102 "virtual" => "1",
103 "void" => "1",
104 "volatile" => "1",
105 "wchar_t" => "1",
106 "while" => "1",
107 "asm" => "2",
108 "auto" => "2",
109 "break" => "2",
110 "continue" => "2",
111 "goto" => "2",
112 "register" => "2",
113 "#define" => "3",
114 "#error" => "3",
115 "#include" => "3",
116 "#elif" => "3",
117 "#if" => "3",
118 "#line" => "3",
119 "#else" => "3",
120 "#ifdef" => "3",
121 "#pragma" => "3",
122 "#endif" => "3",
123 "#ifndef" => "3",
124 "#undef" => "3",
125 "+" => "4",
126 "-" => "4",
127 "=" => "4",
128 "//" => "4",
129 "/" => "4",
130 "%" => "4",
131 "&" => "4",
132 ">" => "4",
133 "<" => "4",
134 "^" => "4",
135 "!" => "4",
136 "|" => "4",
137 "*" => "4",
138 "{" => "5",
139 "}" => "5",
140 ";" => "5",
141 "(" => "5",
142 ")" => "5",
143 "," => "5");
144
145// Special extensions
146
147
148// Each category can specify a PHP function that returns an altered
149// version of the keyword.
150
151
152
153
154
155$this->linkscripts = array(
156 "1" => "donothing",
157 "2" => "donothing",
158 "3" => "donothing",
159 "4" => "donothing",
160 "5" => "donothing");
161
162
163
164
165
166}

The documentation for this class was generated from the following file: