File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
src/FSharpPlus/Extensions Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,23 @@ module String =
4040 /// Converts to lowercase -- nullsafe function wrapper for String.ToLowerInvariant method.
4141 let toLower ( source : string ) = if isNull source then source else source.ToLowerInvariant ()
4242
43- /// Trims white space -- function wrapper for String.Trim method.
43+ /// Trims leading and trailing white spaces -- function wrapper for String.Trim method.
4444 ///
4545 /// Note this is distinct from trim which trims the given characters,
46- /// not whitespace .
46+ /// not white spaces .
4747 let trimWhiteSpaces ( source : string ) = source.Trim ()
48+
49+ /// Trims leading white spaces -- function wrapper for String.TrimStart method.
50+ ///
51+ /// Note this is distinct from trim which trims the given characters,
52+ /// not white spaces.
53+ let trimStartWhiteSpaces ( source : string ) = source.TrimStart ()
54+
55+ /// Trims trailing white spaces -- function wrapper for String.TrimEnd method.
56+ ///
57+ /// Note this is distinct from trim which trims the given characters,
58+ /// not white spaces.
59+ let trimEndWhiteSpaces ( source : string ) = source.TrimEnd ()
4860
4961 #if ! FABLE_ COMPILER
5062
You can’t perform that action at this time.
0 commit comments