Szerkesztés

Megosztás a következőn keresztül:


NSMutableString.ReplaceOcurrences Method

Definition

Replaces the contents of the mutable string matching a pattern with another.

[Foundation.Export("replaceOccurrencesOfString:withString:options:range:")]
public virtual nuint ReplaceOcurrences (Foundation.NSString target, Foundation.NSString replacement, Foundation.NSStringCompareOptions options, Foundation.NSRange range);
abstract member ReplaceOcurrences : Foundation.NSString * Foundation.NSString * Foundation.NSStringCompareOptions * Foundation.NSRange -> nuint
override this.ReplaceOcurrences : Foundation.NSString * Foundation.NSString * Foundation.NSStringCompareOptions * Foundation.NSRange -> nuint

Parameters

target
NSString

String text to be replaced.

replacement
NSString

String to replace the text with.

options
NSStringCompareOptions

comparison options that determine how the target is matched.

range
NSRange

Range where the replacement will take place.

Returns

System.System.UIntPtr System.unativeint

Numbers of replacements done.

Attributes

Applies to