Commit graph

5569 commits

Author SHA1 Message Date
Tomoya Tanjo
ec500bb9eb Make std.file.deleteme @safe 2013-08-13 19:22:35 +09:00
monarch dodra
1b4e815059 Merge pull request #1469 from blackwhale/regex-docs
Freshen std.regex ddoc, plus link our regex article
2013-08-12 11:40:27 -07:00
monarch dodra
0e747649f2 Merge pull request #1330 from burner/lastIndexOf
lastIndexOf width startIdx
2013-08-12 11:36:01 -07:00
Robert burner Schadek
62ba73bfe7 fix
forgot a test

whitespace formatting

some more nitpick fixes

one more consistency test

spelling

starting -> ending
2013-08-12 16:24:45 +02:00
monarch dodra
f6e2f63302 Merge pull request #1468 from tom-tan/trusted-file-tempDir
Make std.file.tempDir @trusted
2013-08-12 06:44:24 -07:00
monarch dodra
10c4b24c9a Merge pull request #1301 from burner/indexOfIdx
std.string.indexOf with start index
2013-08-12 06:42:31 -07:00
Dmitry Olshansky
ec975cfca0 Freshen std.regex ddoc, plus link our regex article 2013-08-12 13:42:07 +04:00
Robert BuRnEr Schadek
150631d4f5 std.string.indexOf with a start index
Basically indexOf with start index. This index is added to the found
index if the searched character was found.

std.string.indexOf(Char1,Char2)(with start index)

The same thing as with the single character indexOf.

fixed the auto-tester complains

save

another bug bites the dust

fix the startIdx problem

std.string.indexOf with a start index

Basically indexOf with start index. This index is added to the found
index if the searched character was found.

std.string.indexOf(Char1,Char2)(with start index)

The same thing as with the single character indexOf.

fixed the auto-tester complains

save

merge error

everything is nicer now

another fix

whitespace formatting

consistency

whitespace args

some more nitpicks fixes

spelling
2013-08-12 09:49:01 +02:00
Andrei Alexandrescu
0f6d9e9c60 Merge pull request #1448 from ntrel/stdio-range-doc
Improve byChunk, lockingTextWriter doc
2013-08-11 21:09:30 -07:00
Andrei Alexandrescu
ec62f9dd5f Merge pull request #1452 from Kozzi11/toImplForIntegralTypes
Improve speed of to!string for integral types
2013-08-11 21:02:10 -07:00
Andrei Alexandrescu
5576d899af Merge pull request #1458 from ntrel/byLine-crlf
Fix Issue 5378 - Make File.byLine accept a string terminator
2013-08-11 19:19:32 -07:00
Tomoya Tanjo
17d35cd80d Make std.file.tempDir @trusted 2013-08-12 10:52:00 +09:00
Andrei Alexandrescu
701ca3f76f Merge pull request #1467 from tom-tan/trusted-file-exists
Make std.file.exists trusted
2013-08-11 18:41:45 -07:00
Tomoya Tanjo
e5dbcaf7d6 Make std.file.exists trusted 2013-08-12 10:33:01 +09:00
Andrei Alexandrescu
9a44389bf5 Merge pull request #1462 from tom-tan/trusted-sysErrorString
Make std.windows.syserror.sysErrorString @trusted
2013-08-11 16:57:41 -07:00
Andrei Alexandrescu
dcb9bd2731 Merge pull request #1466 from Kapps/master
Fix issue 10800
2013-08-11 16:54:29 -07:00
Kapps
fd177fd4f7 Fix issue 10800 2013-08-11 14:48:32 -06:00
Andrei Alexandrescu
ad43e1a41c Merge pull request #1459 from blackwhale/ctr-clean
cleanup std.regex CTFE hacks
2013-08-11 12:42:15 -07:00
Andrei Alexandrescu
11ceba59f9 Merge pull request #1465 from blackwhale/ctr-lookahead
Lookahead support for static regex aka ctRegex
2013-08-11 12:23:35 -07:00
Dmitry Olshansky
cb05620be8 safety of nested lookahead, enable all of R-T tests 2013-08-11 22:59:37 +04:00
Dmitry Olshansky
d939790ed5 Introduce lookahead for ctRegex 2013-08-11 22:59:36 +04:00
Andrei Alexandrescu
a4707f7a6e Merge pull request #1464 from blackwhale/ctr-enable-test
Enable ctRegex tests, fix 3 latent bugs
2013-08-11 11:54:48 -07:00
Dmitry Olshansky
c0919a36aa fix faulty multi-line logic of Eol in ctRegex
Also reduce the amount of tests to run to let auto-tester breath freely
Add versioned blocks to partition test-suite in compilable parts
2013-08-11 19:22:26 +04:00
Dmitry Olshansky
ac6450b139 catch the wrong test-case 2013-08-11 15:55:37 +04:00
Dmitry Olshansky
c8499d6e06 restore "multi-line" behaviour of '.' in ctRegex 2013-08-11 15:55:36 +04:00
Dmitry Olshansky
7134c5de95 enable ctRegex tests, fix 3 latent bugs
Bad codegen for Backreferences,
wrong trackers used for nested infinite loops
and even wrong code for '.'
2013-08-11 15:55:36 +04:00
Tomoya Tanjo
58668c1829 Make std.windows.syserror.sysErrorString @trusted 2013-08-11 11:25:25 +09:00
Nick Treleaven
6c1800bccc Use ElementEncodingType!Terminator instead of typeof(terminator[0]) 2013-08-10 11:41:15 +01:00
monarch dodra
395b72204e Merge pull request #1456 from quickfur/issue10773
Fix issue 10773.
2013-08-09 11:01:54 -07:00
Nick Treleaven
fa974e3033 lockingTextWriter should not be a @property 2013-08-09 16:41:45 +01:00
Nick Treleaven
f03bfb0588 Ensure terminator string has Char element type 2013-08-09 14:38:08 +01:00
Nick Treleaven
e168cd70c0 Fix calling ByLine(file) with default args 2013-08-09 13:33:34 +01:00
Dmitry Olshansky
85276150e2 cleanup std.regex CTFE hacks, it's working as is now 2013-08-09 13:54:48 +04:00
H. S. Teoh
78b9a6fd00 Don't need to loop over subranges to use equal().
I wrote it that way 'cos if the subrange is a distinct type from the
original range, equal won't compare them properly (compiler will
complain about == not being defined).

