Maturity Index: Experimental
RunArray is used by the Text class, to hold String segments that have the same TextAttributes, called runs.
+newCreates an empty RunArray collection.
-free
-values
-values:v
-at:(unsigned)iReturns a collection of TextAttributes for the i-th character. The collection contains at least one element.
- (unsigned)sizeReturns the size of the RunArray, which is the same as the size of the String instance for this RunArray object.
- (unsigned)runLengthAt:(unsigned)iReturns the size of the run to which the character at position i belongs.
-addAttribute:attribfrom:(unsigned)psize:(unsigned)sAdds attrib to the attribute lists for the s characters from position p.
-coalesceMerges adjacent lists of TextAttribute instances, by testing whether they are equal (in the sense of TextAttribute's isEqual method).
-printOn:(IOD)aFilePrints the RunArray values.