Commit graph

570 commits

Author SHA1 Message Date
Dicebot
82f54a38d3 TypeTuple -> MetaList inside Phobos 2015-05-05 22:22:11 +03:00
Dicebot
73f773838d import std.typetuple -> import std.meta 2015-05-05 22:22:10 +03:00
Rainer Schuetze
a0b270a55b comment GC/readlnImpl implementation specific assertions 2015-04-22 23:37:14 +02:00
Rainer Schuetze
bb6dba617a remove readlnAppender from HAS_GETDELIM version, but also bad GC.sizeof optimization 2015-04-22 08:04:21 +02:00
Rainer Schuetze
fc959b05c4 clarify putonly usage by assert 2015-04-21 08:55:35 +02:00
Rainer Schuetze
b9233db8f3 fix merge 2015-04-21 08:55:34 +02:00
Rainer Schuetze
19ac24d4ac update capacity even when shrinking to allow buffer reuse
avoid producing garbage in byLine, making optimization with _d_newarrayU obsolete
2015-04-21 08:55:34 +02:00
Rainer Schuetze
fab889c9f6 replace appender with something similar, but compatible with arrays 2015-04-21 08:55:34 +02:00
Rainer Schuetze
476d2096c3 avoid interference of readln with standard arrays 2015-04-21 08:55:34 +02:00
Steven Schveighoffer
eecc989b2c Merge pull request #3160 from CyberShadow/pull-20150407-122150
fix Issue 14422 - std.process: Pipes do not append to files on Win64
2015-04-09 10:28:18 -04:00
Vladimir Panteleev
b28eb9fab8 fix Issue 14422 - std.process: Pipes do not append to files on Win64 2015-04-07 15:29:12 +00:00
Steven Schveighoffer
4d30c1d15d Merge pull request #3127 from charles-cooper/issue_14368
Fix Issue 14368 - rawRead performance
2015-04-03 13:08:45 -04:00
Charles Cooper
4493008e7a style suggestions 2015-04-01 12:13:09 -07:00
Martin Nowak
8a65ff8db4 Merge pull request #2956 from jmdavis/tempFile
Implement issue# 13996. Add File.tempFile.
2015-03-31 04:43:51 +02:00
Jonathan M Davis
e3e9f2965f Implement issue# 13996. Add File.scratchFile.
This adds a File.scratchFile, which generates a random file name and
returns an open std.stdio.File for it. Unlike with File.tmpfile, it's a
normal file which is _not_ deleted when the file is closed, and you
actually have access to the file's name, which is necessary in many
situations - particularly when writing unit tests that need to write to
a file and then read from it.
2015-03-30 16:46:40 -07:00
Charles Cooper
962073a423 style -- throw exception instead of calling enforce
cf. https://github.com/D-Programming-Language/phobos/pull/3127/files#r27414148
2015-03-30 11:09:54 -07:00
Charles Cooper
e741c24f85 Fix Issue 14368 - rawRead performance
reduce performance gap between fread and rawRead
cf. https://issues.dlang.org/show_bug.cgi?id=14368
2015-03-30 10:24:21 -07:00
Steven Schveighoffer
5f1ab79717 Make sure the free'd lineptr doesn't leave a dangling pointer. 2015-03-23 21:30:54 -04:00
Martin Nowak
73b24264da Merge pull request #3089 from andralex/byLine
3x faster byLine implementation on OSX, probably faster on Linux as well
2015-03-23 16:08:36 +01:00
Andrei Alexandrescu
d41f015c20 FreeBSD also appears to have getdelim 2015-03-22 16:28:09 -07:00
Andrei Alexandrescu
b3dcb74504 Eliminating most calls to GC.sizeOf also shaves some extra 25% 2015-03-22 00:32:06 -07:00
Andrei Alexandrescu
541e593cdc 3x faster byLine implementation on OSX, probably faster on Linux as well 2015-03-22 00:08:01 -07:00
rsw0x
2621b7fe7e Issue 13590
Add stdio.byChunk example using algorithm.joiner
2015-03-21 18:43:17 -04:00
John Colvin
e601077b86 make 0-arg writeln @trusted: Fix Issue 13681 2015-03-10 12:39:48 +00:00
sinkuu
6a3cd276b8 Fix issue 14041 - Refused writeln of a fixed size array of chars 2015-01-31 20:53:52 +09:00
Walter Bright
dc302d26a4 DIP25: make phobos work with it 2015-01-30 12:02:48 -08:00
k-hara
a40422b2aa Add missing imports 2015-01-07 00:18:56 +09:00
Joakim
6f3e68737b More narrowly scope druntime imports in std.stdio, by using the ddmd frontend to dump all import symbols 2014-12-25 01:39:47 -06:00
Nick Treleaven
62117b585f Document byLineCopy's caching of front
Use byLineCopy instead of byLine.map!idup in stdin example.
2014-12-25 17:23:28 +00:00
Walter Bright
51563087f0 add example for std.stdio.stdin 2014-12-19 17:48:40 -08:00
Ilya Yaroshenko
2c744b54e1 std.range: constraints => primitives
See discussion and voting in #2661
2014-11-23 20:05:20 +03:00
kai
6dcb2179e9 Solaris fixes for std.stdio and std.parallelism
- Use GENERIC_IO
- Use sysconf to determine number of CPUs
2014-11-21 22:50:14 +01: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
Ilya Yaroshenko
e678d31797 std.stdio: clean imports
fix