But in this case, it does work, so I rewrote it to use equal() directly.
2013-08-08 10:10:29 -07:00
Nick Treleaven
abcc305a3b Add comments for ranges that are no longer documented 2013-08-08 15:28:00 +01:00
Nick Treleaven
7f76586e16 Fix Issue 5378 - Make File.byLine accept a string terminator
Add an overload of byLine without a default argument for terminator.
Before, byLine!string tried to instantiate "string terminator = '\n'",
which is invalid.

Note: This removes the default arguments from ByLine.this, but the
constructor was never documented anyway (unlike the range primitives).
2013-08-08 15:01:36 +01:00
H. S. Teoh
cd9696a8e8 Add missing signature constraints for splitter.
As well as require bidirectional separator with length before assuming
retro(separator) and separator.length will work.

Without these additional constraints, splitter will cause unhelpful
compile errors about being unable instantiate find, when the separator
is a non-forward input range, or when it doesn't have length, or when
it's non-bidirectional. In the latter case, splitter should still work,
just that it won't export a bidirectional interface.
2013-08-08 06:06:52 -07:00
H. S. Teoh
9fab541993 Fix issue 10773. 2013-08-08 06:06:51 -07:00
monarch dodra
86514b0015 Merge pull request #1457 from 9rnsr/enforceProp
More parenthesis fix for property enforcement
2013-08-08 05:10:33 -07:00
k-hara
aae9150736 Remove trailing spaces 2013-08-08 20:26:42 +09:00
k-hara
a8444987b0 Fix parenthesis 2013-08-08 20:26:37 +09:00
Jonathan M Davis
c109594456 Merge pull request #1347 from blackwhale/new-std-uni
New std.uni module
2013-08-08 00:28:29 -07:00
Jonathan M Davis
fde2d19dcc Merge pull request #1455 from 9rnsr/enforceProp
More parenthesis fix for property enforcement
2013-08-07 13:12:02 -07:00
k-hara
7fdd9e0630 More parenthesis fix 2013-08-08 04:12:10 +09:00
Kozzi11
2041f446ff Improve speed of to!string for integral types 2013-08-07 11:00:20 +02:00
Jonathan M Davis
8df771ca53 Merge pull request #1451 from kyllingstad/std-process-all-strings
Allow non-immutable input strings in std.process
2013-08-06 15:17:15 -07:00
monarch dodra
d19dcfa7ef Merge pull request #1442 from kyllingstad/buildPath-range
Added range version of std.path.buildPath()
2013-08-06 14:38:55 -07:00
monarch dodra
9103d642a7 Merge pull request #1425 from tom-tan/safe-array-array
Make std.array.array @safe if possible
2013-08-06 08:10:47 -07:00
monarch dodra
f584fe463b Merge pull request #1450 from tom-tan/system-conv-toImpl-unittest
Make a unittest for toImpl for char* to string conversion system
2013-08-06 03:47:44 -07:00
Lars T. Kyllingstad
bacb06d048 Fixed order of imports 2013-08-06 11:31:23 +02:00