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
jmdavis
dd3a0c20a2
Created std.ascii to replace std.ctype.
...
All of the new, properly camelcased functions in std.ctype have been
moved to std.ascii, and std.ctype has been scheduled for deprecation.
2011-06-14 04:06:54 -07:00
jmdavis
3d5a4e5f4a
Removed capWords.
...
capwords is now scheduled for deprecation with no replacement as opposed
to scheduled for deprecation with capWords replacing it. Discussion on
the newgroup made it clear that capitalize does get some use, but no one
on the list seems to use capwords (going by recent questions about it
and when std.string was discussed back in January). So, I'm setting it
on the path to removal as opposed to renaming. capitalize gives the key
building block necessary for creating such a function yourself, so the
loss of functionality is minimal.
2011-06-14 02:10:08 -07:00
jmdavis
72a3b53ebb
Fixed deprecation pragma string.
2011-06-12 17:02:01 -07:00
jmdavis
447ce1db96
Replaced uses of std.string constants which are scheduled for deprecation.
...
I also replaced the std.string constants which have the same name as the
their std.ctype counterparts so that code doesn't break which imports
both std.string and std.ctype.
2011-06-12 16:59:52 -07:00
jmdavis
654f35a677
Replaced calls to std.string and std.ctype's tolower with their toLower counterparts.
2011-06-12 16:59:52 -07:00
jmdavis
3d3c342a69
Replaced calls to std.ctype.isalnum and std.ctype.isalpha.
2011-06-12 16:59:50 -07:00
jmdavis
0e1afe82cb
Improved std.string.indexOf and std.string.lastIndexOf.
...
indexOf and lastIndexOf should not work properly with unicode for all
string types (unlike before). As part of that, I also ended up fixing a
bug in std.array.back for strings (wstrings in particular were broken).
I also improved various, related unit tests.
2011-06-12 16:59:50 -07:00
jmdavis
43263dd406
Scheduled none-string versions of std.string.isNumeric for deprecation.
2011-06-12 16:59:50 -07:00
jmdavis
69610f1b63
Improvements to expandtabs and entab.
...
They're mostly the same with slight improvements, but expandtabs was
also renamed to be properly camelcased.
2011-06-12 16:59:50 -07:00
jmdavis
953d20157d
Improvements to justification functions.
...
rjustify and ljustify were renamed, and all of the justification
functions were updated to take on the filling ability of zfill, so
zfill is now scheduled for deprecation.
2011-06-12 16:59:50 -07:00
jmdavis
8f0e08a22a
Improvements to chomp.
2011-06-12 16:59:50 -07:00
jmdavis
272e175213
Removed some old unit tests for functions no longer in std.string.
2011-06-12 16:59:50 -07:00
jmdavis
e18b5e21f5
Renamed split functions. They also work with unicode now.
2011-06-12 16:59:50 -07:00
jmdavis
70b211a511
Renamed splitlines to splitLines.
2011-06-12 16:59:50 -07:00
jmdavis
42e4f932d1
Renamed capwords to capWords.
2011-06-12 16:59:50 -07:00
jmdavis
2fd2531add
Renamed tolower/upper and tolower/upperInPlace functions.
2011-06-12 16:59:49 -07:00
jmdavis
feb840d198
Rearranged a few functions and improved some unit tests.
2011-06-12 16:59:49 -07:00
jmdavis
12bc142454
Changed toStringz toStringZ.
2011-06-12 16:59:49 -07:00
jmdavis
722db297c6
Improved std.string.icmp.
2011-06-12 16:59:49 -07:00
jmdavis
b67fd548b5
Adjusted deprecation messages for stuff which was previously scheduled for deprecation.
2011-06-12 16:59:49 -07:00
jmdavis
885d21a1e3
Removed functions which have been deprecated for quite awhile now.
2011-06-12 16:59:48 -07:00
jmdavis
27678613f1
Updated std.string to match recent changes to std.ctype and std.uni.
2011-06-12 16:59:48 -07:00