25 $this->separator =
".";
27 $this->extensions =
array(
33 "asp" =>
"jscript|vb|vbdotnet",
35 "bas" =>
"vb|vbdotnet",
38 "cls" =>
"vb|vbdotnet",
46 "e" =>
"eiffel|euphoria",
52 "frm" =>
"vb|vbdotnet",
55 "inc" =>
"turbopascal|vb|vbdotnet",
56 "java" =>
"javaswing",
57 "js" =>
"jscript|javascript",
60 "pas" =>
"delphi|turbopascal",
70 "vb" =>
"vb|vbdotnet",
71 "vbs" =>
"vb|vbdotnet|vbscript",
75 $this->langfunctions =
array(
101 $this->binfunctions =
array(
115 return !(strpos($this->
file,
"//") ===
false);
120 if (preg_match(
"/^#!\s+\/bin\/nawk/", $this->
file)
121 || preg_match(
"/^#!\s+\/bin\/nawk/", $this->
file)
122 || preg_match(
"/^#!\s+\/usr\/bin\/nawk/", $this->
file)
123 || preg_match(
"/^#!\s+\/usr\/local\/bin\/nawk/", $this->
file)
124 || preg_match(
"/^#!\s+\/bin\/gawk/", $this->
file)
125 || preg_match(
"/^#!\s+\/usr\/bin\/gawk/", $this->
file)
126 || preg_match(
"/^#!\s+\/usr\/local\/bin\/gawk/", $this->
file)
127 || preg_match(
"/^#!\s+\/bin\/awk/", $this->
file)
128 || preg_match(
"/^#!\s+\/usr\/bin\/awk/", $this->
file)
129 || preg_match(
"/^BEGIN\s+/", $this->
file)) {
138 if (preg_match(
"/^#!\s+\/bin\/perl/", $this->
file)
139 || preg_match(
"/^eval\s+\"exec\s+\/bin\/perl/", $this->
file)
140 || preg_match(
"/^#!\s+\/usr\/bin\/perl/", $this->
file)
141 || preg_match(
"/^eval\s+\"exec\s+\/usr\/bin\/perl/", $this->
file)
142 || preg_match(
"/^#!\s+\/usr\/local\/bin\/perl/", $this->
file)
143 || preg_match(
"/^eval\s+\"exec\s+\/usr\/local\/bin\/perl/", $this->
file)) {
152 if (preg_match(
"/^#!\s+\/bin\/bash/", $this->
file)
153 || preg_match(
"/^#!\s+\/usr\/local\/bin\/bash/", $this->
file)) {
162 if (preg_match(
"/^#!\s+\/bin\/rc/", $this->
file)) {
171 if (preg_match(
"/^#!\s*\/usr\/bin\/env/", $this->
file)) {
180 if (preg_match(
"/^#!/", $this->
file)) {
189 if (preg_match(
"/^diff\s+/", $this->
file)
190 || preg_match(
"/^\*\*\*\s+/", $this->
file)
191 || preg_match(
"/^Only\s+in\s+/", $this->
file)
192 || preg_match(
"/^Common\s+subdirectories:\s+/", $this->
file)) {
201 if (preg_match(
"/^%XDZ/", $this->
file)) {
210 if (preg_match(
"/^FWS/", $this->
file)) {
219 if (preg_match(
"/^(.*?)PS-AdobeFont-1\.0/", $this->
file)) {
228 if (substr($this->
file, 53, 10)==
"yyprevious" 229 || substr($this->
file, 21, 17)==
"generated by flex") {
238 return !(strpos($this->
file,
";;") ===
false);
243 return preg_match(
"/^#\s+Magic/", $this->
file);
248 return preg_match(
"/^Content-Type:/", $this->
file);
253 return (substr($this->
file, 0, 2)==
"%!" || substr($this->
file, 0, 3)==(
string) (4) .
"%!");
258 return substr($this->
file, 0, 5)==
"{\\rtf";
263 if (preg_match(
"/\s*<!doctype\s+html/", $this->
file)
264 || preg_match(
"/\s*<head/", $this->
file)
265 || preg_match(
"/\s*<title/", $this->
file)
266 || preg_match(
"/\s*<html/", $this->
file)) {
275 if (preg_match(
"/\s*<\?xml/", $this->
file)) {
284 if (preg_match(
"/\s*<!doctype/", $this->
file)
285 || preg_match(
"/\s*<!subdoc/", $this->
file)
286 || preg_match(
"/\s*<!--/", $this->
file)) {
297 return (substr($this->
file, 0, 6) ==
"GIF89a");
302 return !(strpos(substr($this->
file, 0, 16),
"JFIF") ===
false);
307 $arr = unpack(
"C*", $this->
file);
308 if (
sizeof($arr)<9) {
311 return ($arr[1] == 0x89 && $arr[2] == 0x50
312 && $arr[3] == 0x4E && $arr[4] == 0x47
313 && $arr[5] == 0x0D && $arr[6] == 0x0A
314 && $arr[7] == 0x1A && $arr[8] == 0x0A);
319 return (substr($this->
file, 0, 2) ==
"BM");
324 return ((substr($this->
file, 0, 2) ==
"MM") || (substr($this->
file, 0, 2) ==
"II"));
Reload workbook from saved file
Create styles array
The data for the language used.