int ResultIterator::LTRWordIndex() const { int this_word_index = 0; LTRResultIterator textline(*this); textline.RestartRow(); while (!textline.PositionedAtSameWord(it_)) { this_word_index++; textline.Next(RIL_WORD); } return this_word_index; }
int main() { int i = 0, l = 0; get_dims(); clearscreen(); indent = (width - COLS) / 2; for (i = 0, l = (height - ROWS) / 2; i < l; i++) { newline(); } textos(OS); newline(); textline(CONTINUE); newline(); textline(ENTER); newline(); textline(CTRLALTDEL); textline(UNSAVED); newline(); textline(ERROR); newline(); textline(PRESSKEY); for (i = 0, l = ((height - ROWS) / 2) - 2; i < l; i++) { newline(); } cursor(0); while (getchar() != '\n') { } cursor(1); return 0; }