Commit graph

413 commits

Author SHA1 Message Date
Rainer Schuetze
04ae02f1c3 win64: fix format output for nan 2012-11-24 18:26:39 +01:00
k-hara
01df2f60be Remove redundant parenthesis for getters, and use assignment syntax for setters 2012-11-23 15:07:17 +09:00
k-hara
9db098b69a [Fixup] Now, bug 5625 might not be directly related to std.string.format 2012-11-14 14:25:47 +09:00
k-hara
1742cb146e Fix format result, it is breaking change 2012-11-14 14:25:46 +09:00
k-hara
f93fe17b83 [Fixup] Add leading format string 2012-11-14 14:12:27 +09:00
Peter Alexander
a00c3c825c Fix bug 8900 - Zip with infinite range fails.
`std.range.Zip` contains a `Tuple`, whose `toString()` function calls `formatElement` which eventually calls this function, leading to a static call to `walkLength` on infinite ranges. Since pul request 880, `walkLength` doesn't work with infinite ranges, so it fails to compile.

This change ensures that `walkLength` is called with only valid range types.

Bug: http://d.puremagic.com/issues/show_bug.cgi?id=8900
2012-10-27 12:02:56 +01:00
Vladimir Panteleev
fde0998dea Fix various problems in DDoc, identified from compiler warnings. 2012-10-19 19:09:47 +03:00
alexrp
b202180295 Remove all uses of sizediff_t in favor of ptrdiff_t. 2012-10-15 04:24:09 +02:00
H. S. Teoh
965e591101 Fix typo in ddoc. 2012-10-08 07:41:01 -07:00
Walter Bright
bf119860f4 fix Win64 varargs bug 2012-09-26 19:26:32 -07:00
Walter Bright
2dd8615254 varargin64 varargs issues 2012-09-22 20:31:18 -07:00
Walter Bright
18f7d60f0d Win64 fixes 2012-09-11 19:39:15 -07:00
kai
54abec0048 snprintf already defined in core.stdc.stdio.
The snprintf function is already defined in core.stdc.stdio. This version has the advantage that it also works with the MS C Runtine on Windows.
2012-09-05 20:53:25 +02:00
Andrei Alexandrescu
0a511e3975 Merge pull request #755 from 9rnsr/fix8574
Issue 8574 - [std.format] The flag ' ' works for floating numbers, not only for integers
2012-08-27 01:44:07 -07:00
monarchdodra
3a621e8276 Update std/format.d 2012-08-26 10:50:33 +03:00
monarchdodra
74982f7d7f Documenting return value of formattedRead 2012-08-25 17:45:25 +03:00
k-hara
b7df920554 fix Issue 8574 - [std.format] The flag ' ' works for floating numbers, not only for integers 2012-08-22 00:44:12 +09:00
k-hara
4a05464800 fix Issue 8339 - is(typeof(...)) is reporting true when it's false due to nested function error
Avoid frame access check and disabled default construction in predicate templates.
2012-08-18 17:49:05 +09:00
k-hara
c6dc1711c4 fix template constraints 2012-08-06 01:05:06 +09:00
jmdavis
735c2adbda Changes required for issue# 6277. 2012-07-21 01:57:28 -07:00
jmdavis
02931eb501 Revert "Merge pull request #664 from denis-sh/add-ArrayTarget-template"
This reverts commit f4d0a49493, reversing
changes made to 3cb69914c5.

