Commit graph

225 commits

Author SHA1 Message Date
k-hara
e2d991b005 Move checkCTFEable to std.exception.assertCTFEable, and use it 2013-06-02 02:32:24 +09:00
jmdavis
68f0b6d159 Deprecate xformat and xsformat.
They were intended to be temporary, and now format and sformat use their
exact implementations and have for 6 months (though for some reason, xformat
and xsformat weren't turned into aliases when that happened, which I fixed
in this commit as well).
2013-05-05 16:16:50 -07:00
Vladimir Panteleev
16286c045b DDoc tweaks and fixes 2013-04-18 23:49:06 +00:00
Jonathan M Davis
e09940470d Merge pull request #1176 from jmdavis/deprecated
Remove some undocumented, deprecated functions which are slated for removal.
2013-03-25 03:47:50 -07:00
Andrej Mitrovic
c89bc4b0e3 Fixes Issue 9753 - Remove unnecessary asserts. 2013-03-18 23:44:18 +01:00
jmdavis
8f7f6d69ac Remove some undocumented, deprecated functions which are slated for removal.
These have been deprecated for a while, but there was some balking
(primarily from Andrei IIRC) at actually removing them when they were
slated for removal, so they were instead made undocumented and slated
for removal after yet another 6 months or so. So, now that that time has
passed, here's another attempt to actually remove them.
2013-03-06 22:19:34 -08:00
Jonathan M Davis
30d565f432 Fix issue# 9609.
std.string.icmp's markup was wrong.
2013-02-27 10:54:53 -08:00
jmdavis
2735d30f4e Remove all uses of std.metastrings.Format. 2013-02-24 18:42:46 -08:00
jmdavis
9bd4044536 Added CTFE-ability tests to some stuff in std.conv and std.string.
These tests are for the functionality that std.metastrings provides, and
we need to ensure that the normal functions which are replacing
those in std.metastrings continue to work in CTFE.
2013-02-24 16:02:32 -08:00
Daniel Murphy
41a9f1fa05 Fix Issue 6408 - Phobos fixes
Do not use typeof(Type[0]) to get the element type of an array, use typeof(Type.init[0])
2013-01-18 19:10:16 +11:00
monarch dodra
cd9bc7e7e8 missing import 2012-12-21 12:07:23 +01:00
monarch dodra
78873a582d representation unittest 2012-12-21 11:31:09 +01:00
monarch dodra
83200a11f3 FormatError => FormatException
Because it's deprecated.
2012-12-21 11:27:22 +01:00
Andrei Alexandrescu
d6100b404f Merge pull request #939 from 9rnsr/replace_format
Replacement std.string.format and sformat implementations in November 2012
2012-12-08 19:41:35 -08:00
k-hara
28dedee456 Issue 7444 - Require [] for array copies too 2012-11-20 17:55:21 +09:00
k-hara
67d726f75c [Fixup] Support running unittests without -d switch 2012-11-14 14:25:47 +09:00
k-hara
d76c46f40b Replace format and sformat implementations 2012-11-14 14:25:36 +09:00
monarch dodra
82d3e1c8a7 strip unittest 2012-10-28 11:54:34 +01:00
monarch dodra
fcdb0bae19 stripLeft & sameTail tweak
Technically, we are stripping from the left, so the resulting array should have the sameTail as the original
2012-10-28 11:54:34 +01:00
Alex Rønne Petersen
a55675eace Merge pull request #887 from Poita/stdStringIndent
Fix indentation for std.string.wrap
2012-10-23 09:02:29 -07:00
Peter Alexander
882d1f0fc1 Fix indentation for std.string.wrap
The code indentation for std.string.wrap was bugging me. This fixes it.
2012-10-23 17:05:21 +01:00
Andrei Alexandrescu
0db13f5966 Merge pull request #859 from alexrp/sizediff_t-to-ssize_t
Remove all uses of sizediff_t in favor of ptrdiff_t.
2012-10-14 19:26:59 -07:00
alexrp
b202180295 Remove all uses of sizediff_t in favor of ptrdiff_t. 2012-10-15 04:24:09 +02:00
jmdavis
cd75c2c7cb Added deprecation messages to std.string. 2012-10-13 14:08:03 -07:00
jmdavis
ec2f05ea3b Made it so that deprecated functions in std.string are undocumented. 2012-09-30 02:45:07 -07:00
Denis Shelomovskij
ef10bdf6bc Fix Issue 8516 - std.string.representation works incorrect for shared(const(T)) types 2012-08-07 11:17:29 +04:00
jmdavis
d283d5735c Move August removals to September.
Several deprecated items were listed for removal in August, but it's
looking likely that 2.060 will come out in August, and I'd prefer not to
have them removed for 2.060 given how many items are already in the
changelog, and they're already deprecated, so it'll only affect people
compiling with -d either way. So, I'm changing the ddoc comments to say
September instead of August. They'll be removed in 2.061.
2012-07-23 23:11:07 -07:00
alexrp
98677c4ed8 Remove the move notice table in std.string. 2012-07-15 22:32:50 +02:00
Andrei Alexandrescu
8c747b0aba Merge pull request #655 from jmdavis/string
Fix for issue# 8323.
2012-07-08 20:16:36 -07:00
jmdavis
7514e0322a Fixed deprecations, since we had no release in June. 2012-07-06 22:15:53 -07:00
jmdavis
121a69a04b Optimizations for startsWith and endsWith. 2012-07-02 21:55:07 -07:00
k-hara
abcc7e75fc Add comment for scheduled for replacement of std.string.format and sformat. 2012-07-01 06:15:55 +09:00
jmdavis
6203835e5d Fix for issue# 8323.
I decided to improve the documentation for some of std.string's
functions and ended up optimizing their implementations as well (I
benchmarked the new versions against the old versions, so they should
definitely be faster). I also ran into bug# 8323, so I fixed it as well.
2012-06-30 01:12:08 -07:00
cjoan
7f66504eb5 Make it clear that std.string.chomp consumes only one delimiter, and not as many as possible. 2012-06-24 17:29:31 -03:00
Brad Anderson
05b8ec7872 Use toUTFz's better description for toStringz
Also fix typo.
2012-06-13 11:46:18 -06:00
jmdavis
08acc16b83 Fix issue 7515
I created an adjusted version of translate which is ASCII-only and
renamed maketrans to makeTrans with some minor changes. Instead of
deprecating the old translate and maketrans, maketrans is now a
deprecated alias of makeTrans, and the new ASCII-only translate should
be compatible with the old one.
2012-05-28 15:35:28 -07:00
k-hara
a6095fc9f3 Add new xformat and xsformat, they use formattedWrite as well as like writef family. 2012-04-09 02:13:00 +09:00
jmdavis
88faac2475 Moved removals of deprecated symbols from July to August.
The release didn't happen in January, so July isn't a 6 month
deprecation period anymore.
2012-02-11 02:48:49 -08:00
jmdavis
091609ca1e Moved February deprecations to March.
Having the January deprecations and February deprecations in the same
month seems a bit much to me, since we managed to have both of those
months have quite a few, whereas the next few months have very few if
any. And we're close to release too, so I'd prefer to avoid causing
issues by deprecating them now.
2012-02-11 02:44:46 -08:00
jmdavis
fd0982d88a Fixed some deprecations in std.string. 2012-02-11 02:39:53 -08:00
jmdavis
60a0a1c9e7 Deprecated stuff that was scheduled for deprecation in January 2012. 2012-01-02 22:52:36 -08:00
Walter Bright
380ae65511 remove empty statements 2011-12-29 00:05:45 -08:00
jmdavis
5d90bc3f10 Minor fix to deprecation message on std.string.splitLines.
http://d.puremagic.com/issues/show_bug.cgi?id=6990
2011-11-22 19:04:03 -08:00
jmdavis
256976dddd Removed "scheduled for deprecation" pragmas.
The pragmas have not been as effective as we might have liked, since
they only work with templates and can't tell you where in your code you
need to make changes, and they seemed to have been more annoying to
programmers than helpful, so we're going to discontinue them. We'll
leave them in for stuff that's actually been deprecated until deprecated
has been improved enough to take a message, but we'll leave "scheduled
for deprecation" messages to the documentation and changelog.
2011-10-23 23:11:17 -07:00
Abscissa
e073285016 Added std.string.outdent. 2011-10-02 00:23:58 -04:00
Jonathan M Davis
9b411851ba Merge pull request #278 from Abscissa/splitLinesKeepTerm
Add optional KeepTerminator param to splitLines.
2011-09-29 21:49:16 -07:00
k-hara
78a2d8abdc Reduce module dependencies. 2011-09-29 07:09:16 +09:00
Abscissa
e63a66cd13 Kill some trailing whitespace. 2011-09-28 05:56:22 -04:00
Abscissa
085f1fd3de splitLines cleanup suggestions. 2011-09-28 05:43:41 -04:00
Abscissa
62cc5e9c87 Add optional KeepTerminator param to splitLines. 2011-09-27 13:53:26 -04:00