Commit graph

487 commits

Author SHA1 Message Date
Sebastian Wilzbach
3817d6f37d Check public functions for public examples (#4998)
Check public functions for public examples
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-03-01 15:49:15 +01:00
Jack Stouffer
8475b593c3 Merge pull request #5009 from wilzbach/fix-16281
Fix issue 16281 - std.format.formattedRead should use ref instead of requiring pointers
2017-02-27 14:20:34 -05:00
The Dlang Bot
0fef09a311 Merge pull request #5191 from JackStouffer/format3
Simply the docs of std.format.unformatValue
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-02-26 22:05:42 +01:00
Jack Stouffer
a081721327 Merge pull request #5190 from JackStouffer/format2
Add Throws info to the docs of std.format.formattedRead
2017-02-25 22:29:16 -05:00
Jack Stouffer
c1e9f21cbf Simply the docs of std.format.unformatValue 2017-02-24 13:28:19 -05:00
Jack Stouffer
3741955334 Add throws info to the docs of std.format.formattedRead 2017-02-24 13:16:40 -05:00
Jack Stouffer
fa8b82c1bc Improve the enfore code and the docs for std.format.sformat 2017-02-24 13:09:53 -05:00
Sebastian Wilzbach
fc1eb2f0ce Fix issue 16281 - std.format.formattedRead should use ref instead of requiring pointers 2017-02-22 06:16:39 +01:00
Sebastian Wilzbach
425ab667a3 Automatically set the range style from a..b -> a .. b
Commands:

sed -E "s/([[:alnum:]])[.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]])[.][.] ([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) [.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
2017-02-22 05:37:31 +01:00
Sebastian Wilzbach
805c720595 Unify Phobos by ensuring there's always a space after cast(...)
Command:

sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
2017-02-21 16:40:20 +01:00
Sebastian Wilzbach
87dec58a41 DStyle: Constraints on declarations should have the same indentation level 2017-02-17 07:36:23 +01:00
Jack Stouffer
316b4501b7 Expand the examples for std.format.unformatValue to show all uses cases 2017-02-15 15:14:41 -05:00
Sebastian Wilzbach
eb2bf6fd6b Merge pull request #5130 from JackStouffer/format-docs
Consolidated and added examples to the std.format.unformatValue docs
2017-02-15 19:52:00 +01:00
Jack Stouffer
d78301a2a6 Consolidated and added examples to the std.format.unformatValue docs 2017-02-15 12:35:37 -05:00
Jack Stouffer
8424b57bfb Remove unnessesary GC allocations in std.format.singleSpec 2017-02-14 17:09:57 -05:00
Walter Bright
080430e7e8 Merge pull request #5075 from JackStouffer/pure_format
Added pure to unittests in std.format
2017-02-10 15:25:29 -08:00
Walter Bright
e406bd9e21 std.format: optimize converting unsigned to string 2017-02-08 18:23:53 -08:00
byebye
c34561b284 Fix issue #8260 - allow only pointers as formattedRead parameters 2017-01-30 20:51:37 +01:00
Jack Stouffer
877f1bb989 Added pure to unittests in std/format.d 2017-01-30 11:15:08 -05:00
Walter Bright
e9cae54d54 std.format: remove unused declaration of _pfloatfmt 2017-01-21 16:13:03 -08:00
Walter Bright
a5556a12a3 formattedWrite - pointers to stack variables need to be 'scope' 2017-01-20 20:22:48 -08:00
Sebastian Wilzbach
cf65a3be03 Remove deprecated doFormat 2016-12-23 23:24:23 +01:00
sprinkle131313
0857bdfe27 Enables long line style check. 2016-12-20 04:00:36 -05:00
Sebastian Wilzbach
cc7f125ed1 Add missing imports to public unittests 2016-12-15 23:23:35 +01:00
Andrei Alexandrescu
99398975d4 Merge pull request #4912 from RazvanN7/bootcamp_fixes
Issue 5236 - raw reading for integers and a few refactorings
2016-12-07 12:47:56 -05:00
RazvanN7
050781da61 Added proper indentation 2016-12-06 13:10:10 +02:00
RazvanN7
5498a70f0e Applied review feedback 2016-12-06 13:10:10 +02:00
RazvanN7
bacddb87ff Issue 5236 - [patch] std.format.formattedRead/unformatValue does not support the raw reading of integer types 2016-12-06 13:10:10 +02:00
RazvanN7
f5bece91ab Issue 5236 - [patch] std.format.formattedRead/unformatValue does not support the raw reading of integer types 2016-12-06 13:10:10 +02:00
RazvanN7
58374ac540 Issue 5236 - [patch] std.format.formattedRead/unformatValue does not support the raw reading of integer types 2016-12-06 13:10:10 +02:00
RazvanN7
3ab55e96e1 Issue 5236 - [patch] std.format.formattedRead/unformatValue does not support the raw reading of integer types 2016-12-06 13:10:10 +02:00
RazvanN7
ddc63be000 Issue 5236 - [patch] std.format.formattedRead/unformatValue does not support the raw reading of integer types 2016-12-06 13:10:10 +02:00
RazvanN7
6d13f66855 Issue 5236 - [patch] std.format.formattedRead/unformatValue does not support the raw reading of integer types 2016-12-06 13:10:10 +02:00
Martin Nowak
ce85fd60a9 fix Issue 16661 - failing dstring/wstring format string
- fix incorrect pointer diff computation introduced by PR #4427
  commit 2be035584f
2016-11-16 19:47:00 +01:00
Jack Stouffer
1d25050e49 Added const and immutable to several variables in std.format 2016-07-27 18:01:01 -04:00
Atila Neves
ed058a3404 Add @system and @safe to std.format unit tests 2016-07-10 14:09:30 +02:00
Walter Bright
e41d77db83 Merge pull request #4467 from JackStouffer/format
Fixed std.algorithm imports in std.format
2016-07-08 03:36:37 -07:00
Andrei Alexandrescu
5e49ae97f0 Merge pull request #4468 from WalterBright/fmtsep
harmonize use of std.format sep[]
2016-07-03 17:26:21 -04:00
Walter Bright
c2b4aebab4 harmonize use of std.format sep[] 2016-07-03 11:59:49 -07:00
Jack Stouffer
66d619ae1d Fixed local imports in std.format 2016-06-30 18:07:00 -04:00
Andrei Alexandrescu
4c935837c1 Merge pull request #4464 from WalterBright/inf-format
fix formatting of inference
2016-06-27 06:08:24 -04:00
Walter Bright
043e0f4353 fix formatting of inference 2016-06-27 02:26:46 -07:00
Jack Stouffer
36e476941b Fixed std.algorithm imports in std.format 2016-06-26 17:53:27 -04:00
Andrei Alexandrescu
dc52a43774 Merge pull request #4476 from WalterBright/deprecateDoFormat
std.format: deprecate doFormat()
2016-06-26 08:23:00 -04:00
Andrei Alexandrescu
4735465347 Merge pull request #4469 from WalterBright/formatsafe
annotate std.format with @safe
2016-06-26 08:18:50 -04:00
Andrei Alexandrescu
9a8d6cbcf4 Merge pull request #4466 from WalterBright/headUpToNextSpec
fix unsafe code in std.format headUpToNextSpec
2016-06-26 08:14:41 -04:00
Walter Bright
bb77a3a889 std.format: deprecate doFormat() 2016-06-25 20:07:17 -07:00
Walter Bright
0281bd3005 annotate std.format with @safe 2016-06-25 00:53:29 -07:00
Walter Bright
b78329297c fix unsafe code in std.format headUpToNextSpec 2016-06-24 18:54:19 -07:00
Walter Bright
f717ca9182 remove unsafe code from std.format readUpToNextSpec 2016-06-24 18:45:08 -07:00