Commit graph

145 commits

Author SHA1 Message Date
Sebastian Wilzbach
d9830b739e Fix DScanner warnings 2018-02-10 22:46:32 +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
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
ba7af41793 Group documentation in std.algorithm.searching + small fixes 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
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
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
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
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
Sebastian Wilzbach
8227e00cd9 Manual fixup 2017-12-29 01:48:45 +01:00
Sebastian Wilzbach
fc0c29f3a2 Markdownify std.algorithm
Done with: https://github.com/wilzbach/dscanner-fix/blob/master/d_code_markdown.d
2017-12-29 01:17:40 +01:00
Sebastian Wilzbach
415728e086 Remove std.stdio debug output 2017-12-29 00:20:07 +01:00
Sebastian Wilzbach
1d02ff4877 Fix typo 2017-12-29 00:19:59 +01:00
Sebastian Wilzbach
60fba5706d
Merge pull request #5576 from wilzbach/algo-skipover
[RFC] Make std.algorithm.searching.skipOver an eponymous template to allow partial instantiation
2017-12-02 14:31:26 +01:00
Sebastian Wilzbach
df6365092a Replace body keyword with its replacement: do
Automatic replacement with

    sed -i "s/^\([ ]*\)body/\1do/" -i **/*.d
2017-11-20 15:33:52 +01:00
MetaLang
67e853607e
More precisely define what this overload returns 2017-11-19 00:33:35 -04:00
MetaLang
dd70c998f7
Change comment as requested by Andrei 2017-11-19 00:31:13 -04:00
Sebastian Wilzbach
42236b711d Provide pred-only overload to std.algorithm.searching.findSkip 2017-11-17 17:45:46 +01:00
MetaLang
a9b395d503 Fix tabs 2017-10-01 22:16:41 -03:00
MetaLang
99def7bc97 Change the findSplit example into a documented unit test 2017-10-01 22:11:51 -03:00
Jon Degenhardt
30c280156c Issue 17385: Update findSplit doc so example compiles. 2017-10-01 13:49:13 -07:00
Basile Burg
722ecd878c
fix issue 12470 - std.array.replace does not work with inout(char)[] 2017-09-13 20:08:01 +02:00
RazvanN7
3a4f83577e Get rid of unused variables in std/algorithm 2017-08-02 17:30:16 +03:00
Sebastian Wilzbach
7fb31acf4f Add unittest for partial instantiation 2017-07-08 02:36:37 +02:00
Sebastian Wilzbach
4a2a2da607 Make std.algorithm.searching.skipOver an eponymous template 2017-07-08 02:36:27 +02:00
Sebastian Wilzbach
a6dd949717 Unify needle overloads of std.algorithm.searching.find 2017-07-08 00:24:44 +02:00
The Dlang Bot
37d15a89c5 Merge pull request #5543 from RazvanN7/Issue_17525
Fix Issue 17525 - std.algorithm.searching.skipOver should have a single argument with pred version
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-07-07 08:35:05 +02:00
RazvanN7
734641b4df Optimize count with an overload which calls walkLength 2017-07-06 22:05:20 +03:00
Sebastian Wilzbach
16b9188b4a Fix deprecations 2017-07-05 18:28:51 +02:00
RazvanN7
1d1b42f413 Fix Issue 17525 - std.algorithm.skipOver should have a single argument with pred version 2017-07-05 12:56:23 +03:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
The Dlang Bot
bd80096e44 Merge pull request #5422 from JackStouffer/endsWith-decoding
Removed auto-decoding from the single needle version of endsWith
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-05-25 21:53:15 +02:00
Jack Stouffer
825ad38183 Removed auto-decoding from the single needle version of endsWith 2017-05-24 09:27:41 -04:00
Jack Stouffer
99659e6076 Removed unnessesary auto-decoding from the single argument version of startsWith 2017-05-24 09:14:31 -04:00
The Dlang Bot
8146e88326 Merge pull request #5210 from wilzbach/std-algorithm-disable-quick-index
std.algorithm: remove quickIndex, fix outdated book tables & HTML links
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-03-03 15:35:24 +01:00
Sebastian Wilzbach
169c82c938 std.algorithm.searching: no mapping-specialization for extremum (#5001)
std.algorithm.searching: no mapping-specialization for extremum
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-03-03 05:00:49 +01:00
Jack Stouffer
e554764c01 Merge pull request #5216 from wilzbach/unluckily-phobos
Replace LUCKY links with actual links
2017-03-01 15:17:19 -05:00
Jack Stouffer
2e90b8ba16 Remove unused debug writelns in std.algorithm 2017-03-01 09:47:27 -05:00
Sebastian Wilzbach
b3bf38e6d6 std.algorithm: remove quickIndex, fix outdated book tables & HTML links 2017-03-01 03:59:48 +01:00
Sebastian Wilzbach
d548e8830a Replace LUCKY links with actual links 2017-02-28 23:46:54 +01:00