X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FTextStream.vala;h=f5bb7258fce7e3965ceb9fc1f595af5dd86f1873;hb=14af812cd28620f26227cffdbddfa6154065eb26;hp=39f935c1623728f364c31ea124e764f59703fabf;hpb=5661e688120108b5e52c14fe44c0a980466d8b75;p=gnome.introspection-doc-generator diff --git a/JSDOC/TextStream.vala b/JSDOC/TextStream.vala index 39f935c..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; } @@ -55,16 +55,16 @@ namespace JSDOC { { 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 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 "";