Share via


NSRegularExpression.ReplaceMatches Method

Definition

Overloads

ReplaceMatches(NSMutableString, NSMatchingOptions, NSRange, NSString)

[Foundation.Export("replaceMatchesInString:options:range:withTemplate:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIntPtr ReplaceMatches(Foundation.NSMutableString mutableString, Foundation.NSMatchingOptions options, Foundation.NSRange range, Foundation.NSString template);
[<Foundation.Export("replaceMatchesInString:options:range:withTemplate:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ReplaceMatches : Foundation.NSMutableString * Foundation.NSMatchingOptions * Foundation.NSRange * Foundation.NSString -> unativeint
override this.ReplaceMatches : Foundation.NSMutableString * Foundation.NSMatchingOptions * Foundation.NSRange * Foundation.NSString -> unativeint

Parameters

mutableString
NSMutableString
range
NSRange
template
NSString

Returns

UIntPtr

unativeint

Attributes

Applies to

ReplaceMatches(String, NSMatchingOptions, NSRange, String)

[Foundation.Export("stringByReplacingMatchesInString:options:range:withTemplate:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual string ReplaceMatches(string sourceString, Foundation.NSMatchingOptions options, Foundation.NSRange range, string template);
[<Foundation.Export("stringByReplacingMatchesInString:options:range:withTemplate:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ReplaceMatches : string * Foundation.NSMatchingOptions * Foundation.NSRange * string -> string
override this.ReplaceMatches : string * Foundation.NSMatchingOptions * Foundation.NSRange * string -> string

Parameters

sourceString
String
range
NSRange
template
String

Returns

Attributes

Applies to