Skip to content

Commit

Permalink
[FSharp] Add String.replace
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Oct 30, 2023
1 parent fb5b684 commit a397eee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Aardvark.Base.FSharp/Utilities/Interop/String.fs
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,8 @@ module ``String Extensions`` =

/// Removes all leading and trailing white-space characters from the string.
let inline trim (str : string) =
str.Trim()
str.Trim()

/// Replaces all occurrences of the pattern with the replacement string.
let inline replace (pattern : string) (replacement : string) (str : string) =
str.Replace(pattern, replacement)

0 comments on commit a397eee

Please sign in to comment.