fix

remove string import

uncomment unittest

update Flag!"KeepTerminator" usage

fix typo

fix errors

private format

fix yes/no

update private format

format workaround

renamed flags to lower case
2014-11-17 21:20:40 +03:00
anonymous
3d058e2853 fix LockingTextReader: issues 13686 and 12320
Issue 13686 (Reading unicode string with readf ("%s") produces a wrong
string) is fixed by reading all chars of a multibyte sequence and decoding.
Before, each char was mistaken for a dchar.

Issue 12320 (std.stdio.LockingTextReader populates .front in .empty) is
fixed by moving the work from empty to popFront.
2014-11-12 23:47:09 +01:00
Joakim
093d636de4 Deprecate std.c.* and move all remaining declarations to core.stdc.* 2014-10-14 09:26:21 -05:00
Martin Nowak
6465b09548 use sum instead of reduce in example code 2014-10-06 17:04:46 +02:00
H. S. Teoh
cbf54b109b Update std.stdio.writef docs.
The docs are outdated; the `writef(stderr, fmt, ...)` syntax is no longer
supported. Also, remove a bunch of really old notes about changes in version
2.006, which are already ancient history. Refer instead to the docs of
std.format.formattedWrite, which are the most up-to-date and accurate docs on
this subject.
2014-09-19 16:20:12 -07:00
Brad Roberts
8d1c89d2a6 Merge pull request #2432 from rainers/coff32
COFF support for Win32
2014-09-11 13:55:13 -07:00
David Nadlinger
8b53ef91d6 Merge pull request #2501 from CyberShadow/pull-20140909-112214
std.process: @safe/nothrow cleanup
2014-09-09 15:22:19 +02:00
Vladimir Panteleev
d7096b1947 std.process: @safe/nothrow cleanup 2014-09-09 11:32:32 +00:00
uran
14fe960d91 Documentation corrected. 2014-09-08 10:17:45 +03:00
Denis Shelomovskij
d63035003a Fix some property enforcements. 2014-09-01 18:01:16 +04:00
Rainer Schuetze
3ed25d61ae use CRuntime_DigitalMars/CRuntime_Microsoft instead of Win32/Win64 where appropriate 2014-08-23 16:14:18 +02:00
Denis Shelomovskij
ff144b0ae0 Replace most toStringz/toUTF16z/toUTFz usages with tempCString* ones.
Only non-trivial cases left when a refactoring is required to use a temporary buffer.
Also add `nothrow`/`@nogc` attributes.
2014-08-23 17:23:13 +04:00
Vladimir Panteleev
bc353da47c fix Issue 13241 - [REG2.067a] writeln no longer flushes stdout 2014-08-19 00:12:23 +00:00
H. S. Teoh
16822243a1 Remove unused private writefx() function.
This eliminates the 3rd last usage of doFormat in Phobos, thus inching
us closer to fully fixing bug #4532.
2014-08-07 15:22:35 -07:00
Andrej Mitrovic
f13c9b82d3 Merge pull request #2393 from joakim-noah/android
Make it possible to use a central directory for all tests that create a temporary file
2014-08-05 14:07:06 +02:00
Joakim
a5f2d0f684 Tweaks to get the tests running inside an Android apk 2014-08-04 23:33:31 -05:00
Dmitry Olshansky
96ca355429 Merge pull request #2364 from ntrel/stdio-newline
[docs] Recommend std.ascii.newline for portable line terminator in std.stdio
2014-08-04 02:15:40 +04:00