Commit graph

103 commits

Author SHA1 Message Date
jmdavis
d10ee6c2f6 Replaced calls to std.ctype.islower with isLower. 2011-06-12 16:59:51 -07:00
jmdavis
19ae2b4998 Replace calls to std.ctype.isdigt with std.ctype.isDigit. 2011-06-12 16:59:51 -07:00
jmdavis
3d3c342a69 Replaced calls to std.ctype.isalnum and std.ctype.isalpha. 2011-06-12 16:59:50 -07:00
jmdavis
76e1cfd2e9 Replaced calls to std.ctype.isspace with std.ctype.isWhite.
In a few places, I replaced it with std.uni.isUniWhite, but for the most
part, I replaced it with std.ctype.isWhite.
2011-06-12 16:59:50 -07:00
Dmitry Olshansky
a54e84e4a9 Schedule all listDir for deprecation 2011-06-10 15:04:25 +04:00
Walter Bright
5a517b0095 remove case fallthrough 2011-06-03 19:41:52 -07:00
Dmitry Olshansky
c7be162d96 a couple of minor fixes. 2011-05-31 21:52:53 +04:00
blackwhale
9afb00e36b Fix .* optimization, set initial stack to 32Kb, changelog 2011-05-30 00:55:01 +04:00
blackwhale
a4cf6d203b strideBack. make all strides work with mutable strings. style. 2011-05-27 17:21:18 +04:00
blackwhale
60f2b4bafb memcpy -> array ops, kill junk, fix latent bug in backtrack. 2011-05-27 16:22:27 +04:00
blackwhale
8420ae1b94 Style and spaces. Make compiler happy on linux. 2011-05-13 11:58:35 +04:00
blackwhale
bd8004b418 Reduce memory usage. Fix style & cleanup 2011-05-13 02:07:44 +04:00
blackwhale
535875fa56 Correct counter allocation & optimization 2011-05-13 00:05:21 +04:00
blackwhale
9dd711e379 Restore some optimizations, but only when they are correct.
64bit issues & cleanup.
2011-05-11 22:39:45 +04:00
blackwhale
2c590dc3ba Merge branch 'master' of https://github.com/blackwhale/phobos
Conflicts:
	std/regex.d
2011-05-11 03:25:06 +04:00
blackwhale
c3ec6b2387 Revamped repetitions, properly fixes all related problems.
Cleanup of control flow, minor fixes.
2011-05-11 03:01:40 +04:00
blackwhale
1e27f85b06 Revamp groups: matching subpattern can't be isolated in general 2011-05-10 12:47:07 +04:00
blackwhale
da4a902341 Issue 4574, empty match advances the input. 2011-05-10 11:13:36 +04:00
blackwhale
b47108090c Restore style, fix some minor issues. 2011-04-25 11:20:31 +04:00
blackwhale
b68db97306 Issue 4367: Captures is not a random access range 2011-04-20 15:40:06 +04:00
blackwhale
d5c2cb1ea0 Issue 4574, empty match advances the input. 2011-04-20 14:38:57 +04:00
blackwhale
88965d3bcd Restore special case optimization for .*,extending it to .+ and .{n,m}. 2011-04-19 17:09:55 +04:00
blackwhale
ffe3221177 Cleanup the aftermath. 2011-04-19 15:41:36 +04:00
blackwhale
7eb40af8be Quick fix for greediness issue 2108.
Also fixing the bug the size of an elephant (issue 5857).
2011-04-19 00:57:19 +04:00
blackwhale
548fc66543 missed debugging one writef 2011-04-11 17:11:14 +04:00
blackwhale
955644de92 printf's - >writef's
debug(regex) - >debug(std_regex)
2011-04-11 16:37:18 +04:00
blackwhale
1d32ddc8a4 Fix code aligment/tabs 2011-04-11 01:34:46 +04:00
blackwhale
ee612d047c Fixes for a couple of issues, also enabling proper unittest. 2011-04-01 22:34:16 +04:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
Brad Roberts
2c2fc98182 Fix 64 bit issues throughout regex and regexp and enable those tests 2011-01-18 08:41:35 +00:00
Andrei Alexandrescu
3cdb8dabe0 Removed last occurrences of std.algorithm.indexOf 2011-01-17 08:40:01 +00:00
Brad Roberts
f368104f37 A bunch of 64 bit fixes, including disabling tests that don't pass 2010-12-23 20:39:22 +00:00
Don Clugston
84477a5d3e Move Boost copyright declaration from ddoc to normal comment. Fixes ugly ddoc output. 2010-11-24 19:34:47 +00:00
Masahiro Nakagawa
c7d4be3fbc Regex's Range changed from class to struct. This change reduces unnecessary memory allocation 2010-11-13 21:02:24 +00:00
David Simcha
8331c70969 More 64 fixes for semantic errors that only show up when templates are instantiated via unittests. Now I'm actually serious about Phobos passing semantic analysis, except for a few modules due to weird druntime issues. 2010-11-10 05:25:50 +00:00
Shin Fujishiro
3c048ac456 Migration of tup.field[k] to tup[k].
Replaced ad-hoc 'is tuple?' checks with isTuple template.

