Commit graph

577 commits

Author SHA1 Message Date
Andrej Mitrovic
7f25129260 Add better description to findSplit. 2012-02-24 00:03:55 +01:00
Vladimir Panteleev
f7e0387b6d std.algorithm: Fix the documentation of remove with pred
The description contradicted the example/unittest/actual behavior.
2012-02-22 17:37:56 +02:00
Andrei Alexandrescu
fa927d18bf Merge pull request #438 from dsimcha/anyAll
Add all to std.algorithm and alias canFind to any for consistency with s...
2012-02-20 21:34:02 -08:00
dsimcha
2e919aa77c Schedule for deprecation the predicate-only version of canFind and make any handle that use case. 2012-02-20 23:12:28 -05:00
Andrei Alexandrescu
91c4363398 Merge pull request #365 from dsimcha/opDollar
Add opDollar aliases for std.range and std.algorithm.
2012-02-20 19:45:38 -08:00
dsimcha
d1938e5563 Add all to std.algorithm and alias canFind to any for consistency with standard functional programming terminology. 2012-02-18 16:07:16 -05:00
dsimcha
3f510e39f1 Bug 7484: Overlapping array copy. 2012-02-11 19:26:09 -05:00
Yao Gómez
337d2d5c2d Fix std.algorithm.reverse docs. 2012-02-05 16:55:56 -06:00
dsimcha
052941a087 Add opDollar aliases for std.range and std.algorithm. 2011-12-11 12:38:45 -05:00
Andrei Alexandrescu
f88e848ed9 Merge branch 'reverse' 2011-12-09 12:02:06 -06:00
Andrei Alexandrescu
24192fc3a0 Added in-place reverse for narrow strings 2011-12-09 11:49:36 -06:00
David Nadlinger
ca2a082868 Until.predSatisfied() is a private helper function, mark it as such. 2011-12-04 09:56:14 +01:00
David Nadlinger
e312f9898b Strict @property syntax compliance.
This enables the test suite to build with the -property switch enabled.

std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
Denis Shelomovskij
e8712ed9e1 Documentation and struct staticness in std.algorithm fixes 2011-11-14 17:10:19 +03:00
simendsjo
f0502b99df Bug 1904 has been fixed. Might brake existing code. 2011-11-06 16:43:04 +01:00
jmdavis
256976dddd Removed "scheduled for deprecation" pragmas.
The pragmas have not been as effective as we might have liked, since
they only work with templates and can't tell you where in your code you
need to make changes, and they seemed to have been more annoying to
programmers than helpful, so we're going to discontinue them. We'll
leave them in for stuff that's actually been deprecated until deprecated
has been improved enough to take a message, but we'll leave "scheduled
for deprecation" messages to the documentation and changelog.
2011-10-23 23:11:17 -07:00
dsimcha
36a5a7373c Make makeIndex work with all integer widths. Also, since finite random access ranges are required to have a length now anyhow, use a more efficient method of filling the index range that doesn't require iterating over the range to be sorted. 2011-10-14 21:10:49 -04:00
Brad Roberts
ceb2539352 reduce another import (only needed for tests) 2011-10-03 00:53:02 -07:00
Andrei Alexandrescu
c7ee2f5d2d Acted on comments 2011-09-17 11:57:26 -05:00
Andrei Alexandrescu
85df36f7f4 Added multiSort 2011-09-10 20:18:53 -05:00
Andrei Alexandrescu
47db0fd804 Added multiSort 2011-09-10 18:56:13 -05:00
Andrei Alexandrescu
94cecaa6c1 Added partition3 algorithm 2011-09-10 17:55:50 -05:00
David Simcha
95ecfcfa4e Add array specialization for copy. 2011-08-20 20:48:55 -03:00
jonathan.davis
3d559d88a8 Revert "Removed new, unnecessary overload of countUntil."
This reverts commit b1765dc0cb.

