class Word {
public var chars;
public var str;
public var line; // the line this word was last associated with
function Word(str, chars) {
this.str = str;
this.chars = chars;
}
public function toString() {
return this.str;
}
public function breaks() {
return this.str.indexOf('
') > -1;
}
public function removeBreak() {
this.str = this.str.substring(this.str.indexOf('
') + 4); // what!? no replace???
}
}