There's doc_iterator_begin/doc_iterator_end. Apart from that:-// } + // MathData md = cur.cell();+ A // MathData::const_iterator it_end = ( ( len == -1 || cur.pos() + len > int(md.size()) ) ? md.end() : md.begin() + cur.pos() + len );could you please try to keep the lines below ~75 chars or so?
After having seen your 3 terminal setup I understand why you are after this limit all the time :-)
Stefan
[Yes, I noticed the style got adjusted in several places. Thanks for doing that ;-)] Andre'