Commit graph

297 commits

Author SHA1 Message Date
Robert burner Schadek
2c773f7c4d new std.array.replaceLast
moved string imports into static if

worked in some review

whitespace damn it

style fixes

rebase and style fixup
2014-11-14 23:58:54 +01:00
H. S. Teoh
c9e1a58a8a Merge pull request #2690 from 9il/splitter
deprecate splitter in std.array
2014-11-14 07:18:47 -08:00
H. S. Teoh
abc3fb1dbf Merge pull request #2701 from 9il/ar
std.range.constraints & std.array code/import swap
2014-11-13 21:21:22 -08:00
Ilya Yaroshenko
b407e14e91 deprecate splitter in std.array
use static import

update PR
2014-11-14 08:11:57 +03:00
David Nadlinger
9c4f10b8a4 Merge pull request #2703 from burner/std_array_replaceFirst_utf_fix
std.array.replaceFirst didn't work with variable length strings
2014-11-14 04:07:15 +01:00
Ilya Yaroshenko
12ba522cba std.range.constraints & std.array cleanup
use static import

rm static
2014-11-14 04:52:33 +03:00
Robert burner Schadek
bf1cb2af7b std.array.replaceFirst didn't work with variable length strings
* also added doc unittest

moved import into static ifs
2014-11-14 00:31:05 +01:00
Robert burner Schadek
f245d01eb5 remove SimpleSlice as it is marked don't use since last edit in 2009 2014-11-13 14:12:23 +01:00
Ilya Yaroshenko
3fcf723aa4 std.array: clean imports
assocArray: updated doc header.

add scope import

added global import in std.array

global import std.algorithm : splitter; in std.arra;

update splitter

import typetuple

import std.algorithm

Fix split

import std.algorithm fix
2014-11-12 15:34:30 +03:00
Ilya Yaroshenko
fd82dfe87f update array.d scope import 2014-11-11 23:03:27 +03:00
Ilya Yaroshenko
6670bb0e6b added scope imports 2014-11-11 22:54:54 +03:00
Robert burner Schadek
6dfd2c6e4d some doc updates and some more testing
moved examples to unittests

DmitryOlshansky fix
2014-10-22 21:58:21 +02:00
Daniel Murphy
5fdfc20493 Merge pull request #2539 from quickfur/issue10683
Add unittest for worksforme bug.
2014-09-20 17:14:29 +10:00
H. S. Teoh
8617f9d430 Add unittest for worksforme bug. 2014-09-19 15:52:02 -07:00
Robert burner Schadek
082176b1b3 issue8851
some more

some review fixes

some more

removed a to
2014-09-19 17:21:20 +02:00
Dmitry Olshansky
68833f0b9a Merge pull request #2240 from Safety0ff/fix12890
Fix issue 12890 - index based replace
2014-08-17 21:41:45 +04:00
safety0ff
c4f1c43366 Fix issue 12890 - index based replace 2014-08-15 06:18:57 -04:00
H. S. Teoh
9ede930dbf More concise way to achieve the same thing. 2014-08-13 12:57:30 -07:00
H. S. Teoh
1d2eef0ea0 Appender.toString shouldn't pretend it's an array.
So it should still print "Appender!(...)(...)" except that it will now
print the array contents instead of a random memory address.
2014-08-13 12:38:30 -07:00
H. S. Teoh
d2cbd13db0 Improve implementation.
Add unittest.
2014-08-13 12:22:36 -07:00
Jonathan Marler
b725393d6e Added toString to Appender class 2014-08-12 17:06:50 -06:00
Martin Nowak
e7bcad9406 localize some imports 2014-08-02 01:05:56 +02:00
k-hara
bf6b0a9759 fix Issue 13077 - std.range.array with shared InputRangeObject 2014-07-17 12:39:15 +09:00
Steven Schveighoffer
3cd7afcb1b Merge pull request #2330 from joakim-noah/strerror_move
Deprecate std.c.string and move its contents to druntime
2014-07-15 16:10:14 -04:00
Steven Schveighoffer
3115f01f8b Merge pull request #2178 from monarchdodra/appenderStaticArray
Sanitize Appender constraints a bit.
2014-07-14 11:24:33 -04:00
Joakim
dc67efc3c4 Deprecate std.c.string and move its contents to druntime 2014-07-13 12:47:26 -05:00
safety0ff
409fe4f8f4 std.array.replaceInPlace: Don't call remove to remove nothing 2014-06-17 12:01:54 -04:00
safety0ff
6ff3378c79 Add unittests bug #12889 2014-06-16 19:42:30 -04:00
k-hara
5b39ab253c Make side effect on strongly pure function call 2014-06-14 23:17:44 +09:00
monarchdodra
452eab0e03 Sanitize Appender constraints a bit. 2014-05-22 00:41:06 +02:00
monarchdodra
d609bd332f Sed "@safe pure nothrow" 2014-05-06 08:21:13 +02:00
Andrej Mitrovic
65baedc7b1 Add a disabled clear() method to Appender in the else branch to avoid UFCS hijacking. 2014-05-02 19:17:28 +02:00
Andrej Mitrovic
11d82758ba Strip spaces. 2014-05-02 12:38:12 +02:00
monarchdodra
3ff3fdfba3 Use static blockAttribute in Appender 2014-04-22 21:20:45 +02:00
monarchdodra
dacaa16069 Fix appender's extend 2014-04-12 14:59:11 +02:00
monarch dodra
8e66abb2fc Fix "use up capacity" in Appender 2014-04-02 18:26:32 +02:00
monarchdodra
6ea7bf2fa7 Fix Appender constructor 2014-03-31 20:21:15 +02:00
Andrei Alexandrescu
cecd745cef Merge pull request #2015 from monarchdodra/emplaceQual
Improve emplaceRef for qualified construction
2014-03-26 18:03:39 -07:00
Per Nordlöw
d701f90275 Issue 3882: Use cast(void) instead of value capture 2014-03-18 23:50:18 +01:00
monarchdodra
59ad77ad9f Improve emplaceRef for qualified construction 2014-03-17 22:48:30 +01:00
Andrei Alexandrescu
be185a4de7 Merge pull request #1975 from nordlow/warn-unused-returns
Issue 3882: Add warning for unused returns of strictly pure function calls
2014-03-09 12:10:44 -07:00
Per Nordlöw
275db682a5 Issue 3882: Explicitly capture return values for strictly pure functions returning non-void 2014-03-09 18:55:07 +01:00
Peter Alexander
8d9479c3a4 Fix Issue 12315 - array at compile-time with all types
Problem was that `emplaceRef` calls `memcpy` for some types, which is unsafe and unavailable at compile time.

https://d.puremagic.com/issues/show_bug.cgi?id=12315
2014-03-09 14:08:32 +00:00
Yazan S. Dabain
bda0f5a578 [Trivial] Fix documentation typos in std.array 2014-02-28 10:46:58 +02:00
monarchdodra
c7d98fd96d Remove useless lambda 2014-02-18 22:58:28 +01:00
monarchdodra
8f71c4e59a Cleanup emplace useage for emplaceRef 2014-02-16 17:04:34 +01:00
Andrej Mitrovic
7330607afe Merge pull request #1865 from CyberShadow/std-array-join-const
std.array: Allow joining constant arrays
2014-02-16 01:11:59 +01:00
monarch dodra
b16a3ed609 Add note about CTFE/pure issue 2014-02-13 22:19:18 +01:00
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