projects
/
gnome.introspection-doc-generator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JSDOC/TokenStream.vala
[gnome.introspection-doc-generator]
/
JSDOC
/
TextStream.vala
diff --git
a/JSDOC/TextStream.vala
b/JSDOC/TextStream.vala
index
f15a902
..
f5bb725
100644
(file)
--- a/
JSDOC/TextStream.vala
+++ b/
JSDOC/TextStream.vala
@@
-27,7
+27,7
@@
namespace JSDOC {
this.text = text;
this.text = text;
- this.length = text.char_count();
+ this.length = text.
length; // text.
char_count();
this.cursor = 0;
}
this.cursor = 0;
}
@@
-37,7
+37,7
@@
namespace JSDOC {
if (this.cursor+n < 0 || this.cursor+n >= this.length) {
return '\0';
}
if (this.cursor+n < 0 || this.cursor+n >= this.length) {
return '\0';
}
- return
text[this.cursor+n]
;
+ return
this.text[this.cursor+n]; // this.text.get_char(this.cursor+n)
;
}
public bool lookEOF(int n = 0)
}
public bool lookEOF(int n = 0)
@@
-55,16
+55,16
@@
namespace JSDOC {
{
if (n < 1) { //?? eof???
{
if (n < 1) { //?? eof???
- return
'\0'
;
+ return
"\0"
;
}
}
- string pulled;
+ string pulled
= ""
;
var i = 0;
while (i < n) {
if (this.cursor+i < this.length) {
var i = 0;
while (i < n) {
if (this.cursor+i < this.length) {
- var add = this.text.get_char(this.cursor+i).to_string();
- pulled += add;
- i += add.length;
+ var add = this.text
[this.cursor+i]; //this.text
.get_char(this.cursor+i).to_string();
+ pulled += add
.to_string()
;
+ i +=
1;//
add.length;
} else {
return "";
} else {
return "";