Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSTextCheckingResultMBS class.

NSTextCheckingResultMBS.alternativeStrings as String()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Regular Expressions MBS MacCocoa Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns alternative strings.

NSTextCheckingResultMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Regular Expressions MBS MacCocoa Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The private constructor.

NSTextCheckingResultMBS.copy as NSTextCheckingResultMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Regular Expressions MBS MacCocoa Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a copy of the result.

NSTextCheckingResultMBS.grammarDetails as Dictionary()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Regular Expressions MBS MacCocoa Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The details of a located grammatical type checking result.

This array of strings is suitable for presenting to the user.

NSTextCheckingResultMBS.rangeAtIndex(index as Integer) as NSRangeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Regular Expressions MBS MacCocoa Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the result type that the range represents.

index: The index of the result.

Returns the range of the result.

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.

NSTextCheckingResultMBS.rangeWithName(name as string) as NSRangeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Regular Expressions MBS MacCocoa Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns range with name.

NSTextCheckingResultMBS.resultByAdjustingRangesWithOffset(offset as Integer) as NSTextCheckingResultMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Regular Expressions MBS MacCocoa Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a new text checking result after adjusting the ranges as specified by the offset.

offset: The amount the ranges are adjusted.

Returns a new NSTextCheckingResultMBS instance with the adjusted range or ranges.

The items on this page are in the following plugins: MBS MacCocoa Plugin.


The biggest plugin in space...