Instance Property

numberOfRanges

Returns the number of ranges.

Declaration

@property(readonly) NSUInteger numberOfRanges;

Discussion

A result must have at least one range, but may optionally have more (for example, to represent regular expression capture groups).

Passing rangeAtIndex: the value 0 always returns the value of the the range property. Additional ranges, if any, will have indexes from 1 to numberOfRanges-1.

See Also

Text Checking Type Range and Type

range

Returns the range of the result that the receiver represents.

resultType

Returns the text checking result type that the receiver represents.

- rangeAtIndex:

Returns the result type that the range represents.