Returns the line at the given offset.
DWT: index can be an invalid UTF-8 index
<p>
@param charPosition logical character offset (i.e., does not include gap)
@return the line index
@exception IllegalArgumentException <ul>
<li>ERROR_INVALID_ARGUMENT when charPosition is out of range</li>
</ul>
Returns the line at the given offset. DWT: index can be an invalid UTF-8 index <p>
@param charPosition logical character offset (i.e., does not include gap) @return the line index @exception IllegalArgumentException <ul> <li>ERROR_INVALID_ARGUMENT when charPosition is out of range</li> </ul>