Commit graph

499 commits

Author SHA1 Message Date
monarchdodra
3e97991dc7 Fixup [un|minimally]InitializedArray
Solves:
* http://d.puremagic.com/issues/show_bug.cgi?id=9803 : minimallyInitializedArray fails past "1D" depth
* http://d.puremagic.com/issues/show_bug.cgi?id=10637 : minimallyInitializedArray: postblit on non-initialized
* http://d.puremagic.com/issues/show_bug.cgi?id=10847 : uninitializedArray accepts arguments which make it fail internally

Improvements also include:
* Documented as nothrow, and weakly pure.
* Works with 0 args (returns an empty slice).
* All args are pre-emptivelly changed to size_t, to avoid template over-instantiation.
2014-02-13 22:19:18 +01:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
Vladimir Panteleev
ce7d4ed26a std.array: Allow joining constant arrays 2014-01-16 14:33:22 +00:00
Daniel Murphy
19ee4d3851 Merge pull request #1843 from monarchdodra/whiteTrim
Remove trailing white and tabs
2014-01-12 05:14:42 -08:00
Brad Anderson
515de4f2a2 Document that replaceSlice returns a new array 2014-01-10 21:05:12 -07:00
monarchdodra
44fe3d88f7 Remove tabs 2014-01-08 08:37:52 +01:00
Andrei Alexandrescu
06352bc88f Fix Issue 6730 2013-12-29 14:26:32 -08:00
Tomoya Tanjo
d9dc269747 Make std.array.insertInPlace @safe for some cases 2013-12-16 20:56:23 +09:00
Daniel Murphy
1818d190b5 More implicit array to bool 2013-12-15 19:55:34 +11:00
Daniel Murphy
522b551ccf Don't call dup on a type 2013-11-18 22:09:27 +11:00
Jonathan M Davis
d408470f8f Merge pull request #1502 from monarchdodra/splitterPred
Fix splitter!pred and splitter(string)
2013-11-17 18:10:03 -08:00
monarch dodra
ec5e25b796 Merge pull request #1695 from rainers/issue_11528
fix issue 11528: crashes or undefined behaviour of appender's first allocation
2013-11-17 04:13:50 -08:00
Rainer Schuetze
cc548fe9cb fix appenderNewCapacity for curLen == 0, start with minimum of 8. 2013-11-17 12:11:12 +01:00
monarchdodra
4583a87031 Correct english in documentation 2013-11-14 21:53:11 +01:00
monarchdodra
f0a7d82e30 more splitter unittests 2013-11-13 22:36:39 +01:00
monarchdodra
7c79bfa677 Fix remaining splitter issues 2013-11-13 22:22:05 +01:00
monarchdodra
60a54e7af5 Fixes splitter!pred and splitter(string) 2013-11-13 22:22:05 +01:00
monarchdodra
b207491613 fix reg in appender 2013-11-08 20:47:55 +01:00
David Nadlinger
52c6ecf427 Merge pull request #1655 from monarchdodra/arrayEmplace
Remove conditional emplace call
2013-10-29 08:18:38 -07:00
monarch dodra
99100cf9ac Remove explicit pure 2013-10-29 10:58:40 +01:00
Andrei Alexandrescu
f9712aae6f Merge pull request #1529 from monarchdodra/appenderEmplace
Fix appender form elaborate assign types
2013-10-26 20:31:49 -07:00
Andrej Mitrovic
6c794801c4 Merge pull request #1477 from monarchdodra/splitwhite2
std.array.split Unicode correctness
2013-10-24 14:25:12 -07:00
Andrej Mitrovic
693ccb171d Merge pull request #1410 from monarchdodra/AppenderCapacity
Appender.reserve: Overzealous and wrong
2013-10-23 18:33:24 -07:00
monarchdodra
e5c936adfb Remove conditional emplace call 2013-10-20 16:04:09 +02:00
David Nadlinger
3253eb6d3b Merge pull request #1528 from monarchdodra/arrayEmplaceFixup
Fixup unittest following emplace fix
2013-10-08 05:38:55 -07:00
unknown
4b2390eb0b Making split unicode correct
Also marked as safe, but not pure (because of the foreach body)
2013-10-08 08:50:29 +02:00
David Nadlinger
99f05dad4e Merge pull request #1575 from tom-tan/safe-unittest-array-minimallyInitializedArray
Mark the unittest for std.array.minimallyInitializedArray as @safe
2013-10-02 09:21:56 -07:00
monarch dodra
55ec22276b Merge pull request #1576 from tom-tan/safe-pure-nothrow-array-split
Mark std.array.split and splitter as @safe, pure and nothrow
2013-10-02 04:33:58 -07:00
Andrej Mitrovic
7494ef15c1 Implement workaround for regression - Fix Issue 11053. 2013-09-16 23:05:28 +02:00
Tomoya Tanjo
437d81f6de Mark std.array.split and splitter as @safe and pure 2013-09-15 17:24:16 +09:00
Tomoya Tanjo
a0640139ca Use documented unittest instead of the example in the comment 2013-09-15 14:40:19 +09:00
Tomoya Tanjo
1a7546cadb Mark the unittest for std.array.minimallyInitializedArray as @safe 2013-09-15 13:00:06 +09:00
monarch dodra
0b6ceaa5aa Merge pull request #1561 from tom-tan/fix-unittest-array-assocArray
Fix unittest for std.array.assocArray
2013-09-14 13:49:24 -07:00
monarch dodra
b0d11ada76 Merge pull request #1563 from tom-tan/fix-unittest-array-blockAttribute-nDimensions
Mark unittests for blockAttribute and nDimensions as @safe, pure, nothrow
2013-09-14 13:48:36 -07:00
monarch dodra
b3fa35ae73 Merge pull request #1566 from tom-tan/fix-array-rangeprimitives-for-array
Fix the range primitives for array in std.array
2013-09-14 13:48:18 -07:00
Tomoya Tanjo
ae9ffd7b48 Fix unittest for std.array.overlap 2013-09-14 12:42:20 +09:00
Tomoya Tanjo
1d711cae88 Fix the range primitives for array in std.array 2013-09-14 12:27:15 +09:00
Tomoya Tanjo
5939a04e8c Fix unittest for std.array.assocArray 2013-09-14 11:30:22 +09:00
Tomoya Tanjo
e0f27b6d53 Change unittest block to version(unittest) block 2013-09-14 11:24:16 +09:00
monarch dodra
67e2f0055b Merge pull request #1562 from tom-tan/fix-unittest-array-array
Fix a unittest for std.array.array
2013-09-11 08:35:55 -07:00
Tomoya Tanjo
d3319ae38d Use documented unittest for std.array.uninitializedArray 2013-09-11 21:42:29 +09:00
Tomoya Tanjo
ba9052bf00 Fix a unittest for std.array.array 2013-09-11 21:19:48 +09:00
monarch dodra
01a2bdb02e Merge pull request #1535 from blackwhale/fix-lambda
Sidestep issue 10928
2013-09-01 01:13:44 -07:00
monarch dodra
aa3b13ce49 Merge pull request #1328 from 9rnsr/fix10230
Issue 10230 - Duplicated buttons for runnable examples
2013-08-31 02:50:17 -07:00
monarchdodra
8a50b18c3c tweak appender, add unittests for not-yet covered paths 2013-08-31 10:57:21 +02:00
Dmitry Olshansky
8d50d807be sidestep issue 10928 2013-08-30 22:56:38 +04:00
monarchdodra
81bf0aa570 More unittest for appender 2013-08-30 10:53:51 +02:00
monarchdodra
819da05056 Fix appender form elaborate assign types 2013-08-28 15:12:22 +02:00
monarchdodra
5180850e25 New opAssign unittests in std.array.array 2013-08-28 11:38:12 +02:00
monarchdodra
cc669ef384 Move newCapacity outside of Appender 2013-08-11 19:26:38 +02:00