The Dlang Bot
8d525413a7
Merge pull request #6151 from wilzbach/fix-dscanner
...
Fix all DScanner warnings + use -return-exit-code re-enable it
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-02-13 00:25:26 +01:00
The Dlang Bot
15da6f6aca
Merge pull request #6132 from JackStouffer/startswith-ascii
...
Remove auto-decoding from startsWith when Needles are all narrow chars
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-02-12 23:13:00 +01:00
Jack Stouffer
a239bd1493
Remove auto-decoding from startsWith when Needles are all narrow chars
2018-02-12 15:34:14 -05:00
The Dlang Bot
2645dba46c
Merge pull request #6162 from wilzbach/fix-11555
...
Fix Issue 11555 - std.algorithm.reverse should return the just-reversed range
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-02-11 18:58:27 +01:00
Sebastian Wilzbach
f7b69b2f0a
Unify all reverse overloads into one
2018-02-11 18:27:59 +01:00
Sebastian Wilzbach
3acaa9d53a
Fix Issue 11555 - std.algorithm.reverse should return the just-reversed range
2018-02-11 16:46:19 +01:00
The Dlang Bot
508337e0bb
Merge pull request #6150 from wilzbach/splitter-back
...
Issue 8166 - remove dead _backLength code in std.algorithm.splitter
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-02-11 02:36:47 +01:00
Sebastian Wilzbach
d9830b739e
Fix DScanner warnings
2018-02-10 22:46:32 +01:00
Sebastian Wilzbach
4775a5e357
Fix Issue 11084 - std.algorithm.scan
2018-02-10 21:32:11 +01:00
Sebastian Wilzbach
c7b6aabfea
Issue 8166 - retro() of splitter() too
2018-02-10 02:25:49 +01:00
The Dlang Bot
9b03a10e5e
Merge pull request #6120 from wilzbach/fix-typo
...
Fix typo in the example title of std.algorithm.substitute
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2018-02-04 17:52:33 +01:00
Sebastian Wilzbach
32a6abd709
Fix typo in the example title of std.algorithm.substitute
2018-02-03 21:03:20 +01:00
Jack Stouffer
a6688108a1
Simplify the example for find
2018-02-02 09:13:39 -05:00
The Dlang Bot
2ff0a05ca0
Merge pull request #6090 from wilzbach/algo-doc-grouping
...
Group documentation in std.algorithm
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-02-02 14:51:36 +01:00
Jack Stouffer
18cbb29b04
Replaced version(unittest) blocks with version(StdUnittest)
2018-02-01 19:56:59 -05:00
The Dlang Bot
f5cd76d113
Merge pull request #6097 from wilzbach/remove-stl-references
...
Remove references to STL
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-30 22:08:54 +01:00
Jack Stouffer
7b3554b793
Merge pull request #6098 from JackStouffer/balancedParens
...
Removed auto-decoding from std.algorithm.searching.balancedParens
2018-01-30 12:14:27 -05:00
Jack Stouffer
da731e632a
Merge pull request #6093 from n8sh/algorithm-startswith-length
...
Fix Issue 18328 - algorithm.startsWith can compare narrow string leng…
2018-01-30 10:30:38 -05:00
Jack Stouffer
db1e5f80fb
Removed auto-decoding from std.algorithm.searching.balancedParens
2018-01-30 10:28:07 -05:00
Sebastian Wilzbach
7fb3d4249f
Remove references to STL
2018-01-30 16:08:20 +01:00
Sebastian Wilzbach
ba7af41793
Group documentation in std.algorithm.searching + small fixes
2018-01-30 15:25:38 +01:00
Sebastian Wilzbach
31cf21bb86
Group documentation in std.algorithm.mutation
2018-01-30 15:25:38 +01:00
Nathan Sashihara
361a5c55cc
Fix Issue 18329 - std.algorithm.startsWith & endsWith can sometimes statically determine decoding unnecessary
2018-01-29 21:44:59 -05:00
Andrei Alexandrescu
0c31e41aa6
Update searching.d
2018-01-29 21:36:46 -05:00
Nathan Sashihara
b4ad39a8b6
Fix Issue 18328 - algorithm.startsWith can compare narrow string lengths in more circumstances
2018-01-29 21:25:01 -05:00
Jacob Carlborg
83adbc3079
Revert "findSplit: return named tuples instead of an anonymous tuple"
2018-01-27 16:23:24 +01:00
Andrei Alexandrescu
ee034e203a
Merge pull request #5596 from wilzbach/substitute
...
Add substitute for lazy replacements
2018-01-25 22:25:53 -05:00
Sebastian Wilzbach
15835daa7c
Fix DAutotest
2018-01-25 09:32:54 +01:00
Sebastian Wilzbach
33cf85fdb4
Address review
2018-01-25 09:30:33 +01:00
Sebastian Wilzbach
41d158f4c7
Add substitute for lazy replacements
2018-01-25 09:30:33 +01:00
Andrei Alexandrescu
2174695151
Merge pull request #6056 from n8sh/algorithm-cmp
...
Fix Issue 18280 - std.algorithm.comparison.cmp for non-strings should call opCmp only once per item pair
2018-01-24 13:05:24 -05:00
The Dlang Bot
c07b09e214
Merge pull request #5968 from wilzbach/searching-findSplit
...
findSplit: return named tuples instead of an anonymous tuple
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-24 17:10:43 +01:00
Nathan Sashihara
7f59e5ad52
Fix Issue 18280 - std.algorithm.comparison.cmp for non-strings should call opCmp only once per item pair
...
split cmp into two overloads per @andralex
https://github.com/dlang/phobos/pull/6056#pullrequestreview-90687092
Minor adjustments, again
cmp should return auto and let opCmp drive
https://github.com/dlang/phobos/pull/6056#issuecomment-359665184
Fix Issue 18285 - std.algorithm.comparison.cmp for strings with custom predicate compares lengths wrong
Test std.algorithm.comparison.cmp when opCmp returns float
Promotions should not use cast
Optimize cmp's endgame
There are some redundant tests when the end of the ranges is reached. Eliminated that, and improved threeWayByPred.
Fix Issue 18286 - std.algorithm.comparison.cmp for string with custom predicate fails if distinct chars can compare equal
Fix Issue 18288 - std.algorithm.comparison.cmp for wide strings should be @safe
re-apply remove cast in promotions
2018-01-23 19:54:58 -05:00
Sebastian Wilzbach
651c30207e
std.algorithm.searching.findSplit
returns a named tuple
...
- `std.algorithm.searching.findSplit`
- `std.algorithm.searching.findSplitBefore`
- `std.algorithm.searching.findSplitAfter`
will return a named tuple tuple instead of an anonymous tuple:
2018-01-17 12:50:00 +01:00
The Dlang Bot
fa0a6192a1
Merge pull request #5951 from acehreli/TaskPool_fold
...
Fix Issue 18096 - Add fold() to std.parallelism
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-01-17 06:05:48 +01:00
The Dlang Bot
17fbc92d59
Merge pull request #6032 from RazvanN7/Issue_18230
...
Fix Issue 18230 - multiwayUnion sets wrong pred lambdas
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-01-16 23:10:54 +01:00
Andrei Alexandrescu
6465d6ea5a
Add duplicates to test data
2018-01-16 12:10:13 -05:00
Andrei Alexandrescu
1ed73fa969
Use UFCS throughout
2018-01-16 12:09:24 -05:00
Martin Nowak
3a8300a9f6
Merge remote-tracking branch 'upstream/stable' into merge_stable
2018-01-16 04:59:35 +01:00
growlercab
347b5a3164
Update searching.d
...
Minor change to minElement example to remove ambiguity between min element value and min element index.
2018-01-16 02:02:31 +01:00
RazvanN7
a4cd3a6542
Fix Issue 18230 - multiwayUnion sets wrong pred lambdas
2018-01-15 16:07:18 +02:00
The Dlang Bot
f3189822ab
Merge pull request #5989 from wilzbach/static-foreach
...
Use static foreach in Phobos
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-01-03 19:05:07 +01:00
Sebastian Wilzbach
7de3787876
Use static foreach in Phobos
2018-01-03 17:30:11 +01:00
The Dlang Bot
db2d2413b4
Merge pull request #5970 from wilzbach/markdownify-algorithm
...
Markdownify std.algorithm
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-03 15:44:56 +01:00
The Dlang Bot
5c37fa2046
Merge pull request #5985 from wilzbach/small-safe-2
...
@safeify more unittests II
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2018-01-03 10:39:35 +01:00
Sebastian Wilzbach
b0575c8a66
@safeify more unittests II
2018-01-03 06:26:05 +01:00
Martin Nowak
ac821be1de
Merge remote-tracking branch 'upstream/stable' into merge_stable
2017-12-30 19:15:43 +01:00
Dragos Carp
2b5d643337
Fix 'among' doc link in std.algorithm.searching
2017-12-30 02:23:32 +01:00
Ali Çehreli
fec204ead8
Merge branch 'master' of github.com:dlang/phobos into TaskPool_fold
2017-12-28 22:53:51 -08:00
Sebastian Wilzbach
8227e00cd9
Manual fixup
2017-12-29 01:48:45 +01:00