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
Post a Comment