diff options
-rw-r--r-- | changelog.md | 5 | ||||
-rw-r--r-- | doc/lib.rst | 5 | ||||
-rw-r--r-- | lib/std/editdistance.nim (renamed from lib/pure/editdistance.nim) | 0 | ||||
-rw-r--r-- | lib/std/wordwrap.nim | 2 |
4 files changed, 10 insertions, 2 deletions
diff --git a/changelog.md b/changelog.md index f3ee98fb6..fb0e9043b 100644 --- a/changelog.md +++ b/changelog.md @@ -45,9 +45,12 @@ proc enumToString*(enums: openArray[enum]): string = ### Library additions -- There is a new stdlib module `editdistance` as a replacement for the +- There is a new stdlib module `std/editdistance` as a replacement for the deprecated `strutils.editDistance`. +- There is a new stdlib module `std/wordwrap` as a replacement for the + deprecated `strutils.wordwrap`. + - Added `split`, `splitWhitespace`, `size`, `alignLeft`, `align`, `strip`, `repeat` procs and iterators to `unicode.nim`. diff --git a/doc/lib.rst b/doc/lib.rst index 89ab26d81..46e1f9d19 100644 --- a/doc/lib.rst +++ b/doc/lib.rst @@ -147,10 +147,13 @@ String handling * `subexes <subexes.html>`_ This module implements advanced string substitution operations. -* `editdistance <editdistance>`_ +* `std/editdistance <editdistance.html>`_ This module contains an algorithm to compute the edit distance between two Unicode strings. +* `std/wordwrap <wordwrap.html>`_ + This module contains an algorithm to wordwrap a Unicode string. + Generic Operating System Services --------------------------------- diff --git a/lib/pure/editdistance.nim b/lib/std/editdistance.nim index 40beb7d93..40beb7d93 100644 --- a/lib/pure/editdistance.nim +++ b/lib/std/editdistance.nim diff --git a/lib/std/wordwrap.nim b/lib/std/wordwrap.nim index ac44b28dd..c7898b339 100644 --- a/lib/std/wordwrap.nim +++ b/lib/std/wordwrap.nim @@ -7,6 +7,8 @@ # distribution, for details about the copyright. # +## This module contains an algorithm to wordwrap a Unicode string. + import strutils, unicode proc olen(s: string): int = |