Commit graph

446 commits

Author SHA1 Message Date
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
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
Sebastian Wilzbach
ec47ac4224 Remove the WEB macro in favor of HTTP
replacement: sed 's/\$(WEB/\$(HTTP/g' -i **/*.d
2016-06-16 00:14:51 +02:00
Walter Bright
2be035584f fix some unsafe behavior in std.format 2016-06-14 02:57:16 -07:00
Sebastian Wilzbach
1d34a121e9 apply all-man braces in Phobos
// find common cases
sed -E "s/^(\s*)((if|static if|for|foreach|foreach_reverse|while|unittest|switch|else|version).*)\s*\{$/\1\2\n\1{/" -i **/*.d
// catch else-if
sed -E "s/^(\s*)} (else static if| if|else if|else)(.*)\s*\{$/\1}\n\1\2\3\n\1{/" -i **/*.d
// remove created trailing whitespace
sed -i 's/[ \t]*$//' **/*.d
2016-05-31 13:07:53 +02:00
anonymous
d648f9320e XREF_PACK -> REF (sed)
Done by:

from='\$\(XREF_PACK\s+([^(),]*),\s*([^(),]*),\s*([^(),]*)\)'
to='$(REF \3, std,\1,\2)'
(find . -type f -name "*.d" -print0; \
    find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r "s/$from/$to/g"
2016-05-27 21:32:46 +02:00
anonymous
764caefa36 XREF -> REF (sed)
Done by:

(find . -type f -name "*.d" -print0; \
    find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r \
    's/\$\(XREF\s+([^(),]*),\s*([^(),]*)\)/$(REF \2, std,\1)/g'
2016-05-27 21:32:46 +02:00
Sebastian Wilzbach
18b8abf60a remove the deprecated wiki macros 2016-05-27 05:52:23 +02:00
Sebastian Wilzbach
89a2dd5f11 use mref macro instead of link2 2016-05-16 03:30:08 +03:00
Jack Stouffer
de82527866 Fixed long lines in std/format.d 2016-05-10 20:51:39 -04:00
Sebastian Wilzbach
3d67cd228c style fix: space between operators 2016-04-26 22:26:20 +03:00
H. S. Teoh
5c53be7676 Merge pull request #3977 from joakim-noah/android
Android update
2016-02-23 13:51:42 -08:00
Steven Schveighoffer
fac1bc22b5 Fix import issues for std.format and std.stdio 2016-02-21 18:58:12 -05:00
Martin Nowak
ce2ac192c9 fix incorrect imports/fqn usages
- mostly of the form `import a.b : sym; a.b.sym();`, which is wrong b/c
  selective imports do not add the module to the current scope
2016-02-20 14:41:44 +01:00
H. S. Teoh
4a762a9ae4 Fix issue 15663: format("%#o", 0) should be "0" not "00". 2016-02-11 17:24:15 -08:00
Joakim
10c01a0614 On Android, update std.datetime to extract timezone data and some other fixes. 2016-02-10 14:25:42 +05:30
Jonathan M Davis
0899d9403f Move deprecations along.
This includes deprecating std.c.*, which apparently was marked as
scheduled for deprecation in 2.068 but never actually deprecated (though
it looks like it was previously removed from the documentation build,
since it doesn't show up on dlang.org).
2015-12-30 00:18:53 -08:00
Robert burner Schadek
632489b657 better debugging
fix
2015-11-05 22:46:17 +01:00
Robert burner Schadek
98b2fc0975 std.format_housekeeping
* reactived outcommented unittests
* moved comment examples into unittest examples
* fixed indention
2015-11-05 22:46:17 +01:00
Walter Bright
cf22992cbb Merge pull request #3768 from CyberShadow/pull-20151024-051829
HTML fixes
2015-10-24 15:05:00 -07:00
Vladimir Panteleev
86cf380007 HTML fixes 2015-10-24 06:19:23 +00:00
tsbockman
8343948e17 Trivial fixes to enable Phobos to compile properly with DMD PR #5229. 2015-10-23 20:43:52 -07:00
Shriramana Sharma
9faf41e770 std.format: give a proper message when a floating point value is not given a compatible format character 2015-10-21 20:22:52 +05:30
Brian Schott
67c95e6de2 Merge pull request #3715 from dcarp/AliasSeq
Rename obsolete TypeTuple to AliasSeq
2015-10-16 20:59:56 -07:00
Vladimir Panteleev
82590904f7 fix Issue 15208 - Eradicate all uses of "Enforcement failed" in Phobos 2015-10-15 23:44:44 +00:00
Dragos Carp
d698887729 Remove obsolete TypeTuple references
Replace following names:
std.typetuple      -> std.meta
TypeTuple          -> AliasSeq
ParameterTypeTuple -> Parameters
FieldTypeTuple     -> Fields

std.traits requires more work than search/replace and is left unchanged.
2015-10-13 20:37:44 +02:00
Vladimris Nordholm
645e9e14e9 Change Char[] to immutable(Char)[] 2015-08-28 22:06:13 +02:00
vladdeSV
0cb9b9e523 format() returns the correcty type
Change type from C to S

Fix error in conv.d

Added isSomeString

Changed unittests

assert message is converted to string

Change S to Char[]

Replace std.conv.convFormat() with alias to std.format.format()

Revert S to Char[]

Change back to Char[]

Remove pure
2015-08-26 11:25:57 +02:00
Hara Kenji
c3a39c5461 Merge pull request #3470 from WalterBright/betterFormatU
std.format.formatUnsigned: refactor
2015-07-04 14:36:23 +09:00
Hara Kenji
c47f468a0e Merge pull request #3471 from WalterBright/betterFormat
std.format - better formatChar()
2015-07-04 13:38:31 +09:00
Walter Bright
83c3adb2a0 std.format - void buffer init 2015-07-03 20:21:59 -07:00
Walter Bright
e9b59df0ab std.format - better formatChar() 2015-07-03 19:25:06 -07:00
Walter Bright
f4e37c3979 std.format.formatUnsigned: refactor 2015-07-03 17:14:13 -07:00
anonymous
b28962635f fix package XREFs
Also add escaping underscores in some places, and rewrap to 80 columns
where touching anyway.
2015-06-15 22:30:41 +02:00
Daniel Murphy
ebc90dc149 Merge pull request #2657 from joakim-noah/separate_glibc
Separate linux kernel, glibc, and bionic APIs where appropriate
2015-05-30 08:22:30 -06:00
Robert burner Schadek
434d6bb202 format: alias syntax update 2015-05-28 18:43:49 +02:00
Joakim
3352c90c2e Separate linux kernel, glibc, and bionic APIs where appropriate 2015-05-27 21:54:52 -05:00
Martin
5ddd7e5da3 Adapt some unit tests for MSVCRT 14 (VS 2015). 2015-05-21 23:47:33 +02:00
Martin Nowak
116dec1374 Merge pull request #3263 from rainers/format_ti_const_base
Adjust to change in TypeInfo_Const.next/base
2015-05-07 20:20:52 +02:00
Rainer Schuetze
782a1c07c3 Adjust to changed fixed TypeInfo_Const.next -> base 2015-05-06 23:37:40 +02:00
Walter Bright
d9a9826e55 Revert "Introducing std.meta package" 2015-05-06 14:36:45 -07:00
Dicebot
82f54a38d3 TypeTuple -> MetaList inside Phobos 2015-05-05 22:22:11 +03:00
Dicebot
73f773838d import std.typetuple -> import std.meta 2015-05-05 22:22:10 +03:00