Commit graph

200 commits

Author SHA1 Message Date
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
Andrei Alexandrescu
cb3e372eb7 Reduced tr unittest to keep test time under control 2011-09-24 23:43:21 -05:00
Andrei Alexandrescu
537c59c79e Merge pull request #178 from jmdavis/deprecation
Deprecated stuff which was scheduled to be deprecated in August 2011.
2011-08-14 11:04:21 -07:00
Andrei Alexandrescu
61ed7dee1c Merge pull request #157 from jmdavis/translate
Updates to std.string.translate and std.string.tr
2011-08-13 23:38:04 -07:00
jmdavis
b9accb2217 Merge branch 'master' into deprecation
Conflicts:
	std/string.d
2011-08-09 00:44:05 -07:00
jmdavis
db5051a5af Changed "Warning" to "Notice" in deprecation messages.
Hopefully, they don't get confused with compiler warnings this way.
2011-08-09 00:39:27 -07:00
jmdavis
5b2a8f6de9 Deprecated std.string functions which were scheduled for deprecation in August 2011. 2011-08-09 00:27:39 -07:00
Vladimir Panteleev
bcbfe2d433 Various DDoc syntax fixes 2011-08-07 22:59:37 +03:00
jmdavis
a42105cb26 Changed std.string.tr's table to use a D macro.
I also fixed a few uses of XREF in std.string where a _ was needed to
make the macro work correctly.
2011-07-27 22:55:18 -07:00
jmdavis
02ff34f516 Made std.string.tr work with any string type.
We should probably look at making std.string.tr do more (everything?)
that the Posix tr utility does at some point.
2011-07-24 21:52:48 -07:00
jmdavis
ea95d57f36 Made translation work with unicode.
The old version is now scheduled for deprecation.
2011-07-24 17:31:29 -07:00
jmdavis
09b7cf618b Adjusting deprecation dates for a July release. 2011-07-04 01:46:26 -07:00
jmdavis
a755151446 Some adjustments so that std.string compiles with the recent compiler changes. 2011-06-29 21:43:07 -07:00
jmdavis
558cc04e68 Renamed expandTabs to detab. 2011-06-22 21:57:34 -07:00
jmdavis
0ca76972fe Renamed toUniLower and toUniUpper to toLower and toUpper.
toUniLower and toUniUpper are now scheduled for deprecation.
2011-06-22 20:34:08 -07:00
jmdavis
face0202ec Renamed isUniLower and isUniUpper to isLower and isUpper.
isUniLower and isUniUpper are now scheduled for deprecation.
2011-06-22 20:33:53 -07:00
jmdavis
e3f7c0c288 Renamed isUniWhite to isWhite. 2011-06-22 19:44:36 -07:00
jmdavis
15fb65f1bb Reverted toAsciiLower and toAsciiUpper to toLower and toUpper. 2011-06-22 19:22:27 -07:00
jmdavis
25b755a843 Reverted isAsciiWhite to isWhite. 2011-06-22 19:20:15 -07:00
jmdavis
34bce538ce Reverted isAsciiLower and isAsciiUpper to isLower and isUpper. 2011-06-22 19:13:45 -07:00
jmdavis
d351f2864a Added test case for bug# 5608. 2011-06-19 19:14:02 -07:00
jmdavis
42a9860dd5 Fixed bug# 4608 and updated changelog.
http://d.puremagic.com/issues/show_bug.cgi?id=4608
2011-06-19 19:03:25 -07:00
jmdavis
2d310e5e20 Changed the names of some of the std.ascii functions.
isWhite, isLower, isUpper, toLower, and toUpper now have Ascii in their
name, which matches what std.unit does with its versions of those
functions. Hopefully, it should also reduce bugs due to using the wrong
function between the ASCII and unicode versions by making the difference
more obvious.
2011-06-19 18:41:00 -07:00
jmdavis
8b837efb01 Added warning to toStringz about C functions keeping pointers around. 2011-06-19 18:09:10 -07:00
jmdavis
213c064e70 Reverted change from toStringz to toStringZ.
There was no consenus in the newsgroup about what to do about renaming
toStringz to be properly camelcased. It was pretty much divided between
renaming it to toCString and leaving it exactly as-is. No one wanted it
to be toStringZ. So, given the lack of consensus, I'm just going to
leave it as toStringz.
2011-06-18 01:13:21 -07:00
jmdavis
f8e35a8288 Fixed it so that capwords' unit tests didn't print out deprecation message. 2011-06-14 23:34:39 -07:00