Commit graph

11 commits

Author SHA1 Message Date
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