firstMatchInString method
NSTextCheckingResult?
firstMatchInString(
- NSString string, {
- required NSMatchingOptions options,
- required NSRange range,
firstMatchInString:options:range:
Implementation
NSTextCheckingResult? firstMatchInString(
objc.NSString string, {
required NSMatchingOptions options,
required NSRange range,
}) {
objc.checkOsVersionInternal(
'NSRegularExpression.firstMatchInString:options:range:',
iOS: (false, (4, 0, 0)),
macOS: (false, (10, 7, 0)),
);
final _ret = _objc_msgSend_pccgql(
this.ref.pointer,
_sel_firstMatchInString_options_range_,
string.ref.pointer,
options.value,
range,
);
return _ret.address == 0
? null
: NSTextCheckingResult.castFromPointer(
_ret,
retain: true,
release: true,
);
}