Okay. So, I misread what count does and reverted my previous changes
prematurely. So I'm putting them back. count counts the number of
elements in the entire range which match the predicate, not just until
the predicate fails. So, it does _not_ do what the new overload of
countUntil does.
2011-08-15 14:27:17 -07:00
jmdavis
b1765dc0cb Removed new, unnecessary overload of countUntil.
I missed the fact that count would do what I was trying to do, as did
dsimcha when he reviewed it. I left in the improvements to countUntil's
documentation though.
2011-08-14 20:01:43 -07:00
jmdavis
105d77f58a Some improvements to std.algorithm.countUntil. 2011-08-14 04:30:27 -07:00
Dmitry Olshansky
37f224f86f cmp apparently broken for non-strings 2011-08-08 15:56:43 +04:00
Dmitry Olshansky
ca379e5993 minor fixes that get GSOC regular expressions to compile 2011-08-08 15:30:45 +04:00
dsimcha
aa2a4077df Fix a small bug in the just-merged pull request. 2011-07-12 20:49:57 -04:00
KennyTM~
5a2add5e7a Fix bug 6301.
The following functions are modified to accept ranges with iota of longs:

 * std.algorithm.map
 * std.algorithm.splitter
 * std.range.retro
 * std.range.radial
 * std.range.popBackN
 * std.range.zip
 * std.range.iota
 * std.range.moveAt
2011-07-13 06:16:20 +08:00
jmdavis
7de549c1fa Merged master into branch with changes to std.string.
Conflicts:
	changelog.dd
	std/array.d
2011-06-22 21:38:17 -07:00
jmdavis
0ca76972fe Renamed toUniLower and toUniUpper to toLower and toUpper.
toUniLower and toUniUpper are now scheduled for deprecation.
2011-06-22 20:34:08 -07:00
jmdavis
e3f7c0c288 Renamed isUniWhite to isWhite. 2011-06-22 19:44:36 -07:00
jmdavis
cfedd9feb1 Merge branch 'master' into string 2011-06-19 18:48:48 -07:00
jmdavis
2d310e5e20 Changed the names of some of the std.ascii functions.
isWhite, isLower, isUpper, toLower, and toUpper now have Ascii in their
name, which matches what std.unit does with its versions of those
functions. Hopefully, it should also reduce bugs due to using the wrong
function between the ASCII and unicode versions by making the difference
more obvious.
2011-06-19 18:41:00 -07:00
dawg
449459a25d fixup #5705
- don't do bitwise compare of structs but compare their memory locations
2011-06-20 00:36:28 +02:00
dawg
61ac0be324 fix overlapping array copy in swap #5705 2011-06-19 05:34:26 +02:00
jmdavis
fabd38658f Merged master into branch with changes for std.string. 2011-06-18 03:10:50 -07:00
David Nadlinger
ca4162b363 Fixed findSkip doc example. 2011-06-14 22:56:28 +02:00
jmdavis
dd3a0c20a2 Created std.ascii to replace std.ctype.
All of the new, properly camelcased functions in std.ctype have been
moved to std.ascii, and std.ctype has been scheduled for deprecation.
2011-06-14 04:06:54 -07:00
jmdavis
30069ea6f0 Replaced calls to std.string and std.ctype's toupper with their toUpper counterparts. 2011-06-12 16:59:52 -07:00
jmdavis
654f35a677 Replaced calls to std.string and std.ctype's tolower with their toLower counterparts. 2011-06-12 16:59:52 -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
Andrei Alexandrescu
ea8be4b3ee Merge pull request #74 from dsimcha/master
Version 2 of sort optimizations
2011-06-09 08:23:00 -07:00
dsimcha
174b705bd5 Clean up getPivot() a little. 2011-06-08 22:36:29 -04:00
jmdavis
73283a87f2 Fix test compilation error on 64-bit. 2011-06-04 23:22:48 -07:00
andralex
5b5ec9651c Fix unlisted bug in splitter revealed by TDPL example on page 8 2011-06-04 17:04:30 -05:00
jmdavis
b30a18a700 Adjustments to unit tests to reduce memory consumption. 2011-06-03 00:16:13 -07:00
jmdavis
d043103cde Fixed startsWith and endsWith with regards to the default predicate and strings.
I also fixed std.string.icmp and std.algorithm.cmp, since they had
incorrect code for checking the default predicate.
2011-06-02 21:42:24 -07:00
dsimcha
0a40daaead Optimize std.algorithm.sort: Round 2. 2011-06-02 22:20:25 -04:00