Commit graph

9193 commits

Author SHA1 Message Date
Andrei Alexandrescu
4799bc6f45 Merge pull request #3883 from JakobOvrum/std_utf_docs
Consolidate documentation for std.utf.stride[Back]
2015-12-25 09:30:01 -05:00
Jakob Øvrum
fc5d24566a Consolidate documentation for std.utf.stride[Back] 2015-12-22 18:24:25 +09:00
Andrei Alexandrescu
e828cf7b51 Merge pull request #3771 from burner/std.string.index_unittest_examples
std.string.index_unittest_examples
2015-12-21 10:26:49 -05:00
JakobOvrum
71f5e1a281 Merge pull request #3866 from Infiltrator/patch-1
Fix mistakes in pull #3864
2015-12-18 17:09:47 +09:00
Brian Schott
7764b50a90 Merge pull request #3872 from dcarp/json_encode_control_char
std.json: Encode control characters
2015-12-17 23:10:28 -08:00
Brian Schott
fd20a6f398 Merge pull request #3877 from JackStouffer/patch-6
Include Unittest Blocks as Doc Examples in std.functional
2015-12-17 22:07:56 -08:00
David Herberth
82096b5cf5 RandomSample.front was not documented
The documentation of std.random.RandomSample shows all range primitives except .front
2015-12-17 22:21:31 +01:00
Jack Stouffer
2bce92e19f Include unittest blocks as examples in std.functional 2015-12-17 13:44:10 -05:00
Brian Schott
a9e1bcc8a9 Merge pull request #3850 from jmdavis/duration
Deprecate the non-benchmarking uses of TickDuration in std.datetime.
2015-12-16 16:46:52 -08:00
Robert burner Schadek
98441e265d std.string.index_unittest_examples
* added unittest doc examples for indexOf lastIndexOf

small update

indexOf rearranging

lastIndexOf

more shuffeling

jakobovrum

