Commit graph

1934 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
e89a3e3aa8 Removed extra nothrow. 2011-06-13 09:06:16 -07:00
jmdavis
d0d0f72eb1 Improvement to popBack's template constraint. 2011-06-12 22:06:26 -07:00
jmdavis
5b23fece95 Removed std.stream's versions of various std.ctype functions. 2011-06-12 17:10:57 -07:00
jmdavis
72a3b53ebb Fixed deprecation pragma string. 2011-06-12 17:02:01 -07:00
jmdavis
6b731503f7 Replaced calls to rjustify with rightJustify. 2011-06-12 16:59:52 -07:00
jmdavis
7d5c1831e5 Replaced calls to toStringz with toStringZ. 2011-06-12 16:59:52 -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
30069ea6f0 Replaced calls to std.string and std.ctype's toupper with their toUpper counterparts. 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
d10ee6c2f6 Replaced calls to std.ctype.islower with isLower. 2011-06-12 16:59:51 -07:00
jmdavis
11cdd6ce17 Replaced calls to std.ctype.isxdigit with isHexDigit. 2011-06-12 16:59:51 -07:00
jmdavis
19ae2b4998 Replace calls to std.ctype.isdigt with std.ctype.isDigit. 2011-06-12 16:59:51 -07:00
jmdavis
85049f048c Replaced calls to std.ctype.iscntrl with std.ctype.isControl. 2011-06-12 16:59:51 -07:00
jmdavis
3d3c342a69 Replaced calls to std.ctype.isalnum and std.ctype.isalpha. 2011-06-12 16:59:50 -07:00
jmdavis
76e1cfd2e9 Replaced calls to std.ctype.isspace with std.ctype.isWhite.
In a few places, I replaced it with std.uni.isUniWhite, but for the most
part, I replaced it with std.ctype.isWhite.
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
7f02a26193 Adjusted std.ctype.hexDigits.
I'm not sure exactly what we want to do with hexDigits. I had originally
added the lowercase a-f to it on the theory that they're valid digits in
hex, but there's code in Phobos which uses std.string.hexdigits.length,
so I adjusted it so that hexDigits is the same as the old hexdigits but
added fullHexDigits for the version with the lowercase letters. Perhaps
folks will have something constructive to say about that in review, but
that's what I'm doing for now.
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
jmdavis
d68ea09259 Updates to std.uni.
I added std.uni.isWhite, fixed the functions so that they returned bool
instead of int, and made a few other tweaks (including reformatting
some of the code which was nigh-on-unreadable with the very odd
indentation choices that had been made with it).

Unfortunately, the change from int to bool was made with the old
functions rather than with new ones, since the names were already good
for those functions. But the code breakage is likely to be minimal,
since the return values were always 1 or 0 and meant to be used as
boolean values. I expect that the code breakage from that will be
far smaller (possibly completely non-existent) than it would have been
to create new functions with different names which returned bool. And
since the names are good as they are, it wouldn't have been nice to
rename them anyway.
2011-06-12 16:59:48 -07:00
jmdavis
98c97de31d Updates to ctype to fix function names and return types.
The functions in ctype are now properly camelcased and return bool
instead of int.
2011-06-12 16:59:48 -07:00
Andrei Alexandrescu
f368e5acb5 Merge pull request #100 from jcd/master
Fix htod mistake by converting some ints to c_long
2011-06-12 14:53:41 -07:00
Jonas Drewsen
b1bff270da fix htod error and correct some ints to be c_long 2011-06-12 22:41:01 +02:00
Andrei Alexandrescu
0f08eac029 Merge pull request #98 from 9il/master
unused variables
2011-06-12 09:14:07 -07:00
Andrei Alexandrescu
0586a19897 Merge pull request #97 from jmdavis/broken_linux
Switching the order of some stuff seems to fix the linux build.
2011-06-12 08:53:38 -07:00
Ilya
e1b504b627 Just unused variables. 2011-06-12 16:57:27 +04:00
jmdavis
a3953a2119 Switching the order of some stuff seems to fix the linux build.
It looks like the problem was that EXTRA_DOCUMENTABLES was added to
EXTRA_MODULES before everything was added to EXTRA_DOCUMENTABLES.
2011-06-12 03:44:46 -07:00
Andrei Alexandrescu
55493bc90b Merge pull request #87 from klickverbot/cenforce-errno
Restored error code reading to cenforce().
2011-06-09 19:21:18 -07:00
Andrei Alexandrescu
bdd8f09296 Merge pull request #39 from 9rnsr/fix5663
Issue 5663 - std.array.Appender.put bug
2011-06-09 09:33:41 -07:00
Andrei Alexandrescu
c1ec579fa5 Merge pull request #86 from andralex/website
Fix 672 broken links (complements work in d-programming-language.org)
2011-06-09 09:33:13 -07:00
Andrei Alexandrescu
ea8be4b3ee Merge pull request #74 from dsimcha/master
Version 2 of sort optimizations
2011-06-09 08:23:00 -07:00
Andrei Alexandrescu
5a0134dd10 Fixed 672 broken links 2011-06-09 09:48:53 -05:00
Andrei Alexandrescu
1b894c1ba8 Merge pull request #88 from andralex/bightml
Added support for consolidated documentation in one single html file
2011-06-09 06:42:37 -07:00
Andrei Alexandrescu
30509b8809 Merge pull request #89 from jmdavis/enforce
Made most of the overloads for enforce @safe.
2011-06-09 06:41:28 -07:00
jmdavis
29cafe3d22 Made most of the overloads for enforce @safe.
The delegate version isn't @safe, but that would require conditional
attributes and/or multiple overloads where the delegate is @safe,
@trusted, or @system. I'm not quite sure what it would take, so I'm
leaving it alone for now.
2011-06-09 02:44:41 -07:00