Andre Poenitz wrote: > On Wed, Oct 22, 2003 at 04:47:55PM +0000, Angus Leeming wrote: >> Andre Poenitz wrote: >> > Lars seems to like the name 'end' reserved for iterators, not for >> > integer offsets and suggested replacing it with something else. >> > I do not really care, 'behind' or 'endpos' or similar if just >> > fine with me. >> >> Ok, thanks. Isn't this what 'size()' does in other containers? > > No, as row() starts with e 'pos' offset. > > A row covers positions 'pos ... end-1' in a paragraph. > An 'other' container covers '0 ... end-1'.
Thanks for the explanation. 'behind' is definitely nasty, but 'endpos' suggests the last char itself, not last char + 1. Personally, I'd stick with 'begin()' and 'end()' as the logical meaning is identical to that used by iterators, but since I (obviously) hardly ever go there I think you should discount all input from me ;-) -- Angus