Commit graph

20 commits

Author SHA1 Message Date
Andrei Alexandrescu
f291706be8 minor 2009-07-04 06:56:23 +00:00
Walter Bright
2b49121d3f fix implicit casting 2009-06-04 23:40:27 +00:00
Walter Bright
cf644a325a add shared 2009-05-08 05:00:12 +00:00
Andrei Alexandrescu
f22c3a8e97 Fixed unlisted bugs in encoding(). 2009-04-29 21:32:03 +00:00
Andrei Alexandrescu
460afaba4e minor 2009-04-06 06:00:11 +00:00
Walter Bright
d5a4d17c40 commented out failing unit test 2009-03-05 09:17:17 +00:00
Don Clugston
d3b2166a1b Allow phobos to compile with -w. 2009-02-27 15:31:48 +00:00
Walter Bright
953f133539 2009-01-03 00:58:17 +00:00
Sean Kelly
edb5c5003e This commit includes all the changes necessary for Phobos to run against druntime. Here is a sucinct list of the changes made:
* Removed gcstats.  Garbage collector statistics will be avaialable in durintime's 'memory' module.
    * Removed object.d.  This module is replaced by the object.d provided by druntime.
    * Removed std.array.  To trap an array bounds error, import 'exception' from druntime and catch ArrayBoundsException.
    * Removed std.asserterror.  To trap an asertion failure, import 'exception' from druntime and catch AssertException.
    * Removed std.gc.  To interact with the garbage collector, import 'memory' from druntime.
    * Removed std.hiddenfunc.  No equivalent exception is currently exposed by druntime, but if one is exposed it will be called HiddenFuncException and be declared in 'exception'.
    * Removed std.moduleinit.  druntime declares ModuleInfo in object.d, so it is implicitly availble without importing.
    * Removed std.outofmemory.  To trap an out of memory error, import 'exception' from druntime and catch OutOfMemoryException.
    * Removed std.switcherr.  To trap a switch error, import 'exception' from druntime and catch SwitchException.
    * Removed std.synchro.  This functionality will exist within druintime.
    * Removed std.thread.  A Thread class is available within druntime's 'thread' module.  An interface comparison will be provided separately.
    * Removed std.typeinfo.  The classes defined in this package are for runtime use and should not be visible to the user.

The prior version of Phobos has been archived in tags/phobos-2.019 if needed.
2008-10-11 00:56:40 +00:00
Janice Caron
b8b8098efb Got rid of types Utf8, Utf16, Utf32, Ascii, Latin1, Windows1252.
Introduced new types AsciiChar, AsciiString, Latin1Char, Latin1String, Windows1252Char, Windows1252 String.
Added new function encodedLength().
Added new function encode().
Deprecated Buffer!
2008-05-07 17:09:00 +00:00
Janice Caron
ab4da381b0 Renamed std.encoding.Exception to EncodingException 2008-05-06 16:38:17 +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
Walter Bright
c7b8755f49 added WIKI address 2008-04-24 09:50:09 +00:00
Janice Caron
689198d3c0 Can now do encodings not known until runtime, thanks to EncodingScheme class 2008-03-23 16:17:44 +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
Walter Bright
cc8fbb97f1 fixed problem compiling with unittest 2008-03-07 01:03:54 +00:00
Janice Caron
28f4b4a615 Added in contract to safeDecode(). 2008-02-28 19:49:57 +00:00
Janice Caron
2cf7ea22a0 Added new struct Buffer!(), and new functions validLength(), canEncode() and safeDecode. And more unit tests. sanitize() can now sanitize overlong sequences (e.g. 6-byte UTF-8 sequences) into a single replacement character, as required. 2008-02-28 19:36:22 +00:00
Janice Caron
3f43948fb4 First commit to trunk, but various functions have been renamed since last commit to candidate. 2008-02-25 17:52:19 +00:00