Diggory Blake
76435b2d66
Removed unused stream abstraction
2013-05-06 18:39:03 +01:00
Diggory Blake
752cccd34d
Remove unnecessary default arguments
2013-04-28 18:22:03 +01:00
Diggory Blake
937800be34
Fixed a bunch of off-by-one errors in the regex code
2013-04-24 23:55:55 +01:00
Diggory Blake
5b808e575e
Fixed regex loop-back stream to start from the correct position
2013-04-24 00:19:41 +01:00
Dmitry Olshansky
be25fd00b1
fix Issue 9280
...
A bug in _ctfe branch that was introduced while stubbing out non-CTFeable blocks.
Now CTFE is having more power and able to run the same code just fine!
2013-03-10 13:03:00 +04:00
Dmitry Olshansky
09b5e109a8
even more spaces around operators
2013-02-23 15:59:24 +04:00
Dmitry Olshansky
f8e3bbe838
try to unify code style to use spaces between operators
2013-02-23 15:56:41 +04:00
Dmitry Olshansky
a91b866790
an awful typo in std.regex; fix issue 9512
2013-02-18 19:01:05 +04:00
Jonathan M Davis
556c42a17b
Merge pull request #1134 from timotheecour/master
...
missing space in assert message
2013-02-11 16:52:03 -08:00
timotheecour
7244ea276d
Update std/regex.d
2013-02-11 14:41:31 -08:00
Dmitry Olshansky
15879f4698
[style] reindent
2012-12-29 18:11:51 +04:00
Dmitry Olshansky
3088d2fc6f
[style] various fixes found during review
2012-12-28 19:32:30 +04:00
Dmitry Olshansky
4a08974927
fix issue 9211
...
A leftover from semantically incorrect optimization in std.regex
2012-12-27 22:31:19 +04:00
jmdavis
74f8c844fe
Revert "Add alias opDollar
and use $ in range slicing"
...
This reverts commit 07104b5fe6
.
As we cannot currenly rely on even ranges with slicing implementing
opDollar, this change breaks code, because it assumes that such ranges
implement opDollar.
2012-12-09 17:21:37 -08:00
cjoan
066a263fcd
Editing std.regex docs.
...
AKA shameless pedantry.
2012-12-09 19:46:45 -05:00
Andrei Alexandrescu
8953d521ce
Merge pull request #979 from 9rnsr/use_opDollar
...
Add `alias opDollar` and use $ in range slicing
2012-12-08 20:11:25 -08:00
k-hara
07104b5fe6
Add alias opDollar
and use $ in range slicing
2012-12-05 10:13:17 +09:00
k-hara
7062ce191a
fix Issue 2486 - taking address of slice rvalue is valid
2012-12-03 14:40:24 +09:00
Dmitry Olshansky
0f2947d4d1
bugfixes for compile-time regex
...
fix issue 8725
fix issue 8349
2012-12-01 00:37:32 +04:00
k-hara
01df2f60be
Remove redundant parenthesis for getters, and use assignment syntax for setters
2012-11-23 15:07:17 +09:00
k-hara
28dedee456
Issue 7444 - Require [] for array copies too
2012-11-20 17:55:21 +09:00
Roy Crihfield
c69ae5b662
Added ^$ to special characters list.
2012-10-31 11:55:24 -04:00
Miles
bdfcf80b82
Update std/regex.d
...
Very minor edit: should use 'losing' instead of 'loosing'.
2012-10-02 11:25:24 -07:00
Hara Kenji
cee5e7b78f
Merge pull request #783 from blackwhale/depure-enforce
...
Let enforce rely on deduced purity & safety
2012-09-14 19:11:57 -07:00
Dmitry Olshansky
7714a9c42e
Fix issue 8637
...
Compiler can and should deduce purity of templates
2012-09-11 11:31:29 +04:00
monarchdodra
f0e7cfba7c
Adding source link
2012-09-10 23:56:42 +03:00
Dmitry Olshansky
245782bb63
unittest for bug 8203
2012-06-08 01:33:56 +04:00
Dmitry Olshansky
0c35fcd694
fix Issue 8203
...
Change RegexMatch objects to follow proper COW semantics
2012-06-07 19:22:20 +04:00
k-hara
75b709bf28
Tweak by Dmitry Olshansky's comment.
2012-05-31 20:55:03 +09:00
k-hara
72a33de959
Replace object.clear to destroy
2012-05-31 19:27:52 +09:00
Graham Fawcett
4aae62cb95
std/regex.d: fix typo in documentation (occurrence)
2012-05-22 17:12:47 -03:00
Brad Roberts
81301fb0ea
Merge pull request #543 from CyberShadow/patch-2
...
std.regex: Fix math in replace example
2012-05-13 16:54:47 -07:00
Dmitry Olshansky
6c9414c8c9
fix Issue 7962 Captures.length() returns incorrect value
2012-04-22 01:05:37 +04:00
Vladimir Panteleev
f25f1f7f41
std.regex: Fix math in replace example
...
Not only was the sum of two numbers incorrect, but the replace
operation seemingly added 100 to the result as well ;)
2012-04-18 18:51:03 +03:00
Nick Treleaven
391dcd1a67
Use 'any character except' instead of 'any character but'
2012-03-30 17:44:25 +01:00
Nick Treleaven
5dba234be2
Minor doc fixes for main description of std.regex
...
These include spelling, typos, usual english/flow and some space
alignment. Add missing 'a' or 'the' where necessary.
Add 'but no more than m times' to the description for {n,m}
quantifier, to differentiate from {n,} description.
Add a 'Slicing' heading to separate the Unicode and returning slices
sections.
2012-03-30 17:44:24 +01:00
Dmitry Olshansky
88ecf28752
fix Issue 7718 - regex and ctRegex produce different results
...
also fix unittest in std.range
2012-03-23 12:17:36 +04:00
Dmitry Olshansky
34683e4afb
apply code review suggestions, extending SortedRange
2012-03-23 12:17:31 +04:00
Dmitry Olshansky
abe9cb5861
add missing unittest for issue 7300
2012-03-23 12:17:25 +04:00
Dmitry Olshansky
e53e6d64e9
fix Issue 7300 - std.regex.ShiftOr!dchar.search is broken
...
Rework problematic memchr codepath to properly test for end of string. More importantly it's overall cleaner.
2012-03-23 12:17:23 +04:00
Dmitry Olshansky
ba5eecf086
clean up CTFE, workarounds--
2012-03-23 12:17:20 +04:00
Dmitry Olshansky
05c142b802
Add fixed caching results of regex
2012-03-23 12:17:17 +04:00
Dmitry Olshansky
097faaca84
fix Issue 7674 - regex replace requires escaped format
...
Kill unnecessary escaping in replace format string.
2012-03-17 21:41:25 +04:00
David Simcha
8ed20feaf7
Merge pull request #481 from blackwhale/regex-fix-parser
...
fix unreported bug in std.regex parser
2012-03-15 19:13:48 -07:00
Dmitry Olshansky
9ce1020904
fix Issue 7679 - std.regex.split and splitter don't work w/ ctRegex
2012-03-15 12:20:57 +04:00
David Simcha
6d782c6efd
Merge pull request #491 from blackwhale/issue-1772
...
fix Issue 1772 - regexp.split behavior with captures needs to be documen...
2012-03-14 18:45:52 -07:00
Dmitry Olshansky
62b464b48d
fix Issue 1772 - regexp.split behavior with captures needs to be documented
...
A documentation clarification, the report itself is largely outdated.
2012-03-12 14:26:51 +04:00
Vladimir Panteleev
7d493bdfe6
std.regex: Fix unicode.org link in DDoc
2012-03-08 22:51:06 -08:00
Dmitry Olshansky
9d91c1e7fb
fix unreported bug in std.regex parser
...
lookaround opcodes have size > 1, that was not accounted for in IR generation for naked | option.
2012-03-06 19:56:06 +04:00
Dmitry Olshansky
4fe48d2608
Fix issue 7111 - New regex engine cannot match beginning of empty string
...
Also added some missing bugs in a changelog, including old regex reports.
2012-02-25 00:52:12 +04:00