Tommaso Cucinotta wrote:
Abdelrazak Younes wrote:
You can use the paragraph id and the position in that paragraph. Else there is the StableDocIterator IIRC.
I can see operator<<() but not operator>>(), both for StableDocIterator and for CursorSlice. I guess the operator<<()s are there just for debugging purposes, not really for serializing and deserializing back those values. Also, this serialize/deserialize burden only arises because, in order to use an LFUN, I have to provide all arguments as a string as the LFUN argument.

Hum, as I said, you are not forced to use an LFUN for everything. I am personally fine with a multi document searching function that do not use an LFUN. IOW, LFUN_FINDADV may stay in BufferView which will call Buffer::findAndReplace(option, cursor()). OK, optionally, this LFUN could also contain a list of file name in order to continue the search. If next item is found in another Buffer, then calling LFUN_BUFFER_SWITCH will do.

The multiple buffer search in one go can rely elsewhere and be based on an LFUN or not.

Abdel.

Reply via email to