The "this._cache" change in std.range is just a workaround for bug 5046.
2010-10-13 05:39:53 +00:00
SHOO
15f5f6e8f2 Fixed: Bug 5003
regex(replace with delegate) sample doesn't work.)
http://d.puremagic.com/issues/show_bug.cgi?id=5003
2010-10-06 18:21:19 +00:00
Andrei Alexandrescu
89a9d5de84 interim fix for bug 941 2010-09-25 08:38:35 +00:00
David Simcha
8c615f5bf7 Saves for regex. 2010-08-15 04:03:56 +00:00
Andrei Alexandrescu
536cb93d9c Fixed issue in Appender 2010-07-06 05:34:59 +00:00
Andrei Alexandrescu
bc325f00a0 Qualified indexOf with std.algorithm. 2010-06-08 17:39:35 +00:00
Masahiro Nakagawa
52729c450f bugzilla 4249 std.regex fails to compile with debug=regex 2010-06-02 19:27:12 +00:00
Masahiro Nakagawa
adf941f657 Replace static opCall with Constructor. static opCall for struct construction is old style. 2010-06-01 19:44:00 +00:00
Shin Fujishiro
525b001ca5 Fixed unittest failure in regex and regexp.
Recent druntime embeds backtrace information in Exception.toString(). So the actual error message will not be identical to the argument passed to error().
2010-05-26 06:00:04 +00:00
Shin Fujishiro
58fc6b8785 Fixed bugzilla 3880: std.regex functions with const/immutable Regex object.
- Passing const/immutable/shared Regex object to match() and replace() is perfectly safe. Just the template constraints were unaware of the qualifiers.
- Example for splitter() was a bit wrong (compare with the correct one in the unittest around line 2990.)
2010-05-23 11:52:53 +00:00
Masahiro Nakagawa
a288172908 Add @property to length method. 2010-05-04 21:54:00 +00:00
Don Clugston
3a1aec52a6 Fixed the workaround. 2010-03-16 07:52:19 +00:00
Andrei Alexandrescu
2a9a6e336c string, wstring are now bidirectional (not random) ranges
std.algorithm: defined move with one argument; levenshtein distance generalized to with all forward ranges; take now has swapped arguments
std.array: empty for arrays is now a @property; front and back for a string and wstring automatically decodes the first/last character; popFront, popBack for string and wstring obey the UTF stride
std.conv: changed the default array formatting from "[a, b, c]" to "a b c"
std.range: swapped order of arguments in take
std.stdio: added readln template
std.variant: now works with statically-sized arrays and const data
std.traits: added isNarrowString
2010-02-22 15:52:31 +00:00
Sean Kelly
747f3cf1e4 Changed Phobos to use the Boost license. Currently, all public domain modules and all licensed modules by Walter, Andrei, Bartosz, and Don have been changed to use this license (excepting std.c, for the moment). Ideally, all Phobos modules will eventually be distributed under this license, which means obtaining permission from a few more authors, deleting, or rewriting some modules.
Removed std.openrj.
2009-09-16 18:19:51 +00:00
Andrei Alexandrescu
e589cc4ce6 minor 2009-07-04 07:14:33 +00:00