Daniel Murphy
1590a5cc38
Issue 6572 - Deprecate typedef
...
Remove use of deprecated typedef from phobos. This mostly consists of changing typedef to alias, and disabling unittests that require typedef. One change to std.registry is needed to work around a bug in typedef (6571).
2011-08-30 13:22:10 +10:00
Daniel Murphy
0dd7702994
Issue 5825 - write is calling a deprecated function
...
Un-deprecate formatValue taking a typedef. This is not valid while typedef is not a deprecated declaration inside dmd.
2011-08-30 01:50:46 +10:00
jmdavis
0ec7697819
Fixed enum values in std.traits to follow Phobos naming conventions.
2011-08-13 00:14:13 -07:00
Andrei Alexandrescu
d2541785e7
Merge pull request #151 from cristicbz/iss6194
...
Issue 6194 - [GSoC] Destructor gets called on object before it is copied when calling writeln()
2011-07-20 12:26:48 -07:00
Cristi Cobzarenco
59e0ad77fd
Fixed ISSUE 6194 in std.format.formattedWrite
2011-07-19 15:07:05 +02:00
Daniel Murphy
88e205e70c
The index cannot be ref in a foreach over an array. The check for this is currently broken but this code is wrong anyway.
2011-07-10 03:45:34 +10: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
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
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
d10ee6c2f6
Replaced calls to std.ctype.islower with isLower.
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
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
andralex
e068168273
bugzilla 3479 - writef/writefln: positional precision not working
2011-06-05 17:55:17 -05:00
Walter Bright
5a517b0095
remove case fallthrough
2011-06-03 19:41:52 -07:00
KennyTM~
446ceac13c
Issue 5837 - Unable to format (writeln) an enum based on bool
...
Also fixed enums based on string and associative array.
2011-06-03 00:08:45 +08:00
David Nadlinger
9179668818
Enum formatting: Do not fail on values not corresponding to a member.
...
Instead, »cast(EnumType)rawValue« is printed/returned for these cases.
2011-05-31 22:40:38 +02:00
David Nadlinger
d5862fa4cd
std.format.formatValue: Names instead of integer values for enum members.
...
to!string(someEnum) is already implemented like that, which led to writeln(to!string(someEnum)) and writeln(someEnum) giving different results.
2011-05-29 21:58:21 +02:00
Andrei Alexandrescu
2bc502ae84
Added std.log
2011-05-10 19:15:00 -05:00
Andrei Alexandrescu
055cea0595
Merge branch 'master' of github.com:D-Programming-Language/phobos
...
Conflicts:
posix.mak
2011-04-06 00:32:29 -05:00
Walter Bright
88904f7795
remove octal literals
2011-04-01 21:32:09 -07:00
Andrei Alexandrescu
1083bd4e7b
One pass through std.range and friends
...
* Made emplace faster and replaced calls to it to also make them faster.
* Replaced phobos.d in posix.mak with index.d.
* Added version=StdDdoc to documentation build in posix.mak, and replaced uses of D_Ddoc with it.
* Improved documentation target in posix.mak (target dir automatically created).
* Added nice documentation table and cheat sheet at the top of std.algorithm.
* Replaced a few helper structs in std.range and std.algorithm with local structs, which simplify matters a fair amount.
* Added more constraints to functions in std.algorithm (still work in progress).
* Improved error message in std.algorithm.sort in case of failure to sort.
* std.random.dice(1, 10) now works (no need for array notation std.random.dice([1, 10])).
* Fixed documentation bugs and insufficiencies in std.range (still more to do).
* Improved speed of walkLength.
* Simplified retro.
* Simplified and optimized stride. Also folded stride(stride(r, a), b) into stride(r, a * b).
* Added roundRobin to std.range, which as a perk simplified radial.
* Added takeOne and takeNone to std.range.
* Added unsigned to std.traits.
2011-02-27 12:38:49 -06:00
Walter Bright
046e1b36db
add source links
2011-02-06 15:46:50 -08:00
Andrei Alexandrescu
4196a49db4
addendum to changeset 2359
2011-01-22 17:12:13 +00:00
Brad Roberts
c5a7e8573f
Fix bad %.*s usage.
2011-01-03 04:48:22 +00:00
Kenji Hara
e0737dee46
bugzilla 5371, ambiguous stringnize of class with alias this
2010-12-25 00:42:35 +00:00
Andrei Alexandrescu
86a080f056
Fixed unlisted bug in readf
2010-12-24 03:05:42 +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
ef4e30eccd
Partial fix for 5237 writefln doesn't respect Complex.toString
...
Allows the %f, %e, %g, %a formats to be used, but without qualifiers.
BTW: This also allows BigInt to work.
2010-11-19 09:22:04 +00:00
Shin Fujishiro
035c060d6e
Fixed bug 4638: new writeln does not recognize "wstring toString"
2010-11-16 20:39:58 +00:00
Shin Fujishiro
ff435ffcdd
Fixed bug 5154: Class Range does not work in writeln.
...
* formatValue() deals with null, and delegates the actual work to private formatRange() added in this commit.
* Removed the isSomeString!T constraint of formatRange() because strings are already filtered out by formatValue().
2010-11-16 20:39:41 +00:00
David Simcha
5b123f9d18
64-bit fixes for Phobos2. All of std now passes semantic analysis on Linux with -m64.
2010-11-10 00:02:03 +00:00
SHOO
aa8ab63026
Fixed: Bug 5130
...
http://d.puremagic.com/issues/show_bug.cgi?id=5130
writeln now accepts delegate.
2010-10-29 17:07:50 +00:00
Lars T. Kyllingstad
7aa2077935
To use isTuple, std.format needs to import std.typecons in non-unittest mode as well
2010-10-22 13:21:02 +00:00
Shin Fujishiro
a3cabfb7e8
Fixed bug 4775: No substitution on writef("%%%s", "hi").
2010-10-15 17:53:04 +00:00
Shin Fujishiro
3c048ac456
Migration of tup.field[k] to tup[k].
...
Replaced ad-hoc 'is tuple?' checks with isTuple template.
The "this._cache" change in std.range is just a workaround for bug 5046.
2010-10-13 05:39:53 +00:00
Sean Kelly
d04c21a806
Minimal support for toString use on shared objects. format now generates a meaningful compile error when attempting to format a shared object, and Tuple can now contain shared objects (the toString operation returns typeinfo for the object instead of calling toString).
2010-10-07 20:44:06 +00:00
Shin Fujishiro
96936a11a8
std.format: Added !isSomeString constraint to the const-array specialization of formatValue().
...
It conflicted with the specialization for strings.
2010-09-19 04:51:07 +00:00
Shin Fujishiro
f45f507a5f
Fix (std.format): can't format const dynamic arrays.
2010-09-19 03:39:56 +00:00
SHOO
fe6cbe460b
Fixed Bug4827
...
http://d.puremagic.com/issues/show_bug.cgi?id=4827
2010-09-18 13:57:08 +00:00
Andrei Alexandrescu
7d053a9af7
Bugzilla 626
2010-09-14 03:25:34 +00:00
Andrei Alexandrescu
3de6e43071
Bugzilla 535
2010-09-14 02:43:51 +00:00
David Simcha
79a1ebe615
Bug 4643: Shared values are unwritable
2010-09-04 16:01:08 +00:00
Steven Schveighoffer
6636569318
changed appender to prevent calling .clear on appenders of immutable or const data.
...
Removed buffer arg from std.xml.encode since most of the time the data is string data, and the buffer was defined as the same type.
Fixed std.format unittests to not use string-based appenders, since they now cannot be rewritten.
2010-08-26 19:05:09 +00:00
Steven Schveighoffer
7e89201cda
Rewrote Appender to be safer and to not corrupt memory.
...
Fixed all places that use appender to use the safer interface.
bugzilla 4681: Appender access violation
2010-08-26 11:49:50 +00:00
Andrei Alexandrescu
3f2b8c12ea
64-bit compatibility work
2010-08-22 20:55:22 +00:00
Andrei Alexandrescu
2c07d4f870
Readded complex support. Readded typedef support but deprecated.
2010-08-08 01:15:40 +00:00
Andrei Alexandrescu
04bf2b5bad
Fixed windows unittest error
2010-07-29 06:06:25 +00:00
Andrei Alexandrescu
f39e2fee99
Readded support for creal (only).
2010-07-29 04:51:33 +00:00
Walter Bright
53564aa227
rename makefile, comment out mysteriously failing test
2010-07-29 03:59:17 +00:00