Commit graph

74 commits

Author SHA1 Message Date
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
Walter Bright
734819923f now runs unittests with warnings on 2008-07-10 09:46:14 +00:00
Walter Bright
52686b0f17 change opEquals to return bool 2008-06-25 06:25:40 +00:00
Walter Bright
63a33bce35 added macros section 2008-06-23 23:50:27 +00:00
Janice Caron
dd08301946 Improved handling of empty elements 2008-05-08 17:11:29 +00:00
Janice Caron
426578af99 Bug fixes 2008-05-07 17:09:32 +00:00
Andrei Alexandrescu
1ae5300f52 * std.algorithm: Changed the map() function so that it deduces the return type
* std.contracts: Added file and line information to enforce. Added errnoEnforce that reads and formats a message according to errno. Added corresponding ErrnoException class.

* std.encoding: For now commented out std.encoding.to. 

* std.file: Fixed bug 2065

* std.format: Fixed bug in raw write for arrays

* std.getopt: Added new option stopOnFirstNonOption. Also automatically expand dubious option groups with embedded in them (useful for shebang scripts)

* std.math: improved integral powers

* std.md5: Improved signature of sum so it takes multiple arrays. Added getDigestString.

* std.path: changed signatures of test functions from bool to int. Implemented rel2abs for Windows. Improved join so that it accepts multiple paths. Got rid of some gotos with the help of scope statements.

* std.process: added getenv and setenv. Improved system() so it returns the exit code correctly on Linux.

* std.random: added the dice function - a handy (possibly biased) dice.

* std.file: added support for opening large files (not yet tested)

* std.utf: added the codeLength function. Got rid of some gotos.
2008-05-06 05:08:52 +00:00
Janice Caron
8984cb643f Fixed bug 1925
Reformatted to fit in 80 columns
Documentation improved
Default handlers removed (speed optimization)
Text decoding now optional (speed optimization)
pretty() now prettier
Now has DOM functionality
2008-03-22 18:37:08 +00:00
Andrei Alexandrescu
bacf9b6a2a moved docsrc where it belongs 2008-03-09 07:49:49 +00:00
Gregor Richards
a0a8527408 Automatic newline fixup. 2008-03-07 07:11:35 +00:00
Janice Caron
46b1b1a055 Bug fixes.
(1) Text handler did not decode text before passing to user. Now it does.
(2) When using nested handlers, the parse position was not correctly updated. Now it is.

Also, the unit test which Andrei commented out has been modified and uncommented. Hopefully that should work for everybody now.
2008-02-22 14:50:10 +00:00
Walter Bright
468fddcc4b add license 2008-02-19 18:35:37 +00:00
Andrei Alexandrescu
340f77e4fa added Janice's std.xml 2008-02-19 09:42:50 +00:00