The merging of request #664 was accidental, and it should not have been
merged. See https://github.com/D-Programming-Language/phobos/pull/664
for details.
2012-07-11 11:49:28 -07:00
k-hara
d6ffbd1328 Add const attribute more strictly 2012-07-11 01:02:59 +09:00
alexrp
a4220e3d79 An attempt to fix std.format build. 2012-07-09 05:48:48 +02:00
David Simcha
f4d0a49493 Merge pull request #664 from denis-sh/add-ArrayTarget-template
Add array target template
2012-07-08 13:08:27 -07:00
jmdavis
28781bfb9f Old deprecations which were not properly taken care of previously. 2012-07-07 02:03:49 -07:00
Denis Shelomovskij
00c0d61403 Replace typeof(<type>.init[0]) with templates
* ArrayTarget (12)
2012-07-06 13:38:06 +04:00
Hara Kenji
93d176eb6d Merge pull request #635 from ibuclaw/putAArray
Update putAArray for non-x86 architechtures.
2012-06-30 20:52:32 -07:00
k-hara
6c781f1ecf fix Issue 8310 - writeln of Range of fixed size array 2012-06-28 15:57:17 +09:00
Iain Buclaw
df08b7c7c9 Update putAArray for non-x86 architechtures. 2012-06-17 14:29:10 +01:00
Jonathan M Davis
53581e7a45 Merge pull request #573 from 9rnsr/disable_auto_escape
Support %-( ... %) and add documentation.
2012-06-05 22:30:47 -07:00
k-hara
064a2c5015 fix Issue 8186 - Formatting class object has an alias this to int* field is broken. 2012-06-02 19:04:33 +09:00
Hara Kenji
3115e61d28 Merge pull request #576 from 9rnsr/fix8015
Issue 8015 - std.typecons.Tuple does not support struct with alias method this
2012-05-28 12:04:26 -07:00
k-hara
f5ccd7fdab Retry to fix Issue 7348 - Format and unformat typeof(null) objects properly
We should represent null literal as "null" instead of "" in formatting, because unformatting requires one or more length string representation of the object.
2012-05-23 13:01:50 +09:00
k-hara
0320e5bd1c fix Issue 8015 - std.typecons.Tuple does not support struct with alias method this 2012-05-13 01:15:51 +09:00
k-hara
038daa5b03 Remove redundant constraints 2012-05-12 20:06:29 +09:00
Hara Kenji
c27262cdb9 Merge pull request #536 from Aatch/std-format-changes
Std format changes
2012-05-12 02:52:19 -07:00
k-hara
8362970a56 Small fix for documentation. 2012-05-12 01:21:33 +09:00
k-hara
947ff51007 Support %-( ... %) and add documentation. 2012-05-08 10:07:37 +09:00
Denis Shelomovskij
4430ee9a47 fix Issue 7975 - Incorrect quotes escaping in std.format 2012-04-23 19:45:22 +04:00
Andrei Alexandrescu
1b75b2b289 Merge pull request #231 from 9rnsr/fix6595
Issue 6595 - std.string.format() and sformat() are obsolete
2012-04-21 09:59:07 -07:00
James Miller
03673b188f Fixed up code 2012-04-20 19:09:32 +12:00
James Miller
ad092c3238 Fixed up singleSpec Documentation 2012-04-13 21:07:33 +12:00
James Miller
867d5e29d3 Adds singleSpec to std.format
Adds a helper function for geting the format spec for a single format
specifier
2012-04-13 20:58:55 +12:00
James Miller
cda3c079ee Improvements to std.format documentation 2012-04-13 20:12:12 +12:00
k-hara
9e37c2aecc fix Issue 7869 - Cannot format pointer of struct has toString member function 2012-04-09 14:32:23 +09:00
k-hara
affd4922f2 formattedWrite and formattedRead returns the number of formatted arguments 2012-04-09 02:13:00 +09:00
Andrei Alexandrescu
9273c74aa8 Merge branch 'master' of github.com:D-Programming-Language/phobos 2012-03-27 20:11:25 -06:00
H. S. Teoh
5f03c6b75d Add spacing to make example array output nicer. 2012-03-24 15:49:01 -07:00
H. S. Teoh
a27d82dc27 Document %( %| %) array formatting specifiers.
With juicy examples from Kenji Hara. :-)
2012-03-24 12:06:57 -07:00
Andrei Alexandrescu
b90e2835eb Merge pull request #488 from 9rnsr/fix_aliasthis_fmt
std.format improvement for alias this type interaction
2012-03-22 22:49:32 -07:00