ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_cppsource Class Reference
+ Inheritance diagram for HFile_cppsource:
+ Collaboration diagram for HFile_cppsource:

Public Member Functions

 HFile_cppsource ()
 
 donothing ($keywordin)
 
- Public Member Functions inherited from HFile
 __construct ()
 
 parse_file ($file)
 
 to_perl ($stub, $tofile=1)
 
 to_php ($stub, $tofile=1)
 
 _get_categories ()
 
 _dump_linkscripts ()
 
 _dump_perl_linkscripts ()
 
 _dump_perl_defaultscripts ()
 
 _dump_colours ()
 
 _dump_var ($variable, $name)
 
 _dump_array ($array, $name)
 
 _dump_perl_array ($array, $name)
 
 _dump_hash ($hash, $name)
 
 _dump_perl_hash ($hash, $name)
 

Detailed Description

Definition at line 7 of file HFile_cppsource.php.

Member Function Documentation

◆ donothing()

HFile_cppsource::donothing (   $keywordin)

Definition at line 160 of file HFile_cppsource.php.

161  {
162  return $keywordin;
163  }

◆ HFile_cppsource()

HFile_cppsource::HFile_cppsource ( )

Definition at line 9 of file HFile_cppsource.php.

References array.

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

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