X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FTextStream.vala;h=f5bb7258fce7e3965ceb9fc1f595af5dd86f1873;hp=a070e2c467ee97afdaf82e3b11751247789cc4e2;hb=954be6f9897a8e3866089bb5f67fbe5409b608b9;hpb=f1a0bbe384704cd2a8b25525371e59f2912350e4 diff --git a/JSDOC/TextStream.vala b/JSDOC/TextStream.vala index a070e2c..f5bb725 100644 --- a/JSDOC/TextStream.vala +++ b/JSDOC/TextStream.vala @@ -27,7 +27,7 @@ namespace JSDOC { this.text = text; - this.length = text.char_count(); + this.length = text.length; // text.char_count(); this.cursor = 0; } @@ -58,13 +58,13 @@ namespace JSDOC { return "\0"; } - string pulled; + string pulled = ""; 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 "";