java - Is SpannableString.setSpan() 2nd parm 0-based? -


my empirical experiment shows if setspan(o, start, end) start end of string, end string.length() - 1, last character isn't covered.

when changed end string.length(), entire string covered and... don't "out-of-bound" exception.

unfortunately, there nothing in documentation regarding particular issue.

can confirm observation? (or prove me wrong?)

end exclusive. 0, 2, example, 0 inclusive 2 exclusive 0 , 1.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -