Commit graph

150 commits

Author SHA1 Message Date
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
Andrei Alexandrescu
5a0134dd10 Fixed 672 broken links 2011-06-09 09:48:53 -05:00
jmdavis
d043103cde Fixed startsWith and endsWith with regards to the default predicate and strings.
I also fixed std.string.icmp and std.algorithm.cmp, since they had
incorrect code for checking the default predicate.
2011-06-02 21:42:24 -07:00
jmdavis
fcb672f55f Improved startsWith and endsWith.
1. startsWith and endsWith now have similar implementations.

2. They work with strings of different character sizes, whereas before
they treated strings as arrays regardless of whether they had the same
character size or not.

3. endsWith now actually works when mixing ranges and elements in the
endsWith portion like the documentation claims it does.
2011-05-30 04:13:27 -07:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
Andrei Alexandrescu
272ceaa9a6 Improvements to replicate(); documented splitter() for strings; renamed replace() in place to replaceInPlace(); removed replace() that takes void* in the last position; moved replace() from string to array and generalized it; attached constraint to functional.not; more cleanup of std.string; improved std.algorithm.util and count to accept ranges; improved constraint in std.algorithm.remove 2011-01-21 08:39:39 +00:00
Andrei Alexandrescu
8b361fb217 Moved replace from string to array 2011-01-19 09:04:29 +00:00
Andrei Alexandrescu
331dd3a489 Moved split from string to array, made one more pass through array 2011-01-19 06:44:46 +00:00
Andrei Alexandrescu
cf33c1999a Moved join from std.string to std.array, plus a few cosmetic changes 2011-01-17 20:43:54 +00:00
Andrei Alexandrescu
a0ecf2a10e Moved cmp to std.algorithm 2011-01-17 16:46:35 +00:00
Andrei Alexandrescu
b2bf0bc48c Moved count from std.string to std.algorithm, which works toward fixing 4883 2011-01-17 03:31:12 +00:00
Brad Roberts
6ef7e6baae fix std.string to pass it's unittests on 64 bit and remove it from the disabled list. 2011-01-12 08:41:31 +00:00
Andrei Alexandrescu
8bcce1a59a Minor optimization in cmp and icmp 2011-01-11 09:37:17 +00:00
Andrei Alexandrescu
de9ce5c3fe Reverted cmp and icmp to return int, take 2 2011-01-11 08:13:59 +00:00
Andrei Alexandrescu
603aadbc0e Reverted cmp and icmp to return int 2011-01-11 07:10:42 +00:00
Andrei Alexandrescu
e33609bb1f Made replace more general 2011-01-11 05:11:37 +00:00
Andrei Alexandrescu
391850ebe2 Fixes and improvements to cmp 2011-01-11 03:21:31 +00:00
Andrei Alexandrescu
09ee12db23 Fixes for bugzilla 3313 and 5443 2011-01-11 00:50:45 +00:00
Brad Roberts
f368104f37 A bunch of 64 bit fixes, including disabling tests that don't pass 2010-12-23 20:39:22 +00:00
Don Clugston
84477a5d3e Move Boost copyright declaration from ddoc to normal comment. Fixes ugly ddoc output. 2010-11-24 19:34:47 +00:00
David Simcha
8331c70969 More 64 fixes for semantic errors that only show up when templates are instantiated via unittests. Now I'm actually serious about Phobos passing semantic analysis, except for a few modules due to weird druntime issues. 2010-11-10 05:25:50 +00:00
Andrei Alexandrescu
460c844b4f Fix for bugzilla 2718 2010-09-26 21:19:14 +00:00
David Simcha
b597d23f83 Bug 4888: Heavy reliance on Bug 3534 in Phobos range usage. I used a different approach here than the first one I tried. I only did what was necessary to make Phobos work instead of trying to fix the deeper issue of making std.algorithm to work w/ const/immutable arrays. 2010-09-18 21:00:52 +00:00
Don Clugston
d9cd5b19d0 Fix a regression caused by svn 1923. Broke 'createlink.d' in the test suite. Compiler doesn't like auto returns. 2010-09-13 14:28:36 +00:00
David Simcha
d3614c89be Bug 4748: Shadowing declaration error in std.string.tolower 2010-09-04 15:23:54 +00:00
Andrei Alexandrescu
3f2b8c12ea 64-bit compatibility work 2010-08-22 20:55:22 +00:00
Lars T. Kyllingstad
b2563f8fb7 Bug 3312: std.string.count should use const(char)[], not immutable. 2010-08-13 10:21:44 +00:00
Andrei Alexandrescu
536cb93d9c Fixed issue in Appender 2010-07-06 05:34:59 +00:00
Andrei Alexandrescu
432e3fdfc8 Replaced std.contracts with std.exception throughout 2010-07-04 22:09:03 +00:00