Sign in
fuchsia
/
third_party
/
swift
/
cbca1f23f67fe00cb31f5bccba5f9e6032b43919
/
.
/
test
/
multifile
/
imported-conformance
/
option-set
/
library.swift
blob: d0894c2085d31793486861024c8dd42ab7d7475e [
file
] [
log
] [
blame
]
// RUN: true
import
Foundation
@inline
(
__always
)
public
func replace
(
rgx
:
NSRegularExpression
,
in
:
String
,
with
:
String
,
x
:
NSRange
)
->
String
{
return
rgx
.
stringByReplacingMatches
(
in
:
`in`
,
options
:
[],
range
:
x
,
withTemplate
:
with
)
}