Sebastian Wilzbach
1d34a121e9
apply all-man braces in Phobos
...
// find common cases
sed -E "s/^(\s*)((if|static if|for|foreach|foreach_reverse|while|unittest|switch|else|version).*)\s*\{$/\1\2\n\1{/" -i **/*.d
// catch else-if
sed -E "s/^(\s*)} (else static if| if|else if|else)(.*)\s*\{$/\1}\n\1\2\3\n\1{/" -i **/*.d
// remove created trailing whitespace
sed -i 's/[ \t]*$//' **/*.d
2016-05-31 13:07:53 +02:00
anonymous
ef9722928c
XREF_PACK_NAMED -> REF_ALTTEXT (sed)
...
Done by:
arg='\s*([^(),]*)'
from='\$\(XREF_PACK_NAMED\s'$arg','$arg','$arg','$arg'\)'
to='$(REF_ALTTEXT \4, \3, std,\1,\2)'
(find . -type f -name "*.d" -print0; \
find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r "s/$from/$to/g"
2016-05-27 21:32:46 +02:00
anonymous
d648f9320e
XREF_PACK -> REF (sed)
...
Done by:
from='\$\(XREF_PACK\s+([^(),]*),\s*([^(),]*),\s*([^(),]*)\)'
to='$(REF \3, std,\1,\2)'
(find . -type f -name "*.d" -print0; \
find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r "s/$from/$to/g"
2016-05-27 21:32:46 +02:00
anonymous
764caefa36
XREF -> REF (sed)
...
Done by:
(find . -type f -name "*.d" -print0; \
find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r \
's/\$\(XREF\s+([^(),]*),\s*([^(),]*)\)/$(REF \2, std,\1)/g'
2016-05-27 21:32:46 +02:00
Sebastian Wilzbach
614294cd70
remove whitespace in ddoc output of std/algorithm
2016-05-25 03:57:01 +02:00
Vladimir Panteleev
38a6370788
Merge pull request #4303 from wilzbach/mref_phobos
...
use mref macro instead of link2
2016-05-24 03:12:08 +03:00
Sebastian Wilzbach
89a2dd5f11
use mref macro instead of link2
2016-05-16 03:30:08 +03:00
Sebastian Wilzbach
b8f17e2531
std.algorithms: document public methods
2016-05-12 17:53:03 +03:00
Dmitry Olshansky
18dfffa07d
Merge pull request #4221 from wilzbach/min_max_element
...
std.algorithm: {min,max}Element for a single range
2016-04-28 17:13:24 +04:00
Sebastian Wilzbach
e3d0aa9724
std.algorithm: {min,max}Element for a single range
2016-04-27 04:40:11 +03:00
Sebastian Wilzbach
5a8988c149
style fix: add space after for operator
2016-04-27 02:04:02 +03:00
Sebastian Wilzbach
3d67cd228c
style fix: space between operators
2016-04-26 22:26:20 +03:00
Ilya Yaroshenko
95ea08d50b
fix imports 2
2016-04-07 15:54:04 +02:00
Jakob Øvrum
22a90f904e
Tweak std.algorithm.comparison.either docs and add to package doc table
2016-03-06 22:45:06 +09:00
Steven Schveighoffer
b0acb7a394
Fix remaining import deprecation messages
2016-02-22 16:03:12 -05:00
Andrei Alexandrescu
168d96dfd7
Merge pull request #3395 from nordlow/either-and-every
...
Add new algorithm: either()
2015-10-29 16:57:59 -04:00
Per Nordlöw
c46a463628
Add algorithm either() and trait allSatisfy()
2015-10-29 21:11:05 +01:00
Martin Nowak
0e95f6723a
Merge remote-tracking branch 'upstream/stable' into merge_stable
2015-10-27 15:55:59 +01:00
Martin Nowak
0a9f9ccc3e
fixup for string-like overloads
...
- undocument overloads for aliased/static strings
- make std.traits helpers phobos internal
- rename isStringLike to isConvertibleToString for clearer documentation
- rename peelStringLike to convertToString
- fix a few staticMap!(selectString) uses in std.path
2015-10-26 19:50:08 +01:00
Martin Nowak
f8af54dce7
fix levenshteinDistance for string-like types
2015-10-25 19:06:01 +01:00
Martin Nowak
1050e282d5
fix casing for Flag name
2015-10-22 14:58:54 +02:00
Dragos Carp
d698887729
Remove obsolete TypeTuple references
...
Replace following names:
std.typetuple -> std.meta
TypeTuple -> AliasSeq
ParameterTypeTuple -> Parameters
FieldTypeTuple -> Fields
std.traits requires more work than search/replace and is left unchanged.
2015-10-13 20:37:44 +02:00
Steven Schveighoffer
403947bede
Merge pull request #3574 from JackStouffer/issue12752
...
Fixed Issue 12752: std.algorithm.isPermutation
2015-09-17 16:29:44 -04:00
Jack Stouffer
6daa283986
fixed issue 12752
2015-09-17 13:03:09 -04:00
H. S. Teoh
6452bf89e6
Turn min() unittest into ddoc'd example.
2015-09-08 22:00:25 -07:00
H. S. Teoh
f827ffaa24
Add Params:, Returns: to std.algorithm.comparison.min.
2015-09-08 21:56:21 -07:00
Luís Marques
4b7976bc27
Fix Issue 14884
2015-08-10 14:55:21 +01:00
k-hara
4ceb3ab159
Supplemental fix for issue 14747 - remove unreachable statements
2015-07-01 00:08:20 +09:00
Robert burner Schadek
c49a81e627
updates alias syntax inside algo comp
...
remove extra space
2015-05-28 19:35:46 +02:00
Walter Bright
d9a9826e55
Revert "Introducing std.meta package"
2015-05-06 14:36:45 -07:00
Dicebot
a76d90c927
Phobos should only mention tuple as std.typecons.Tuple
2015-05-05 22:22:11 +03:00
Dicebot
82f54a38d3
TypeTuple -> MetaList inside Phobos
2015-05-05 22:22:11 +03:00
Dicebot
73f773838d
import std.typetuple -> import std.meta
2015-05-05 22:22:10 +03:00
Martin Nowak
41d1162619
Merge pull request #3112 from andralex/between
...
Testing whether a few given values are ordered
2015-04-19 22:04:42 +02:00
Walter Bright
6793ca3207
remove gc allocation from std.algorithm.levenshteinDistance()
2015-04-10 16:03:41 -07:00
Andrei Alexandrescu
5ca24b8392
Introducing ordered()
2015-03-26 20:59:23 -07:00
David Nadlinger
ec62f933ab
Merge pull request #3068 from burner/algo_cmp_castSwitch
...
std.algo.cmp.castSwitch docu
2015-03-23 09:44:50 +01:00
Andrei Alexandrescu
37a88bfcf9
Merge pull request #3077 from burner/algo_cmp_max
...
std.algo.cmp.max docu
2015-03-22 22:54:08 -07:00
Andrei Alexandrescu
27fc16df0d
Merge pull request #3065 from burner/algorithm_comparision_dscanner_suggestions
...
algorithm_comparison maintenance
2015-03-22 22:53:07 -07:00
Robert burner Schadek
b720202687
std.algo.cmp.castSwitch
...
Params and Returns
fix
switch
review fix
a new try
2015-03-23 00:26:06 +01:00
Robert burner Schadek
0634a22012
std.algo.cmp.max docu
...
* Params
* Returns
quickfur
review fixes
comma
quickfur
klickverbot
2015-03-21 13:49:55 +01:00
H. S. Teoh
25b769ceff
Merge pull request #3070 from burner/algo_cmp_clamp
...
std.algo.cmp.clamp docu
2015-03-20 08:59:14 -07:00
H. S. Teoh
e0518c68d2
Merge pull request #3071 from burner/algo_cmp_cmp
...
std.algo.cmp.cmp doco
2015-03-20 08:03:57 -07:00
Robert burner Schadek
fbf42b4b73
std.algo.cmp.clamp
...
* Returns and Params for clamp
another fix
quickfur
review fixes
underscore
2015-03-20 12:53:57 +01:00
Robert burner Schadek
3a468b470f
* selective import
...
* some symbols where used only private
* missing ditto
whitespace
JakobOvrum
review quickfur
2015-03-20 10:37:55 +01:00
Robert burner Schadek
d67ee4ee1e
std.algo.cmp.cmp doco
...
Params, Returns
Also removed some incomplete sentences
quickfur
review fixes
2015-03-20 10:27:15 +01:00
H. S. Teoh
081ae03387
Merge pull request #3075 from burner/algo_cmp_levenshtein
...
std.algo.cmp.levenshtein docu
2015-03-19 12:26:19 -07:00
H. S. Teoh
a54a3e2252
Merge pull request #3074 from burner/algo_cmp_equal
...
std.algo.cmp.equal docu
2015-03-19 11:46:11 -07:00
Robert burner Schadek
078b7b15e5
std.algo.cmp.equal
...
* Params
* Returns
quickfur
2015-03-19 16:44:11 +01:00
Robert burner Schadek
8450127bd4
std.algo.cmp.levenshtein
...
* Params
* Returns
quickfur
2015-03-19 16:42:44 +01:00