Instance Method

indexLessThanIndex(_:)

Returns either the closest index in the index set that is less than a specific index or the not-found indicator.

Declaration

func indexLessThanIndex(_ value: Int) -> Int

Parameters

index

Index being inquired about.

Return Value

Closest index in the index set less than index; NSNotFound when the index set contains no qualifying index.

See Also

Getting Indexes

var firstIndex: Int

The first index in the index set.

var lastIndex: Int

The last index in the index set.

func indexLessThanOrEqual(to: Int) -> Int

Returns either the closest index in the index set that is less than or equal to a specific index or the not-found indicator.

func indexGreaterThanOrEqual(to: Int) -> Int

Returns either the closest index in the index set that is greater than or equal to a specific index or the not-found indicator.

func indexGreaterThanIndex(Int) -> Int

Returns either the closest index in the index set that is greater than a specific index or the not-found indicator.

func getIndexes(UnsafeMutablePointer<Int>, maxCount: Int, inIndexRange: NSRangePointer?) -> Int

The index set fills an index buffer with the indexes contained both in the index set and in an index range, returning the number of indexes copied.