projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
925f71a
)
JSDOC/TextStream.vala
author
Alan Knowles
<alan@roojs.com>
Tue, 15 Sep 2015 09:30:24 +0000
(17:30 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 15 Sep 2015 09:30:24 +0000
(17:30 +0800)
JSDOC/TextStream.vala
patch
|
blob
|
history
diff --git
a/JSDOC/TextStream.vala
b/JSDOC/TextStream.vala
index
7ebda98
..
a68d2a7
100644
(file)
--- a/
JSDOC/TextStream.vala
+++ b/
JSDOC/TextStream.vala
@@
-48,15
+48,17
@@
namespace JSDOC {
return false
},
-
- public char next(int n = 1)
+ /**
+ * @param n - number of characters to return..
+ */
+ public string next(int n = 1)
{
if (n < 1) { //?? eof???
return '\0';
}
-
char
pulled;
+
string
pulled;
var i = 0;
while (i < n) {
if (this.cursor+i < this.length) {
@@
-64,7
+66,7
@@
namespace JSDOC {
i += pulled.to_string.length();
} else {
- return
'\0'
;
+ return
""
;
}