Commit Graph

19 Commits

Author SHA1 Message Date
Matthew Flatt
95235a4522 fix problem with regexp-match*, etc. and byte regexps (merge to 4.2.2)
svn: r16133
2009-09-26 18:50:41 +00:00
Eli Barzilay
5b9f0aa322 Implemented a `no-empty-edge-matches' function using the new
`make-regexp-tweaker', which produces a regexp that cannot match an
empty string at the beginning or the end of the input.  This:
* simplies a whole bunch of messy and fragile code
* makes `regexp-split' and friends usable with a pattern like #px"\\b"
  (which previously would match in every position, making it explode
  the string to 1-character strings)
* makes it even closer to what perl does, the only way that we produce
  a different result from perl now is that we don't blindly drop empty
  matches at the end like perl (it *does* keep empty matches in the
  beginning though)
The two tests that demonstrated the difference are now changed, and a
bunch of other tests added.

svn: r12575
2008-11-23 05:40:54 +00:00
Eli Barzilay
311b7543e2 add tests for match* + split
svn: r9622
2008-05-03 06:05:09 +00:00
Eli Barzilay
921ef6cfcb fixed regexp-match-peek-positions* and added tests
svn: r9611
2008-05-02 23:00:57 +00:00
Eli Barzilay
726c66d8ce much more extensive tests for regexp-X* functions
svn: r9605
2008-05-02 21:04:58 +00:00
Eli Barzilay
180dc08777 added add-between and string-join, no lists-join
svn: r9361
2008-04-18 14:00:41 +00:00
Eli Barzilay
0b7bdfe92c added scheme/string, include it in the scheme language, put string-append* in there, tested, documented
svn: r9356
2008-04-18 04:10:46 +00:00
Matthew Flatt
cb3fdd8fc5 change real->decimal-string (PR 9285)
svn: r9210
2008-04-08 21:56:29 +00:00
Eli Barzilay
5cde854a07 svn: r9198 2008-04-08 12:39:36 +00:00
Eli Barzilay
26b283b953 fixed pr9285, added tests
svn: r9197
2008-04-08 12:33:53 +00:00
Eli Barzilay
2888a16d0e * Move the scheme/contract tests to scheme.ss
* Split string.ss into string-mzlib.ss which is left in mzlib.ss
* Call the string.ss from scheme (which now has only stuff from scheme/base)

svn: r9196
2008-04-08 12:29:04 +00:00
Eli Barzilay
b1a08edd5a use new require specs in many places
svn: r8774
2008-02-23 09:42:03 +00:00
Eli Barzilay
8a17372db3 Make regexp-split and relatives work with empty matches like other
regexp packages (eg, Dorai's pregexp and Emacs).

svn: r8556
2008-02-06 19:19:44 +00:00
Eli Barzilay
a772fa8c84 * Better dealing with errors in eval-string and read-from-string/-all
* Made them work with byte strings too
* Added tests to the above

svn: r5081
2006-12-11 18:03:33 +00:00
Eli Barzilay
a0243b4616 fixed another typo in the code, added tests
svn: r4936
2006-11-23 17:49:24 +00:00
Eli Barzilay
f902ea5ba9 fixed some stuff, added tests, added simple option (no ranges)
svn: r4935
2006-11-23 17:38:53 +00:00
Eli Barzilay
6fbc2dc27f improved glob->regexp + tests
svn: r4933
2006-11-23 09:53:58 +00:00
Eli Barzilay
bbf54efde9 Better output: using quiet.ss will show nothing except for section
headers and errors (if any).  Also, using quiet.ss will exit with an
error code if there were errors.

svn: r3655
2006-07-07 23:46:35 +00:00
Eli Barzilay
017d151d59 Adding collects, with all the right properties (except eoln-style).
svn: r3
2005-05-27 18:56:37 +00:00