Commit graph

109 commits

Author SHA1 Message Date
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
Sebastian Wilzbach
ee1e261992 std.algorithm.searching: move takeWhile line to the current definition 2017-02-28 21:48:38 +01:00
Jack Stouffer
f2b5834172 Linked to the definition of forward and bidirectional ranges where they're mentioned in std.algorithm 2017-02-26 11:44:55 -05:00
Jack Stouffer
7d4ac19030 Linked to the definition of input ranges where they're mentioned 2017-02-25 19:18:54 -05:00
Sebastian Wilzbach
a2c6398332 Automatically add spaces to binary operators (==)
command:

sed -E "s/([[:alnum:]]) == ([[:alnum:]])/\1 == \2/g" -i **/*.d
sed -E "s/([[:alnum:]])== ([[:alnum:]])/\1 == \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) ==([[:alnum:]])/\1 == \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
a36cec8686 DScanner: automatially set all unattributed unittests to @safe or @system 2017-02-22 05:42:04 +01:00
Sebastian Wilzbach
805c720595 Unify Phobos by ensuring there's always a space after cast(...)
Command:

sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
2017-02-21 16:40:20 +01:00
Sebastian Wilzbach
5521541032 Unify assert style to have no spaces between the first brace
Application of:

sed -E "s/assert +\(/assert(/" -i **/*.d
2017-02-21 15:27:15 +01:00
Sebastian Wilzbach
87dec58a41 DStyle: Constraints on declarations should have the same indentation level 2017-02-17 07:36:23 +01:00
Sebastian Wilzbach
8d5b051235 Provide reference to other common names 2017-02-16 02:57:51 +01:00
LemonBoy
ccfd30019a Cast a void pointer to char* before subtracting it 2017-01-15 15:37:48 +01:00
Sebastian Wilzbach
d8c5437d36 Add new min/maxIndex symbols to booktables 2016-12-21 10:51:16 +01:00
Sebastian Wilzbach
e2025c2c34 Add public examples to std.algorithm 2016-12-20 04:14:10 +01:00
Sebastian Wilzbach
f3a840144a Merge pull request #4921 from RazvanN7/Issue_8573
Issue 8573 - A simpler Phobos function that returns the index of the …
2016-12-16 16:16:48 +01:00
RazvanN7
d2c7d3761b Issue 8573 - A simpler Phobos function that returns the index of the mix or max item
Issue 8573 - A simpler Phobos function that returns the index of the mix or max item

added some review fixes

fixed an issue with a mutable variable

Applied review feedback

Renamed functions to minIndex and maxIndex + used sizediff_t for return value type

Updated function so that it works optimally even for lazy ranges and algorithms

Reverted to having only copyable elements in ranges

Added more unittests; implemented an array path; fixed documentation

Squashed commits
2016-12-16 11:11:07 +02:00
Sebastian Wilzbach
cc7f125ed1 Add missing imports to public unittests 2016-12-15 23:23:35 +01:00
Sebastian Wilzbach
f0c5a9fad6 Follow-up style fixes for December 2016-12-08 12:32:24 +01:00
RazvanN7
ff4b6b9e65 Solved a minor bug 2016-12-06 16:01:21 +02:00
RazvanN7
2e896520c9 Applied review feedback, fixed some bugs + added unit tests for them 2016-12-06 13:52:24 +02:00
RazvanN7
60396a1d67 Fixed some issues 2016-12-06 13:19:57 +02:00
RazvanN7
71ffa25d8a added a comment 2016-12-06 13:19:57 +02:00
RazvanN7
e4b82503b8 Issue 8829 - std.algorithm.find fails to take advantage of SortedRange 2016-12-06 13:19:57 +02:00
RazvanN7
752b2ca210 Issue 8829 - std.algorithm.find fails to take advantage of SortedRange 2016-12-06 13:19:57 +02:00
RazvanN7
d6519853e1 Issue 8829 - std.algorithm.find fails to take advantage of SortedRange 2016-12-06 13:19:57 +02:00
RazvanN7
8b29f206ae Issue 8829 - std.algorithm.find fails to take advantage of SortedRange 2016-12-06 13:19:57 +02:00
Alexandru Razvan Caciulescu
946a46774c Fix Issue 8087 - Improve clarity of std.algorithm documentation 2016-10-31 08:17:06 +02:00
Nick Treleaven
ae6a8031cf Add findSplitBefore example with an element using only()
Also remove typo.
2016-10-06 12:05:03 +01:00
e-y-e
befa0bfb6e Updated Flag uses to Yes/No structs 2016-09-29 14:45:20 +01:00
e-y-e
ad2563f8e7 Change yes/no enum OpenRight to a Flag 2016-09-23 10:08:46 +01:00
Walter Bright
9cfe39bfe2 searching.d: add scope annotations 2016-09-06 02:33:12 -07:00
Jack Stouffer
268fa2538d Add some const and immutable to std.algorithm 2016-07-01 17:11:09 -04:00
Andrei Alexandrescu
e59c06b410 Merge pull request #4431 from wilzbach/document_std_algorithm_test
add external imports to documented unittests in std.algorithm
2016-06-18 06:38:44 -04:00
Andrei Alexandrescu
ac9c93cb9e Merge pull request #4315 from wilzbach/algorithms_private_cleanup
std.algorithm: set accidentally exposed methods to private
2016-06-18 04:27:58 -04:00
Sebastian Wilzbach
ec47ac4224 Remove the WEB macro in favor of HTTP
replacement: sed 's/\$(WEB/\$(HTTP/g' -i **/*.d
2016-06-16 00:14:51 +02:00
Sebastian Wilzbach
8b60ec24b0 add external imports to documented unittests in std.algorithm 2016-06-15 03:42:28 +02:00
Sebastian Wilzbach
823203fc4f fix slipped through style violations 2016-06-05 01:30:55 +02:00
Sebastian Wilzbach
0c100a7b5a std.algorithm: set accidentally exposed methods to private 2016-06-04 16:13:07 +02:00