add strbasics.strip (#16280)

This commit is contained in:
flywind 2021-02-24 03:22:47 -06:00 • committed by GitHub
commit 3f38f8fbb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 226 additions and 0 deletions

View file

@ -2753,6 +2753,7 @@ func strip*(s: string, leading = true, trailing = true,
## If both are false, the string is returned unchanged.
##
## See also:
## * `strip proc<strbasics.html#strip,string,set[char]>`_ Inplace version.
## * `stripLineEnd func<#stripLineEnd,string>`_
runnableExamples:
let a = " vhellov "