projects
/
mdref
/
mdref
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
lift max-width limitation
[mdref/mdref]
/
mdref
/
File.php
diff --git
a/mdref/File.php
b/mdref/File.php
index 0ac3da26f1ac3f43d50a00c3aeb2e200ed60ec79..4afd3b430559a16b804945f1e14aa0eb6b4dadf2 100644
(file)
--- a/
mdref/File.php
+++ b/
mdref/File.php
@@
-10,7
+10,7
@@
class File {
* @var resource
*/
private $fd;
* @var resource
*/
private $fd;
-
+
/**
* Open the file
* @param string $path
/**
* Open the file
* @param string $path
@@
-18,7
+18,7
@@
class File {
public function __construct($path) {
$this->fd = fopen($path, "rb");
}
public function __construct($path) {
$this->fd = fopen($path, "rb");
}
-
+
/**
* Read the title of the refentry
* @return string
/**
* Read the title of the refentry
* @return string
@@
-28,7
+28,7
@@
class File {
return fgets($this->fd);
}
}
return fgets($this->fd);
}
}
-
+
/**
* Read the description of the refentry
* @return string
/**
* Read the description of the refentry
* @return string
@@
-40,7
+40,7
@@
class File {
return fgets($this->fd);
}
}
return fgets($this->fd);
}
}
-
+
/**
* Read the first subsection of a global refentry
* @return string
/**
* Read the first subsection of a global refentry
* @return string
@@
-49,7
+49,7
@@
class File {
$intro = "";
if (0 === fseek($this->fd, 0, SEEK_SET)) {
$header = false;
$intro = "";
if (0 === fseek($this->fd, 0, SEEK_SET)) {
$header = false;
-
+
while (!feof($this->fd)) {
if (false === ($line = fgets($this->fd))) {
break;
while (!feof($this->fd)) {
if (false === ($line = fgets($this->fd))) {
break;