k-hara
28dedee456
Issue 7444 - Require [] for array copies too
2012-11-20 17:55:21 +09:00
Jonathan M Davis
1536320ca1
Merge pull request #905 from monarchdodra/strip
...
strip and sameTail
2012-11-15 22:46:33 -08:00
Andrej Mitrovic
6f65897a6a
Add comment about overlap being undocumented on purpose.
2012-11-02 15:10:49 +01:00
monarch dodra
b04b0695a3
Unittests for sameHead/sameTail
2012-10-28 11:54:33 +01:00
monarch dodra
efed1a0e36
Adding sameTail
2012-10-28 11:54:32 +01:00
monarch dodra
425c9d2b9f
Allow R values with sameHead
...
Not much point in passing arrays by const ref when you can just pass by copy.
2012-10-28 11:16:28 +01:00
monarch dodra
8cb3c314d0
remove ctfe check in popFront!NarrowString
2012-10-16 12:56:08 +03:00
jmdavis
735c2adbda
Changes required for issue# 6277.
2012-07-21 01:57:28 -07:00
Andrei Alexandrescu
70dcb958ea
Merge pull request #661 from jmdavis/popFront
...
Performance improvements for popFront and narrow strings.
2012-07-15 20:35:09 -07:00
nazriel
f942906396
Runnable examples - std.array
2012-07-15 20:07:32 +00:00
Denis Shelomovskij
64f93b970a
Replace typeof(<type>.init[0])
with templates
...
* ElementEncodingType (12)
* ElementType(1)
2012-07-11 12:58:40 -07:00
jmdavis
02931eb501
Revert "Merge pull request #664 from denis-sh/add-ArrayTarget-template"
...
This reverts commit f4d0a49493
, reversing
changes made to 3cb69914c5
.
The merging of request #664 was accidental, and it should not have been
merged. See https://github.com/D-Programming-Language/phobos/pull/664
for details.
2012-07-11 11:49:28 -07:00
k-hara
d6ffbd1328
Add const attribute more strictly
2012-07-11 01:02:59 +09:00
Denis Shelomovskij
00c0d61403
Replace typeof(<type>.init[0])
with templates
...
* ArrayTarget (12)
2012-07-06 13:38:06 +04:00
Denis Shelomovskij
ea6c9be477
Replace typeof(<type>.init[0])
with templates
...
* ElementEncodingType (12)
* ElementType(1)
2012-07-06 13:27:07 +04:00
jmdavis
cc1c2429ef
Performance improvements for popFront and narrow strings.
2012-07-05 02:42:08 -07:00
jmdavis
5c3d219931
Fix for issue# 8233.
...
std.array.array fails to compile with ranges of immutable elements which have a length property
2012-06-13 01:44:25 -07:00
Jonathan M Davis
b6ddd05727
Merge pull request #617 from jmdavis/8187
...
Fix for issue# 8187.
2012-06-10 20:41:17 -07:00
jmdavis
4b5b11450d
Slight tweak to save line count.
2012-06-04 00:48:27 -07:00
Dmitry Olshansky
92defbb4a0
save on line count
2012-06-04 11:42:47 +04:00
Dmitry Olshansky
b823cf6731
replaceInto baseline & unittest
2012-06-04 11:37:08 +04:00
jmdavis
453a6822c7
Fix for issue# 8187.
2012-06-02 22:57:04 -07:00
Brad Roberts
487fa80642
Merge pull request #582 from jmdavis/array
...
Improve the const-correctness of Appender and RefAppender.
2012-05-26 12:01:16 -07:00
jmdavis
1a4e2892b6
Removed deprecated functions which were to be removed in May 2012.
2012-05-23 00:51:12 -07:00
jmdavis
cc17f794e7
Improve the const-correctness of Appender and RefAppender.
2012-05-13 02:36:25 -07:00
k-hara
348f68a159
Add @property more
2012-03-19 21:28:18 +09:00
Brad Roberts
74d1eaf6d1
fix case of variable shadowing in unittest
2012-02-06 21:54:59 -08:00
Andrei Alexandrescu
ae112b9dea
Merge pull request #314 from NilsBossung/bugzilla6874
...
(bugzilla 6874) disable the broken optimized path and fall back to append
2012-01-09 07:51:21 -08:00
k-hara
17e87a472d
Revert "Revert "Merge pull request #284 from 9rnsr/fix6208_on_inout""
...
This reverts commit fef20ede25
.
2011-12-15 17:34:09 +09:00
Nils Boßung
5b9080e048
use .capacity
2011-12-06 22:30:42 +01:00
Nils Boßung
2fe6930f27
remove the broken optimization completely
2011-12-06 22:29:41 +01:00
Andrei Alexandrescu
6ac45d88af
Merge pull request #328 from jmdavis/deprecations
...
Applied deprecations for November 2011.
2011-12-04 13:04:07 -08:00
David Nadlinger
e312f9898b
Strict @property syntax compliance.
...
This enables the test suite to build with the -property switch enabled.
std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
jmdavis
afb5a1c7ce
Applied deprecations for November 2011.
2011-11-21 00:24:57 -08:00
simendsjo
db8a7b4e51
Bug 2128 has been resolved
2011-11-06 16:53:23 +01:00
Nils Boßung
4110f56ac6
(bugzilla 6874) disable the broken optimized path and fall back to appender
...
Also add a unittest.
This doesn't properly resolve the issue, of course.
2011-11-03 22:49:27 +01:00
jmdavis
256976dddd
Removed "scheduled for deprecation" pragmas.
...
The pragmas have not been as effective as we might have liked, since
they only work with templates and can't tell you where in your code you
need to make changes, and they seemed to have been more annoying to
programmers than helpful, so we're going to discontinue them. We'll
leave them in for stuff that's actually been deprecated until deprecated
has been improved enough to take a message, but we'll leave "scheduled
for deprecation" messages to the documentation and changelog.
2011-10-23 23:11:17 -07:00
k-hara
fef20ede25
Revert "Merge pull request #284 from 9rnsr/fix6208_on_inout"
...
This change will be required after finxing bug6208.
This reverts commit e669812d26
, reversing
changes made to 5ffd5b34e8
.
2011-10-13 12:44:45 +09:00
k-hara
42324e028b
fix6208 on inout
2011-10-02 22:08:46 +09:00
Andrei Alexandrescu
ed5b2878dc
Merge pull request #168 from klickverbot/array-replace
...
std.array.replaceFirst() bug and doc fixes
2011-08-03 10:21:16 -07:00
David Nadlinger
a742851d2a
Cover the case with no whitespace at the end in split() tests.
2011-08-02 22:18:42 +02:00
David Nadlinger
22f4e83821
Added basic Appender capacity/shrinkTo tests.
2011-08-02 22:18:42 +02:00
David Nadlinger
32aada659d
Added test for the one-element branch of Appender.put().
2011-08-02 22:18:42 +02:00
David Nadlinger
27ed4eb62e
Added unit test for the overlapping replaceInPlace() branch.
2011-08-02 22:18:41 +02:00
David Nadlinger
7c9fb77850
Added tests for the (isForwardRange!RoR && hasLength!RoR && hasLength!(ElementType!RoR) && hasLength!R) join(RoR, R) and (isForwardRange!RoR && hasLength!RoR && hasLength!(ElementType!RoR)) join(RoR) branches.
2011-08-02 22:18:41 +02:00
David Nadlinger
8af69b0cff
Fixed std.array.replaceFirst unit tests.
...
The unittest block seemed to be a direct copy of the replace() one, now it actually tests replaceFirst().
2011-08-02 18:03:25 +02:00
David Nadlinger
7a73b40e71
std.array.replaceFirst omitted the part after the match from the result.
2011-08-02 17:59:08 +02:00
David Nadlinger
2d472caa80
replace() and replaceFirst() don't return a copy of the array if nothing changed.
...
This behavior is reasonable and explicitly tested for in the unit tests, but previously, one could think that they always returned a copy from the docs.
2011-08-02 17:56:25 +02:00
KennyTM~
32d24ea24d
std.file.read: Create the uinitialized arrays using ubyte[] to ensure NO_SCAN after commit 78ace9c
2011-07-17 15:41:14 +08:00
KennyTM~
58d638f14b
Merge branch 'master' into uninitializedArray
2011-07-17 14:18:04 +08:00