Martin Nowak
95a1713806
Merge remote-tracking branch 'upstream/stable' into merge_stable
2018-10-05 17:26:18 +02:00
Iain Buclaw
fd5facfe04
posix.mak: Enforce whitespace before opening parenthesis for version conditions
2018-09-22 16:57:24 +02:00
Dragos Carp
838f5994ed
Fix formattedRead throwing Exception
...
formattedRead is documented as throwing FormatException.
2018-09-20 21:28:50 +02:00
Mathis Beer
c156f4ad95
Fix issue 19252: avoid ridiculous format length overestimate; dynamic-width strings should estimate width 0, not int.max
2018-09-19 21:13:21 +02:00
Walter Bright
33cceac7ac
switch Digital Mars copyright to D Language Foundation
2018-09-05 13:49:46 -07:00
Basile Burg
db819575f1
Fix issue 11959 - Set private symbols declared in version(unittest) blocks
2018-08-26 10:22:11 +02:00
Basile Burg
6b6d5c15c0
fix issue 18838 - Formatting the number zero with separator doesn't obey width specifier
2018-08-19 19:18:03 +02:00
Mathis Beer
902468f80f
std.format: When checking for format exceptions, write into NoOpSink to avoid toString actually being called.
2018-07-19 14:45:58 +02:00
Mathis Beer
11ef212191
std.format: Don't call toString when writing into NoOpSink, which is like NullSink
2018-07-18 09:34:07 +02:00
Mathis Beer
65ca2aef50
Add unittest for issue #19003
2018-07-18 09:34:04 +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
Walter Bright
7e9193ffa6
format.d: add scope
2018-06-08 16:31:19 -07:00
Sebastian Wilzbach
c324714fde
Remove a few cases of underscore escaping
2018-06-04 13:05:01 +02:00
JinShil
aff18e8205
Remove deprecated std.c package
2018-05-31 10:00:09 +09: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
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
Sebastian Wilzbach
f01eb93b28
Use assertThrown!FormatException in std.format
2018-03-30 06:33:15 +02:00
Jack Stouffer
bbb7ba1b9c
Add documentation example to FormatException and enable dscanner check
2018-03-28 12:28:55 -04:00
Jack Stouffer
e2d791bcf1
Fix Issue 18689 - std.format should throw FormatException on bad format spec
2018-03-28 12:28:54 -04:00
Sebastian Wilzbach
d720555ffa
Merge remote-tracking branch 'upstream/stable' into merge_stable
2018-03-12 18:58:17 +01:00
Jack Stouffer
3d5cb4a0f7
Fix Issue 18548 - std.format ignores templated toString if another toString is not a template
2018-03-12 10:08:54 -04:00
Ľudovít Lučenič
de37676979
Fix Issue 18579 - Fix digits grouping in formatValue() for floating point numbers
2018-03-08 06:59:34 +01:00
Sebastian Wilzbach
93dc74be78
Merge pull request #6207 from JackStouffer/issue18486
...
Fix Issue 7879 - format of const class with non const toString()
2018-02-28 01:52:37 +01:00
Martin Nowak
09926f9837
Merge remote-tracking branch 'upstream/stable' into merge_stable
2018-02-23 21:37:12 +01:00
Sebastian Wilzbach
ab93c469f0
Add another test for #7879
2018-02-23 01:53:53 +01:00
Jack Stouffer
502aed8cc3
Fix Issue 7879 - format of const/immutable/shared class with no toString()
2018-02-22 10:49:08 -05:00
Jack Stouffer
663b5b9278
Revert addition of StdUnittest
2018-02-20 13:32:32 -05:00
Jack Stouffer
432bf7496e
Added writer version of toString to FormatSpec
2018-02-20 13:03:37 -05:00
Sebastian Wilzbach
d9830b739e
Fix DScanner warnings
2018-02-10 22:46:32 +01:00
Sebastian Wilzbach
611e62c96f
Turn enforce into an eponymous template + undocument enforceEx
2018-02-07 01:01:59 +01:00
Sebastian Wilzbach
b121fc9105
Revert "Turn enforce into an eponymous template + undocument enforceEx"
2018-02-06 16:55:28 +01:00
The Dlang Bot
757ec92db1
Merge pull request #6086 from wilzbach/enforceEx
...
Turn enforce into an eponymous template + undocument enforceEx
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-02-06 05:34:25 +01:00
Sebastian Wilzbach
78dcc91e57
Replace enforceEx with enforce
2018-02-02 15:50:10 +01:00
Jack Stouffer
18cbb29b04
Replaced version(unittest) blocks with version(StdUnittest)
2018-02-01 19:56:59 -05:00
The Dlang Bot
b676da0a98
Merge pull request #6047 from BBasile/issue-11747
...
fix issue 11747 - Better error message with @disabled toString
merged-on-behalf-of: H. S. Teoh <quickfur@users.noreply.github.com>
2018-01-27 04:43:23 +01:00
Basile Burg
860eeb59b8
fix typo in code comment
2018-01-26 13:37:08 +01:00
The Dlang Bot
48b3d0914a
Merge pull request #5991 from JackStouffer/format-tostring
...
[RFC] Make Output Ranges Using Methods The Preferred toString Option
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-24 05:41:23 +01:00
Basile Burg
4f67cdf115
fix issue 11747 - Better error message with @disabled toString
2018-01-22 09:57:04 +01:00
The Dlang Bot
976cb990f1
Merge pull request #6014 from wilzbach/complex
...
Start to move away from complex and imaginary types
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-01-18 22:34:40 +01:00
Sebastian Wilzbach
a972e266ed
Allow running all unittest with -transition=complex
2018-01-17 11:14:32 +01:00
The Dlang Bot
4f8d010f1a
Merge pull request #6026 from JackStouffer/format-guess-length
...
Optimized format with compile time format strings
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-16 16:59:04 +01:00
Jack Stouffer
6527cbe107
Optimized compile time formatstring format overloads
...
Added function to std.format to make an educated guess at the length of the resulting string,
use that data to reserve capacity in the appender before anything is written to it.
2018-01-16 09:30:03 -05:00
Basile Burg
f9058bce61
fix issue 7054 - format() aligns using code units instead of graphemes
2018-01-13 00:20:44 +01:00
Jack Stouffer
1dd6df3bc2
Modify std.format to recognize output range using toString
2018-01-12 09:40:39 -05:00
Sebastian Wilzbach
6f0aa28dcb
Remove unused primitiveTypeInfo and deprecate unused Mangle
2018-01-09 20:36:26 +01:00
Sebastian Wilzbach
ee612de84f
Use a switch instead of a global dictionary for primitiveTypeInfo
2018-01-08 19:09:53 +01:00
The Dlang Bot
f3189822ab
Merge pull request #5989 from wilzbach/static-foreach
...
Use static foreach in Phobos
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-01-03 19:05:07 +01:00