Merge pull request #4276 from jyapayne/devel

Add extra string functions to strutils to satisfy part of #4218 and #4251
This commit is contained in:
Andreas Rumpf 2016-06-14 09:38:45 +02:00 • committed by GitHub
commit c9c4b6c41d
6 changed files with 540 additions and 35 deletions

View file

@ -18,6 +18,15 @@ Library Additions
a lightweight alternative to python's ``csv.DictReader``.
- Added ``setStdIoUnbuffered`` proc to ``system.nim`` to enable unbuffered I/O.
- Added ``center``, ``rsplit``, and ``expandTabs`` to ``strutils.nim`` to
provide similar Python functionality for Nim's strings.
- Added ``isTitle``, ``title``, and ``swapCase`` to ``unicode.nim`` to
provide unicode aware string case manipulation.
- Added a new module ``lib/pure/strmisc.nim`` to hold uncommon string
operations. Currently contains ``partition`` and ``rpartition``.
Compiler Additions
------------------

View file

@ -43,7 +43,7 @@ srcdoc2: "pure/stats;impure/nre;windows/winlean;pure/random"
srcdoc2: "pure/complex;pure/times;pure/osproc;pure/pegs;pure/dynlib;pure/strscans"
srcdoc2: "pure/parseopt;pure/parseopt2;pure/hashes;pure/strtabs;pure/lexbase"
srcdoc2: "pure/parsecfg;pure/parsexml;pure/parsecsv;pure/parsesql"
srcdoc2: "pure/streams;pure/terminal;pure/cgi;pure/unicode"
srcdoc2: "pure/streams;pure/terminal;pure/cgi;pure/unicode;pure/strmisc"
srcdoc2: "pure/htmlgen;pure/parseutils;pure/browsers"
srcdoc2: "impure/db_postgres;impure/db_mysql;impure/db_sqlite"
srcdoc2: "pure/httpserver;pure/httpclient;pure/smtp;impure/ssl;pure/fsmonitor"