Commit graph

520 commits

Author SHA1 Message Date
Walter Bright
7fd0732d75 make std.array toString() @safe 2016-06-25 02:29:33 -07: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
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
Martin Nowak
26ccb97965 fix variable name in replaceInto example 2016-05-14 21:42:25 +02:00
Jack Stouffer
3df9e2719e Fixed long lines in std/array.d 2016-05-10 20:51:39 -04:00
Jonathan M Davis
43227b12c4 Move some deprecations along. 2016-05-05 12:44:06 +02:00
Sebastian Wilzbach
3d67cd228c style fix: space between operators 2016-04-26 22:26:20 +03:00
Andrei Alexandrescu
0fa6a50081 More detailed import 2016-04-24 15:29:14 -04:00
Andrei Alexandrescu
9bf145236b Simplify overlap 2016-04-24 15:29:14 -04:00
Yazan Dabain
9887af3fe6 Fix some imports 2016-04-12 22:15:09 +03:00
Ilya Yaroshenko
95ea08d50b fix imports 2 2016-04-07 15:54:04 +02:00
Jonathan M Davis
c3cd933131 Moving deprecations along.
This is mostly just putting dates on existing deprecations that were
missing dates, but it does remove a few things that have been deprecated
long enough to be removed.
2016-02-10 16:43:25 -08:00
Jakob Øvrum
1be7e4650a Clarify std.array.assocArray docs 2016-01-08 02:06:36 +01:00
Benjamin L. Merritt
5f08c058ab Changed "Examples:" in Ddoc to "Example:" 2015-12-17 18:32:41 -08:00
Dragos Carp
75cbbef0ab Add asserts for the "compiles" tests 2015-11-16 03:04:07 +01:00
Dragos Carp
eb293b5063 Fix issue 15320 2015-11-13 03:45:29 +01:00
Brian Schott
67c95e6de2 Merge pull request #3715 from dcarp/AliasSeq
Rename obsolete TypeTuple to AliasSeq
2015-10-16 20:59:56 -07:00
Vladimir Panteleev
82590904f7 fix Issue 15208 - Eradicate all uses of "Enforcement failed" in Phobos 2015-10-15 23:44:44 +00: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
k-hara
8e11f0ebe2 fix Issue 10895 - incorrect std.array.join behavior with array of string-like class using alias this 2015-09-03 17:54:40 +09:00
David Soria Parra
f5fb09c91e Remove dead insert() comment
The comment about insert() is from 2011. insert() is long gone and insertInPlace
is the standard. No need to keep the old commented-out function around.
2015-08-29 02:10:24 -07:00
Dmitry Olshansky
a336f3c7bc Merge pull request #3497 from aG0aep6G/hasMember
std.traits.hasMember: just forward to __traits(hasMember, ...)
2015-08-27 09:29:55 +03:00
H. S. Teoh
41abc0c5ec Add sameHead/sameTail to function list in docs. 2015-08-23 21:24:35 -07:00
k-hara
9d24ef3500 Add unittest for the fixed unlisted bug 2015-08-20 09:10:30 +09:00
k-hara
ea811edab9 Supplemental fix for issue 14925 - remove redundant conditions 2015-08-20 09:09:29 +09:00
Steven Schveighoffer
3f8b910e2c Fix issue 14925 -- merge overloads of replaceInPlace to avoid ambiguity
with template instantiation. Also, preclude narrow strings and other
invalid combinations (e.g. long[] and int[]) from being selected for
optimized path.
2015-08-19 11:45:02 -04:00
anonymous
dd2161705a std.traits.hasMember: just forward to __traits(hasMember, ...)
This way opDispatch'ed members are recognized.

Fixes issue 14605 - RefAppender fails isOutputRange.
2015-07-16 21:29:46 +02:00
anonymous
b28962635f fix package XREFs
Also add escaping underscores in some places, and rewrap to 80 columns
where touching anyway.
2015-06-15 22:30:41 +02:00
Robert Schadek
1d251a5d78 Merge pull request #3147 from aceawan/add_example_sameHead
Add a use example to sameHead in array.d
2015-05-23 12:46:19 +02:00
Walter Bright
d9a9826e55 Revert "Introducing std.meta package" 2015-05-06 14:36:45 -07:00
Dicebot
7970fcc748 Don't use fqn for any/all
In most cases it resolves unambiguosly
2015-05-05 22:22:11 +03:00
Dicebot
1c9ae027ef Rename old std.typetuple symbols inside Phobos
staticIndexOf -> indexOf
allSatisfy -> all
anySatisfy -> any
staticMap -> Map
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
Tomoya Tanjo
1558213058 Make std.array.replicate for most cases @safe 2015-04-30 15:44:42 +09:00
Tomoya Tanjo
f2e2710bc2 Fix the comment in unittest for std.array.Appender 2015-04-07 15:56:05 +09:00
aceawan
827059f522 add an example for replaceInto. 2015-04-06 18:36:00 +02:00
aceawan
7c96dfa519 Replace some tabs indentation with 4 spaces indentation 2015-04-06 18:00:53 +02:00
aceawan
e49c7c5060 Add an example for replaceSlice function and split an assert in two lines in the split's example. 2015-04-06 17:56:58 +02:00
aceawan
afb1a3d2df Add some examples to the split function 2015-04-06 11:13:27 +02:00
aceawan
a5621a2271 Add some examples to the replicate function 2015-04-06 11:05:29 +02:00
aceawan
c875216da7 Add an example for the sameTail function. 2015-04-06 10:53:18 +02:00
aceawan
68ad6f1781 Add a use example to sameHead in array.d 2015-04-04 22:18:59 +02:00
Steven Schveighoffer
0489d82a1f Remove unneeded @disable clear now that clear is removed from object.di 2015-04-01 13:21:55 -04:00
Steven Schveighoffer
5615d4212a Remove unit test that checks for the removal of object.clear 2015-03-31 08:38:25 -04:00
Martin Nowak
ef0bceb30e improve diagnostic for assocArray
- turn constraints into static asserts
2015-03-14 15:08:33 +01:00
sinkuu
43e56d57a5 Fix Issue 14230 - std.array.join misses the first element which is empty string 2015-02-28 17:59:16 +09:00