Commit graph

307 commits

Author SHA1 Message Date
Mike Parker
42c5a2f036 Change param 'r' to 'range' and LINK2 to FULL_XREF 2015-01-02 01:47:54 +09:00
Mike Parker
11896ee449 Enhance ddoc for std.array.split. 2015-01-02 01:45:21 +09:00
Walter Bright
7ec5433474 improve doc on std.array.join 2014-12-27 11:39:16 -08:00
Rainer Schuetze
7c2f962b10 make nested foreach over TypeTuple bodies into lambdas to avoid huge functions 2014-11-28 17:15:37 +01:00
Ilya Yaroshenko
2c744b54e1 std.range: constraints => primitives
See discussion and voting in #2661
2014-11-23 20:05:20 +03:00
H. S. Teoh
379d9537bc Merge pull request #2747 from 9il/join2
use emplaceRef in join
2014-11-23 08:47:00 -08:00
Ilya Yaroshenko
8b6dccdc69 use emplaceRef in join
And remove old trustedAllocateArray.
uninitializedArray is already trusted.
2014-11-22 12:52:10 +03:00
Ilya Yaroshenko
c8d9afedea clean scope imports
imports of `std.range, std.algorithm, std.array, std.string,
std.format, std.uni` are affected.
2014-11-21 00:08:35 +03:00
H. S. Teoh
eb66cfaa6e Merge pull request #2746 from 9il/join
std.array.join GC optimisation
2014-11-18 11:39:59 -08:00
Ilya Yaroshenko
9f864a6401 std.array.join optimisation
update PR
2014-11-18 22:04:11 +03:00
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