Commit graph

117 commits

Author SHA1 Message Date
Razvan Nitu
e78bd852a2
Merge pull request #6905 from WalterBright/save-doc
improve documentation for .save() property
2021-04-22 22:14:59 +08:00
berni44
6f2a0934a7 Adapt imports of std.format to new structure of std.format. 2021-03-19 13:22:00 +01:00
Nathan Sashihara
3733c9d202 Fix Issue 21559 - Speed up walkLength for narrow strings 2021-01-19 10:49:21 -05:00
Andrei Alexandrescu
71ff9d79c5 EASY: factor implementations of range length into a mixin template 2020-09-20 02:38:14 +02:00
Nathan Sashihara
99e390486c Reduce the number of isAggregateType!T checks
Some are redundant. Others can be replaced by cheaper traits checks.
2020-08-18 03:50:12 +02:00
Steven Schveighoffer
17ae8fc9be Make it so std.utf can be tested with no autodecoding. 2020-08-17 06:53:34 +02:00
Nathan Sashihara
453faadf5b Replace is(Unqual!T == Unqual!U) with is(immutable T == immutable U) for speed & memory usage 2020-08-03 15:07:32 +02:00
aG0aep6G
26822f44b5 fix issue 20949 - std.range.popFront is unsafe in release mode 2020-06-18 15:15:46 +02:00
Iain Buclaw
8a38e6e562 std.range.primitives: Fix static condition for X32 targets 2020-04-16 12:21:16 +02:00
Geod24
04f3979317 Replace 'Issue XXX' with Bugzilla links
Make the links clickable, as was done in the DMD repository.
Also avoids any ambiguity w.r.t. where the issue is stored.
2020-04-13 16:28:09 +09:00
Adam D. Ruppe
ae93f5317c Use consistent quickindex wrapper around hand-written list-of-links tables 2020-02-21 21:04:05 -05:00
Walter Bright
46daae056b start making use of isAutodecodableString() 2019-08-12 22:34:38 -07:00
The Dlang Bot
5a4918e312
Merge pull request #7057 from n8sh/inout-front
Add `inout` to range.front to reduce template proliferation
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2019-06-12 12:29:24 +02:00
Nick Treleaven
249853bda4
[docs][std.range.primitives] Add links to array range primitives
It's important to mention this, particularly so the user notices the auto-decoding overloads.
2019-06-11 16:57:27 +01:00
Nathan Sashihara
e5bae1d839 Add inout to std.range.front to reduce template proliferation
The Win32_64 linker error that prevented this from being included in
PR #6743 no longer occurs in CI.
2019-06-06 18:31:34 -04:00
Walter Bright
8d404f9678 hasLvalueElements(): use overloading to detect lvalue 2019-05-20 08:47:50 -07:00
Walter Bright
53bdd83de7 primitives: add scope 2019-05-09 16:26:31 +01:00
Andrei Alexandrescu
f5bf7b222f
Relax const requirement for empty primitive
Refer to discussion in https://forum.dlang.org/post/q7tvg0$2tdn$1@digitalmars.com.
2019-04-06 00:03:04 -04:00
David Nadlinger
6b97ae69d7 std.range.primitive.{Autodecoding -> autodecodeStrings}
This follows Phobos naming conventions and is more self-documenting.
2019-03-23 19:32:56 +00:00
Walter Bright
158fb2f656 add std.range.primitives.Autodecoding 2019-03-23 01:57:04 -07:00
Andrei Alexandrescu
43a9cae2d6 Remove redundant constraint from empty() range primitive 2019-03-18 18:45:41 -04:00
Walter Bright
90df02d2ec improve documentation for .save() property 2019-03-16 15:30:29 -07:00
Nathan Sashihara
4cc47e6dc2 Fix Issue 19364 - Decrease template bloat for string functions
Use const(E)[] instead of E[] when it is valid and doesn't change the
return type.
2018-11-18 15:39:29 -05:00
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
The Dlang Bot
0e8722abbd
Merge pull request #6471 from schveiguy/putstrings
char[] and wchar[] should be output ranges
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-06-29 10:04:28 +02:00
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
Steven Schveighoffer
30e0d82b18 Update documented unit test now that char[] can be an output range. 2018-04-24 11:12:29 -04:00
Steven Schveighoffer
8769ea9e46 Fix issue 18790 - Add ability for char[] and wchar[] to be output ranges. 2018-04-23 09:17:49 -04:00
The Dlang Bot
e13e3889ac
Merge pull request #6435 from JackStouffer/input-range-link
Make references to input ranges a link to isInputRange
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-04-15 01:42:45 +02:00
Steven Schveighoffer
d4a35f09da More removal of version(unittest) 2018-04-13 12:20:02 -04:00
Sebastian Wilzbach
4c016d129f Remove superfluous _range used to avoid auto-highlighting 2018-04-09 21:31:57 +02:00
Jack Stouffer
e14f89e170 Make references to input ranges a link to isInputRange 2018-04-08 16:19:57 -04:00
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Jack Stouffer
40f1c4c429 [Trivial] Skip Unittests on mismatched_args_check, remove std.range.primitives 2018-03-27 11:00:11 -04:00
Jack Stouffer
b10151ab9e Add examples to std.range.primitives and enable dscanner check 2018-03-20 16:27:48 -04:00
Jonathan M Davis
1436fca1cc Add website link to author name for Jonathan M Davis. 2018-03-10 16:31:23 -07:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
Jack Stouffer
c9122a534a Added more examples to std.range.put 2018-01-17 13:46:59 -05:00
Jack Stouffer
6909455910 Make the behavior of put with slices clear 2018-01-16 10:57:21 -05:00
Sebastian Wilzbach
7de3787876 Use static foreach in Phobos 2018-01-03 17:30:11 +01:00
Sebastian Wilzbach
45760aa001 Add @safe to unittest in std.range 2017-12-17 20:43:06 +01:00
Sebastian Wilzbach
9e58ebb708 Add platform-dependent tests for std.range.hasLength 2017-12-13 09:11:45 +01:00
Sebastian Wilzbach
b97afe2016 Move deprecations along: std.range.hasLength 2017-12-13 07:25:44 +01:00
Johan Engelen
e0e015d03f
[Trivial] improve documentation of popBackN
note that the popBackN doc is shared with popFrontN. This change moves the description of popBackN up, such that it is closer to where the reader will want to find it. Also adds more explicit mention of popFrontN, such that it is clear which one of the two is being described.
2017-12-03 14:37:13 +09:00
Johan Engelen
5f05f489af
[Trivial] Fix typo 2017-12-01 18:37:18 +09:00
RazvanN7
8525d60821 Replace hasLength 2017-10-12 11:14:09 +03:00
RazvanN7
a3a9fc5b80 Fix documentation 2017-10-09 16:37:54 +03:00
RazvanN7
bf1c178382 Fix Issue 6409 - std.array.empty for associative arrays too 2017-09-07 19:29:18 +03:00
H. S. Teoh
4501f5520a Add unittest. 2017-08-10 10:19:18 -07:00