some update and more testing
2015-12-16 16:46:36 +01:00
Dragos Carp
cacd081e11 std.json: Encode control characters 2015-12-16 00:55:09 +01:00
H. S. Teoh
64f43ce42c Merge pull request #3854 from 9rnsr/enforceProp
fix property enforcement
2015-12-15 09:37:12 -08:00
Yazan Dabain
44d273c3bd Fixes #15433: std.experimental.allocator.building_blocks.free_tree only compiles with unittest 2015-12-11 10:44:06 +02:00
JakobOvrum
66e01c324c Merge pull request #3863 from Infiltrator/patch-4
Fix Issue 15420 - topN(Range, Range) does not respect its less predicate
2015-12-11 07:26:16 +09:00
Infiltrator
73a74374e2 Fix mistakes in pull #3864
Bug unittests should go in their own blocks.
2015-12-10 17:31:41 +11:00
Infiltrator
d70356e019 Fix topN(Range, Range) disrespect of its predicate 2015-12-10 17:29:34 +11:00
Brian Schott
c82f47cb8d Merge pull request #3868 from JakobOvrum/container_docs_take
s/takeOne/take/ in std.container package documentation
2015-12-09 17:18:14 -08:00
Jakob Øvrum
85edbe9ffb s/takeOne/take/ in std.container package documentation
takeOne returns a special type for ranges without slicing, so it just
happened to work with Array, but it doesn't work with say, linked lists.
2015-12-10 08:50:08 +09:00
H. S. Teoh
574734500e Merge pull request #3867 from aG0aep6G/15429
fix issue 15429 - [std.stdio] Broken link in documentation
2015-12-09 11:32:09 -08:00
anonymous
e90edec9b6 fix issue 15429 - [std.stdio] Broken link in documentation 2015-12-09 18:25:28 +01:00
Infiltrator
865afe1b39 Update topN functions to return their top ranges 2015-12-08 19:21:46 +11:00
tsbockman
1b19dd67e3 Improve std.conv.parse() docs. Point out that std.conv.to() works with string literals. 2015-12-07 19:08:11 -08:00
tsbockman
1f8bb8c811 Clean up invalid "@@@BUG@@@" comments from std.conv.parse unittest. 2015-12-07 18:49:03 -08:00
Brian Schott
2e28c979a5 Merge pull request #3860 from JakobOvrum/container_docs
Some std.container documentation fixes and improvements
2015-12-07 13:53:00 -08:00
Jakob Øvrum
a2117fafd5 Some std.container documentation fixes and improvements 2015-12-08 04:20:12 +09:00
Brian Schott
e60c9dcf18 Merge pull request #3857 from BBasile/issue-15336
fix issue 15336, opIn undocumented for JSONValue
2015-12-07 11:07:57 -08:00
Robert Schadek
c723d17e9f Merge pull request #3858 from aG0aep6G/10087
document that chunkSize must be positive
2015-12-07 15:20:23 +01:00
anonymous
1a2ef53923 document that chunkSize must be greater than zero
There's an assert(chunkSize != 0) in the constructor which needs to be
documented.
2015-12-07 13:27:19 +01:00
Basile Burg
c10012129d documented opIn 2015-12-07 11:41:17 +01:00
Brian Schott
61b07a39b1 Merge pull request #3856 from BBasile/mallocator-nogc
fix issue 15409 - Mallocator cant be used in @nogc code
2015-12-06 21:51:41 -08:00
tsbockman
4b690ef72f Added a slower generic fallback method, in case real.mant_dig > 64. 2015-12-05 15:39:48 -08:00
tsbockman
7929a45c1f Optimized slightly and made the unittests more generic in case real.mant_dig < 64. 2015-12-05 15:38:31 -08:00
tsbockman
01860999a9 Added static assert documenting the maximum precision for which this fix is valid. 2015-12-05 15:38:31 -08:00
tsbockman
49d4720e5c Fix Issue 14786 - std.math.pow sometimes gets the sign of the result wrong. 2015-12-05 15:38:31 -08:00
Basile Burg
0c513b1c15 allowed Mallocator to be used in nogc functions 2015-12-05 23:41:26 +01:00
Iain Buclaw
0c39d2d341 Merge pull request #3849 from Infiltrator/patch-1
fix issue 9717 - `std.math.round` rounds away from zero instead of to the nearest even integer
2015-12-05 18:56:49 +01:00
k-hara
e864e53adc fix property enforcement 2015-12-04 15:42:53 +09:00
Jonathan M Davis
26a4340c30 Remove stray uses of TickDuration from Phobos internals. 2015-12-03 03:01:03 -08:00
Jonathan M Davis
3312e296ef Deprecate the non-benchmarking uses of TickDuration in std.datetime. 2015-12-03 00:38:34 -08:00
Infiltrator
91c38b4bfd fix issue 9717 - std.math.round rounds away from zero instead of to the nearest even integer 2015-12-03 03:56:37 +11:00
Lance Bachmeier
0f23dbae28 Made the new unittests consistent. 2015-11-30 16:21:52 -06:00
Lance Bachmeier
c536217a0a Changed the Examples section to a commented unittest. Made the same changes to SysTime.opBinary. 2015-11-30 16:01:48 -06:00
Lance Bachmeier
fcdf67b36e Added an example of usage of DateTime opBinary. Added a reference to core.time.Duration 2015-11-30 15:06:11 -06:00
Xinok
dda21ec7d1 Issue 15385 2015-11-29 16:16:54 -06:00
Brian Schott
40b2e45e33 Merge pull request #3838 from jmdavis/deprecations
Move some deprecations along.
2015-11-29 11:57:28 -08:00
Brian Schott
d1d129243f Merge pull request #3827 from rcorre/getSymbolsByUDA_private2
Enable getSymbolsByUDA to retrieve private members.
2015-11-29 01:41:03 -08:00
Ryan Roden-Corrent
79fd6aac79 Enable getSymbolsByUDA to retrieve private members.
Resolves #15335: getSymbolsByUDA fails if type has private members.
Generous (ab)use of mixins allows getSymbolsByUDA to reference symbols
without trying to access them, allowing it to inspect private members
without failing.

Testing this required private symbols defined outside of std.traits.
This adds std.internal.test.uda, which defines a struct containing
private members that is used in a unittest added to std.traits.
2015-11-28 07:14:47 -05:00
Vladimir Panteleev
e90be60a67 Merge pull request #3839 from aG0aep6G/ddlink
use DDLINK/DDSUBLINK instead of LINK2 and raw HTML
2015-11-27 04:54:52 +02:00
Jonathan M Davis
7afe668428 Merge pull request #3807 from dcarp/Fix15320
[Issue 15320] eliminate 'static assert(__traits(compiles,..'
2015-11-26 17:57:44 -08:00
anonymous
6832caf0be use DDLINK/DDSUBLINK instead of LINK2 and raw HTML
DDLINK/DDSUBLINK use ROOT_DIR which is more robust than a relative path.
2015-11-26 16:04:44 +01:00