Type Method

regularExpressionCheckingResultWithRanges:count:regularExpression:

Creates and returns a type checking result with the specified regular expression data.

Declaration

+ (NSTextCheckingResult *)regularExpressionCheckingResultWithRanges:(NSRangePointer)ranges count:(NSUInteger)count regularExpression:(NSRegularExpression *)regularExpression;

Parameters

ranges

A C array of ranges, which must have at least one element, and the first element represents the overall range.

count

The number of items in the ranges array.

regularExpression

The regular expression.

Return Value

Returns an NSTextCheckingResult with the specified range and a resultType of NSTextCheckingTypeRegularExpression.

See Also

Text Checking Results for Regular Expressions

regularExpression

The regular expression of a type checking result.