Returns true if some text is selected; places the bounds of the selection in
(if the selection has length 0, then
end are filled in with the same value).
end will be in ascending order. If
end are NULL, then they are not
filled in, but the return value still indicates whether text is selected.
iterator to initialize with selection start
iterator to initialize with selection end
whether the selection has nonzero length