diff --git a/changelog.md b/changelog.md index f3ee98fb63..fb0e9043b6 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 89ab26d81b..46e1f9d194 100644 --- a/doc/lib.rst +++ b/doc/lib.rst @@ -147,10 +147,13 @@ String handling * `subexes `_ This module implements advanced string substitution operations. -* `editdistance `_ +* `std/editdistance `_ This module contains an algorithm to compute the edit distance between two Unicode strings. +* `std/wordwrap `_ + 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 similarity index 100% rename from lib/pure/editdistance.nim rename to lib/std/editdistance.nim diff --git a/lib/std/wordwrap.nim b/lib/std/wordwrap.nim index ac44b28ddd..c7898b3398 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 =