Commit graph

502 commits

Author SHA1 Message Date
The Dlang Bot
0994f692e2
Merge pull request #6711 from FeepingCreature/fix/join-unassignable-const-arrays
Fix issue 19257: std.array.join: only remove const if you can actually assign const to non-const values
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-10-03 01:06:34 +02:00
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
Mathis Beer
7a32298747 Fix issue 19257: Only remove const on .join if you can actually assign const to non-const values. 2018-09-21 11:43:40 +02:00
dukc
16881035dc Addressed Andrei's review. 2018-06-29 22:18:12 +02:00
Timothee Cour
e191a7d6a4 Fixes Issue 16745 - Add template helper for creating static arrays with the size inferred 2018-06-29 22:18:12 +02:00
Steven Schveighoffer
4fe18b9055 Fix issue 18995 - Make sure GC calls destructor when using std.array.array 2018-06-16 14:42:40 -04:00
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
Johan Engelen
fcc5ac2102
Improve documentation of std.array.replace and replaceInto
Note that `replace` doesn't have a `sink` parameter. And for `replaceInto`, `sink` must always be defined.
2018-05-30 19:41:10 +02:00
Jack Stouffer
cd197654e7 Remove template wide trusted in std.array 2018-05-07 11:03:54 -04:00
Steven Schveighoffer
adaba541eb Remove version(unittest) imports to avoid extra imports in user code. 2018-04-12 15:46:56 -04:00
Sebastian Wilzbach
4c016d129f Remove superfluous _range used to avoid auto-highlighting 2018-04-09 21:31:57 +02:00
Jack Stouffer
c3507beef4 Added params and returns to std.array functions 2018-04-05 12:32:34 -04:00
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Jack Stouffer
7beea030c7 Added writer overload of toString to Appender 2018-03-13 10:15:59 -04:00
Jack Stouffer
13cf12dfda Fix Issue 18166 - std.array.replace should be usable in @safe for dstrings 2018-03-12 10:51:24 -04:00
Jonathan M Davis
1436fca1cc Add website link to author name for Jonathan M Davis. 2018-03-10 16:31:23 -07:00
cedretaber
0ad322a75a Prefer an appender to a dynamic array 2018-03-02 13:02:12 +09:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
Sebastian Wilzbach
1956daf34f Fix Issue 18341 - Documentation for std.array.split is confusing/incorrect 2018-02-19 22:50:03 +01:00
Sebastian Wilzbach
1c4153064e Remove public ddoc comment for a private symbol 2018-02-19 19:34:24 +01:00
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
Jonathan M Davis
3385bd435a Move deprecations along. 2018-01-26 18:24:50 -07:00
Sebastian Wilzbach
41d158f4c7 Add substitute for lazy replacements 2018-01-25 09:30:33 +01:00
Sebastian Wilzbach
66b522979e Merge remote-tracking branch 'upstream/stable' into merge_stable
https://github.com/dlang/phobos/pull/6017 back to `master`

See also: https://github.com/wilzbach/git-tools
2018-01-09 19:56:59 +01:00
Sebastian Wilzbach
7c0dab8d12 Fix Issue 18215 - std.array.replace throws a range violation if the from range is longer than the array 2018-01-09 18:51:34 +01:00
The Dlang Bot
380b248b87
Merge pull request #5986 from wilzbach/replaceslice-safe
Fix Issue 18186 - std.array.replaceSlice should be usable in @safe
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2018-01-04 08:33:56 +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
Sebastian Wilzbach
b0575c8a66 @safeify more unittests II 2018-01-03 06:26:05 +01:00
Sebastian Wilzbach
84fdc2a844 Fix Issue 18186 - std.array.replaceSlice should be usable in @safe 2018-01-03 05:52:12 +01:00
John Colvin
b55c3c9806 Use named tuple for std.array.byPair 2017-11-28 17:05:03 +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
The Dlang Bot
9599832755
Merge pull request #5696 from dukc/arrayOverlaps
std.array.overlap made ctfe:able and redocumented.
merged-on-behalf-of: unknown
2017-11-17 21:00:39 +01:00
The Dlang Bot
ffee71058e Merge pull request #5693 from RazvanN7/Issue_15096
Fix Issue 15096 - std.array.array cannot be instantiated for pointers to ranges
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-09-14 02:15:30 +02:00
dukc
470149c3ad Addressed Andrei's review 2017-09-09 22:09:02 +03:00
dukc
7d8b081ff6 Addressed code reviews. 2017-08-23 19:45:14 +03:00
RazvanN7
55120ef91a Get rid of unused variables 2017-08-22 11:00:14 +03:00
RazvanN7
4bbfc438d1 std.array.array cannot be instantiated for pointers to ranges 2017-08-22 10:47:34 +03:00
dukc
dff9ffe5fd Re-enabled nothrow and removed a test with enum array to shut up CirceCI. 2017-08-21 22:04:09 +03:00
dukc
995381074b std.array.overlap made ctfe:able and redocumented. 2017-08-17 20:14:11 +03:00
RazvanN7
eadf51a841 Fix Issue 15096 - std.array.array cannot be instantiated for pointers to ranges 2017-08-16 13:21:09 +03:00
H. S. Teoh
0c0aed8662 Fix issue 17711: std.array.byPair ought to work with const AA's. 2017-08-01 16:27:27 -07:00
Jack Stouffer
f9aade3265 Removed old debug printfs 2017-07-12 10:22:05 -04:00
Sebastian Wilzbach
b6512b94f4 has_public_example: std.array 2017-07-10 02:28:26 +02:00
Jack Stouffer
2108df251c Added examples to std.array.split 2017-07-07 10:43:26 -04:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
This reverts commit 998ad51fd7.
2017-06-13 17:51:52 +00:00
Sebastian Wilzbach
998ad51fd7 Sort selective imports 2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
Sönke Ludwig
bdb626f5ff
Remove trailing whitespace. 2017-03-25 19:09:50 +01:00
Sönke Ludwig
c770fb4812
Fix issue 17251 - Appender.put doesn't accept const input range elements.
The two overloads taking an element and a const range were conflicting because canPutConstRange is overlapping the definition of canPutItem.
2017-03-25 19:04:52 +01:00