Commit graph

62 commits

Author SHA1 Message Date
Lionello Lunesu
b4074054ba Fix issue 10893: added missing or renamed DDoc parameters (found by fix to 10236) 2013-08-31 15:36:29 +08:00
Hackerpilot
5cc095ee3f Removed empty declarations 2013-07-03 10:36:53 -07:00
k-hara
03a32d6fa4 Fix issue 313 & 314 2013-06-25 08:38:30 +09:00
Jonathan M Davis
b20c31dbfe Merge pull request #870 from alexrp/hash_t
hash_t -> size_t.
2012-10-15 03:13:34 -07:00
alexrp
d913e07fc5 hash_t -> size_t. 2012-10-15 04:45:17 +02:00
alexrp
b202180295 Remove all uses of sizediff_t in favor of ptrdiff_t. 2012-10-15 04:24:09 +02:00
Andrei Alexandrescu
cbc0b9a9ca Merge pull request #761 from jmdavis/string
Removed deprecated functions in std.string
2012-10-06 21:50:28 -07:00
David Nadlinger
e4fe4f3a77 Don't assume string pooling in std.xml unit test. 2012-10-06 12:13:59 +02:00
jmdavis
27469366a7 Fix modules which incorrectly use std.string's public imports.
Now, they should be correctly importing for the functions publicly
imported by std.string so that if those public imports are ever removed,
they won't break.
2012-09-30 03:29:37 -07:00
k-hara
119f7f7424 Revert all const qualifier of class member functions that inherited from Object.
This change is necessary to avoid breaking existing codes which inherit them in user code.
2012-07-31 10:05:59 +09:00
k-hara
9940579f73 Minimal reverting of Issue 1824 - Object not const correct 2012-07-22 15:21:51 +09:00
k-hara
d6ffbd1328 Add const attribute more strictly 2012-07-11 01:02:59 +09:00
k-hara
9d1809206f Fix for const Object comparison 2012-07-09 07:38:48 +09:00
jmdavis
7fd793e177 Added warnings of future deprecation to modules that will be replaced.
All of these modules are currently planned to be replaced in their
entirety, so it seems wise to have warnings about that.
2012-05-28 14:08:20 -07:00
Jonathan M Davis
88d00a04b9 Merge pull request #516 from jacob-carlborg/xml
Fix: Incorrect indentation using std.xml.pretty.
2012-05-06 00:59:33 -07:00
nhkcon
99405cfd49 fix simple example 2012-04-16 00:27:40 +03:00
Walter Bright
8fda49a93b more nothrow 2012-04-06 16:26:42 -07:00
Jacob Carlborg
c71052bbf8 Fix: Incorrect indentation using std.xml.pretty.
When an attribute contains a multibyte string std.xml.pretty
incorrectly indent the tag.
2012-04-02 20:51:00 +02:00
Walter Bright
786284e70b more const correct 2012-02-17 15:00:49 -08:00
Walter Bright
1bbdb1b958 don't reinvent hash 2012-02-17 12:39:44 -08:00
Daniel Murphy
7bed81961a The fix for issue 3731 shows a couple of places in phobos that rely on this bug. std.xml is going away, so work around the issue for now (all problems are caused by opEquals and opCmp not being const correct) and in std.datetime, AA values must be rebindable. 2012-01-28 15:16:57 +11:00
k-hara
999970c835 For propGetSet 2011-12-15 14:55:07 +09:00
David Nadlinger
e312f9898b Strict @property syntax compliance.
This enables the test suite to build with the -property switch enabled.

std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
k-hara
4bba7d6658 Fix for typeof(super) bug.
Related to: https://github.com/D-Programming-Language/dmd/pull/475
2011-10-25 15:07:49 +09:00
dawg
8783e87185 fix fallout from fixing Bug6652 2011-09-13 07:53:24 +02: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
6b731503f7 Replaced calls to rjustify with rightJustify. 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
Walter Bright
5a517b0095 remove case fallthrough 2011-06-03 19:41:52 -07:00
Walter Bright
043125d4c7 Issue 4598 - std.xml check is too restrictive 2011-02-07 00:50:02 -08:00
Walter Bright
b3ad939cf4 Issue 4069 - std.xml.Document.pretty saves empty elements with spaces and line breaks 2011-02-07 00:44:05 -08:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08: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
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
Steven Schveighoffer
77d8957add Oops, std.xml's usage of Appender was updated incorrectly 2010-08-27 13:39:02 +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
536cb93d9c Fixed issue in Appender 2010-07-06 05:34:59 +00:00
Shin Fujishiro
4c7230224f Fixed bugzilla 3465: isIdeographic can be wrong in std.xml.
- Applied Michael Rynn's contribution to isChar(), isDigit() and isIdeographic(). Now these functions are hard-coded for performance. Profiling showed that this code was three times faster than the old one.
- IdeographicTable must be sorted for lookup().
2010-05-24 04:27:25 +00:00
Shin Fujishiro
22406ba485 Fixed bugzilla 3088: std.xml.check() fails on xml comments.
Fixed wrong array indexing; s[0..n] scraps entire input after "--"!
Test case by Andrew Talbot.
2010-05-24 04:26:55 +00:00
Shin Fujishiro
47a6824e10 Fixed bugzilla 3200: std.xml doesn't follow spec for Tag.text.
Thanks to Rainer Schuetze for the patch!

Line 994: Here, we are decoding input, not encoding.
Line 1948: The text (pointed to by p) should be decoded.

In addition to the proposed patch, I explicitly specified DecodeMode.LOOSE as done in other parts of this module. And I added Jesse Phillips' test case as a unittest.
2010-05-23 11:52:41 +00:00
Walter Bright
53a3eec534 invariant => immutable 2010-05-05 22:19:49 +00:00
Andrei Alexandrescu
dbd4e31f19 Minor optimization in decode 2009-10-27 03:29:55 +00:00
Sean Kelly
747f3cf1e4 Changed Phobos to use the Boost license. Currently, all public domain modules and all licensed modules by Walter, Andrei, Bartosz, and Don have been changed to use this license (excepting std.c, for the moment). Ideally, all Phobos modules will eventually be distributed under this license, which means obtaining permission from a few more authors, deleting, or rewriting some modules.
Removed std.openrj.
2009-09-16 18:19:51 +00:00
Andrei Alexandrescu
0c142994d9 See changelog - bunch of bug fixes and a couple additions for release 2.032 2009-08-31 19:46:33 +00:00
Andrei Alexandrescu
109f1ded14 minor 2009-07-04 07:12:01 +00:00
Walter Bright
49551541c3 more integer conversion fixes 2009-06-24 20:04:54 +00:00
Walter Bright
eb37fa62a6 fix phobos build breaks from new druntime 2009-03-30 21:01:32 +00:00
Walter Bright
ae02a262d8 bugzilla 2752 2009-03-30 06:58:10 +00:00