# `GSGlyphEditView replaceOccurrencesOfString:withString:`

*Instance Method*

## Declaration

```swift
func replaceOccurrences(of target: String, with replacement: String) -> UInt
```

```objc
- (NSUInteger) replaceOccurrencesOfString:(NSString *) target withString:(NSString *) replacement;
```

```python
replaceOccurrencesOfString_withString_(target: str, replacement: str) -> int
```

