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
ecb39eedee
added make-regexp-tweaker (not used yet), and some code reorganization
...
svn: r12573
2008-11-23 00:17:39 +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
0e299c5bd2
fix regexp-match-positions* with input ports
...
svn: r9604
2008-05-02 21:04:24 +00:00
Eli Barzilay
a995ba1304
fix for regexp-match-positions* on input ports
...
svn: r9600
2008-05-02 18:09:58 +00:00
Eli Barzilay
1054f9cdea
empty matches in regexp-X* makeover, part two: better code
...
svn: r9597
2008-05-02 17:21:04 +00:00
Eli Barzilay
26a180f458
empty matches in regexp-X* makeover, part one
...
svn: r9594
2008-05-02 17:18:52 +00:00
Eli Barzilay
4870d9830c
slightly more readable code
...
svn: r9444
2008-04-23 23:25:39 +00:00
Matthew Flatt
cb3fdd8fc5
change real->decimal-string (PR 9285)
...
svn: r9210
2008-04-08 21:56:29 +00:00
Eli Barzilay
26b283b953
fixed pr9285, added tests
...
svn: r9197
2008-04-08 12:33:53 +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
6436441ebd
minor things
...
svn: r8554
2008-02-06 11:35:01 +00:00
Eli Barzilay
ab64d26a21
yet further improvements
...
svn: r8553
2008-02-06 10:14:24 +00:00
Eli Barzilay
2ae21adbff
use tail-calls for regexp iterations
...
svn: r8549
2008-02-06 02:49:19 +00:00
Eli Barzilay
f3bbc44451
Major cleanup, switch regexp-fn to a macro to clarify things
...
svn: r8545
2008-02-05 22:02:34 +00:00
Matthew Flatt
1d8b21f53b
disallow empty application; rename regexp-match/fail-without-reading to regexp-try-match
...
svn: r8152
2007-12-29 13:51:32 +00:00
Matthew Flatt
39cedb62ed
v3.99.0.2
...
svn: r7706
2007-11-13 12:40:00 +00:00