Andrei Alexandrescu
32b51aed4f
Merge pull request #3690 from CyberShadow/pull-20151003-171210
...
fix Issue 15146 - std.file.dirEntries("") only works on Windows
2015-11-15 19:44:58 -05:00
Dmitry Olshansky
c76b31859a
Merge pull request #3811 from D-Programming-Language/revert-3710-uni-tab
...
Revert "New primitive - Tiny UTF Binary Search Table"
2015-11-15 10:43:28 +03:00
David Nadlinger
b813578a5a
Revert "New primitive - Tiny UTF Binary Search Table"
2015-11-14 20:21:37 +01:00
Walter Bright
48d57e36e7
Merge pull request #3805 from andralex/simpler-emplace
...
Simpler emplace
2015-11-13 18:50:38 -08:00
Andrei Alexandrescu
7e61c6d1d7
Improve coverage
2015-11-13 08:18:43 -05:00
Dmitry Olshansky
99741241a1
Merge pull request #3698 from WalterBright/fix14861
...
[REG] fix Issue 14861 - Error in stdio.d in LockingTextReader.readFront()
2015-11-13 10:22:37 +03:00
Robert Schadek
f5ce17346d
Merge pull request #3806 from 9il/dr
...
update dummyrange.d
2015-11-12 16:03:14 +01:00
Andrei Alexandrescu
9cc91cdac3
Add unittest for unions, fix typo and alignment
2015-11-12 09:35:43 -05:00
Ilya Yaroshenko
efd177e092
update dummyrange.d
2015-11-11 22:44:07 -08:00
Andrei Alexandrescu
4f797ea444
Merge pull request #3748 from WalterBright/bitmanip
...
bitmanip: don't reinvent unsignedToTempString
2015-11-12 00:16:35 -05:00
Andrei Alexandrescu
fb7f7bf624
Merge pull request #3792 from burner/std.format_housekeeping
...
std.format_housekeeping
2015-11-11 23:14:39 -05:00
Andrei Alexandrescu
2cdb9c4eec
Merge pull request #3795 from JackStouffer/isNumeric
...
Add unittest examples to std.string.isNumeric
2015-11-11 23:14:05 -05:00
Andrei Alexandrescu
d2fa18dcef
Remove trailing whitespace
2015-11-11 21:05:45 -05:00
Walter Bright
74bd8037c8
Merge pull request #3804 from andralex/traits-compiles-considered-harmful
...
Remove `static assert(__traits(compiles, xyz))` from `std.conv`
2015-11-11 17:47:43 -08:00
Andrei Alexandrescu
8812daf8a4
Merge pull request #3780 from burner/std.string.lineSplitter_unittest_example
...
std.string.lineSplitter_unittest_example
2015-11-11 20:41:17 -05:00
Andrei Alexandrescu
b4bb27ab5a
Review
2015-11-11 19:48:11 -05:00
Andrei Alexandrescu
38caf42704
Major simplification of emplace - get the compiler to generate most of the needed code
2015-11-11 19:32:49 -05:00
Andrei Alexandrescu
32b000d93e
Remove static assert(__traits(compiles, xyz)) from std.conv
2015-11-11 13:34:49 -05:00
Andrei Alexandrescu
2eb1280e12
WIP on emplace
2015-11-11 13:25:51 -05:00
Martin Nowak
8e20ab5ac3
Merge pull request #3803 from andralex/emplace
...
Issue 15313 - std.conv.emplace cannot initialize const objects
2015-11-11 10:28:25 +01:00
Andrei Alexandrescu
d4b2a3e389
remove trailing whitespace
2015-11-11 00:15:55 -05:00
Andrei Alexandrescu
d48220ac65
Fix Issue 15313 - std.conv.emplace cannot initialize const objects
2015-11-10 23:57:36 -05:00
Andrei Alexandrescu
3ede453ab0
No need to return ref from internal functions
2015-11-10 23:52:28 -05:00
Andrei Alexandrescu
b4c876df59
Simplify emplaceImpl for static arrays
2015-11-10 21:26:32 -05:00
Andrei Alexandrescu
e11c1dc346
Simplify emplaceRef
2015-11-10 20:54:34 -05:00
David Nadlinger
3db5a3bfe1
Merge pull request #3799 from kinke/gammafunction
...
Slightly relax std.internal.math.gammafunction unittest for 64-bit reals
2015-11-09 15:37:48 +01:00
Robert burner Schadek
ba8d5e70ba
std.string.lineSplitter_unittest_example
...
* added unittest doc examples for indexOf lastIndexOf
fixup
fix
another version
2015-11-08 19:08:49 +01:00
Martin
a3035d7d77
Slightly relax std.internal.math.gammafunction unittest for 64-bit reals
...
Using LDC master on Win64, I get a relative diff of 1.068e-15 for the
second tuple (input = 1/8), exceeding the allowed upper bound by not even
7%. I chose to be generous and doubled the limit. ;)
More details for the 2nd tuple:
actual: 0x1.0a333fd8b6880p+2
expected: 0x1.0a333fd8b687bp+2
rel diff: 1.067682e-15
The other 4 tuples are perfect matches.
2015-11-08 15:27:34 +01:00
Brian Schott
2812f9a676
Merge pull request #3710 from DmitryOlshansky/uni-tab
...
New primitive - Tiny UTF Binary Search Table
2015-11-07 23:22:41 -08:00
Dmitry Olshansky
6b0aa3c349
Merge pull request #3781 from burner/std.string.leftJustify_unittest_example
...
std.string.leftJustify_unittest_example
2015-11-07 15:34:20 +03:00
Dmitry Olshansky
57facbbfed
Merge pull request #3782 from burner/std.string.rightJustify_unittest_example
...
std.string.rightJustify_unittest_example
2015-11-07 14:52:35 +03:00
Dmitry Olshansky
ce70770170
Merge pull request #3783 from burner/std.string.center_unittest_example
...
std.string.center_unittest_example
2015-11-07 14:29:10 +03:00
Dmitry Olshansky
aba3fe84a3
New primitive - Tiny UTF Binary Search Table
...
This lays on the foundation of UTF word notion,
a 32-bit integer that contains UTF encoded codepoint.
Top non-zero byte is the UTF-8 starter, so it's BigEndian
when reading directly from strings.
Same applies to UTF-16 word.
Also this invents simpler API for matching that easily combines:
- length of code point matched
- result of match (true/false if belongs to this set)
- bad encoding flag
in one packed 32-bit machine word - UtfLookup. This struct is
going to be reused for all of "directly on UTF" matchers in std.uni.
2015-11-07 13:40:47 +03:00
Jack Stouffer
71e54dbc47
add unittest examples to isNumeric
2015-11-06 10:00:25 -05:00
JakobOvrum
527eeb6e06
Merge pull request #3796 from CyberShadow/pull-20151104-214649
...
std.datetime: Remove redundant try/catch around GetTimeZoneInformation
2015-11-06 18:44:32 +09:00
Robert burner Schadek
632489b657
better debugging
...
fix
2015-11-05 22:46:17 +01:00
Robert burner Schadek
98b2fc0975
std.format_housekeeping
...
* reactived outcommented unittests
* moved comment examples into unittest examples
* fixed indention
2015-11-05 22:46:17 +01:00
Brian Schott
d8f6cce7ed
Merge pull request #3791 from japplegame/patch-2
...
Allows std.traits.getUDAs to filter attributes by template type.
2015-11-05 01:28:06 -08:00
Jack Applegame
cafed8e1c3
allows std.traits.getUDAs to filter attributes by template type.
...
See unittests.
2015-11-05 11:18:16 +03:00
Vladimir Panteleev
e1774b6f69
std.datetime: Remove redundant try/catch around GetTimeZoneInformation
...
GetTimeZoneInformation is a Windows API function, and thus will never
throw a D exception. Presumably, at the time this code was written,
it was not marked as nothrow. However, instead of fixing the function's
signature, the code contained try/catch blocks with messages such as
assert(0, "The impossible happened. GetTimeZoneInformation() threw.");
2015-11-04 21:48:29 +00:00
Robert Schadek
3ff1ee9339
Merge pull request #3794 from JackStouffer/wrap
...
Add unittest example to std.string.wrap
2015-11-04 16:36:36 +01:00
Jack Stouffer
016d5a0074
Add unittest example to wrap
2015-11-04 10:08:54 -05:00
Andrei Alexandrescu
110dcefbf4
Merge pull request #3793 from JackStouffer/issue3764
...
[Issue 3764] Remove Phobos workarounds for fixed bugs
2015-11-03 15:23:44 -05:00
Jack Stouffer
d085228a43
fix issue 3764
2015-11-03 12:41:39 -05:00
Brian Schott
9fc48a6093
Merge pull request #3785 from economicmodeling/add_AliasSeqOf
...
Add AliasSeqOf to std.meta
2015-11-02 15:19:03 -08:00
JakobOvrum
f584edd1e5
Merge pull request #3784 from 9rnsr/fix12359
...
Fix imports
2015-11-02 04:51:44 +09:00
k-hara
59989ed68a
fix imports
2015-11-01 23:01:04 +09:00
David Nadlinger
05f128a294
Merge pull request #3789 from redstar/solarisdatetime
...
Add missing functionality for OpenSolaris to std.datetime.
2015-11-01 13:59:54 +02:00
Kai Nacke
bbd5882948
Add missing functionality for OpenSolaris to std.datetime.
...
Requires https://github.com/D-Programming-Language/druntime/pull/1423 .
2015-11-01 12:04:54 +01:00
David Nadlinger
245c7ab0b5
Merge pull request #3788 from MartinNowak/merge_stable
...
Merge remote-tracking branch 'upstream/stable' into merge_stable
2015-10-31 21:20:26 +02:00