Commit graph

16625 commits

Author SHA1 Message Date
Don Clugston
4439653a58 Bugfix: the new pow(x,n) was wrong for int.max<n<=uint.max 2008-05-28 06:49:27 +00:00
Janice Caron
6e2dfbd8ad Added opUShr overload 2008-05-19 16:07:57 +00:00
Janice Caron
abbe7ab789 Complete rewrite 2008-05-18 21:19:56 +00:00
Walter Bright
971b6c0cb3 fix dmd=>$(DMD) 2008-05-17 05:53:07 +00:00
Andrei Alexandrescu
5c93aeb0cb Fixed bug 2074: Variant arithmetic operations fail 2008-05-16 21:20:24 +00:00
Andrei Alexandrescu
cc43a5279d Finalized and documented the stupendous Rebindable template. 2008-05-16 21:16:46 +00:00
Andrei Alexandrescu
012bff8c62 Fixed unlisted bug in dealing with one-letter options with bundling disabled. 2008-05-16 21:11:27 +00:00
Andrei Alexandrescu
312ba56338 Improved compose so it accepts an unbounded number of functions. Added the pipe function. 2008-05-16 21:09:53 +00:00
Andrei Alexandrescu
1036d05646 Changed Boolean function signatures (e.g. exists) to return bool instead of int. Got rid of some gotos. Added the readText, lastModified, mkdirRecurse, and rmdirRecurse functions. 2008-05-16 21:07:50 +00:00
Andrei Alexandrescu
ad796a88a2 Made std.to curryable. Changed std.to to throw exception when object-to-object cast fails. Eliminated some superfluous printfs. 2008-05-16 21:06:23 +00:00
Andrei Alexandrescu
54241153b1 Made map curryable 2008-05-16 21:03:56 +00:00
Janice Caron
4974615a4e Content removed in entirety 2008-05-16 17:26:39 +00:00
Janice Caron
2757014cac Deprecated isEmail and isUrl in std.string.
Replaced with emailLength and uriLength in std.uri.
2008-05-16 17:19:55 +00:00
Walter Bright
c5699455eb needed libraries 2008-05-16 10:35:18 +00:00
Walter Bright
35f626afb9 revert std.path for windows so it passes unit tests 2008-05-15 21:28:48 +00:00
Walter Bright
4bfc2fef89 add unit tests 2008-05-15 20:21:31 +00:00
Walter Bright
114fdd15e5 windows makefile changes for std.bigint 2008-05-14 00:12:21 +00:00
Janice Caron
e5a3f474c3 Fixed declaration of opShl(), opShr() and opUShr(). 2008-05-13 19:57:58 +00:00
Janice Caron
d9b1f08980 First commit 2008-05-13 19:38:04 +00:00
Janice Caron
7f9bd7675b Added array functions arrayInsert, arrayDelete, and arrayReplace. 2008-05-12 16:34:58 +00:00
Walter Bright
623849f377 add const 2008-05-10 22:28:39 +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
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
Walter Bright
02232cabd1 added unit tests 2008-05-06 07:03:46 +00:00
Walter Bright
dd1cbd6a05 fix process 2008-05-06 06:35:47 +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
b60c31f0f2 fix buggy memcmp call 2008-05-06 04:08:39 +00:00
Walter Bright
07fe0769b0 fix more of the build breaks in last checkin 2008-05-05 05:17:41 +00:00
Walter Bright
fbcc8b5ad8 fix some of the build breaks in last checkin 2008-05-05 05:17:10 +00:00
Andrei Alexandrescu
4e92b23984 * Made atoi work with all string types, but also scheduled it for deprecation in favor of to!(int) and parse!(int).
* Made atof work with all string types, but also scheduled it for deprecation in favor of to!(double) and parse!(double) (or real).

* Made cmp and icmp work with strings of all widths

* Changed signature of toStringz to return const(char)*

* Fixed signature of join so it works with immutable arrays

* Added tolowerInPlace, toupperInPlace (these may be changed or removed).
2008-05-03 16:06:52 +00:00
Walter Bright
a2cc38709d corrected unit tests for Windows 2008-05-03 08:53:49 +00:00
Andrei Alexandrescu
2244e2597f * Made atoi work with all string types, but also scheduled it for deprecation in favor of to!(int) and parse!(int).
* Made atof work with all string types, but also scheduled it for deprecation in favor of to!(double) and parse!(double) (or real).

* Made cmp and icmp work with strings of all widths

* Changed signature of toStringz to return const(char)*

* Fixed signature of join so it works with immutable arrays

* Added tolowerInPlace, toupperInPlace (these may be changed or removed).
2008-05-02 19:08:11 +00:00
Don Clugston
7908579037 Bugfix(typo) for issubnormal() on non-X86 systems. 2008-05-02 12:36:05 +00:00
Walter Bright
c7b8755f49 added WIKI address 2008-04-24 09:50:09 +00:00
Walter Bright
9799bac8d1 see bugzilla 1965 2008-04-23 06:23:58 +00:00
Walter Bright
496bd6039b fix for bugzilla 1967 2008-04-23 06:12:41 +00:00
Walter Bright
b7c9cf6fce Bill Baxter's std.perf update 2008-04-23 06:04:31 +00:00
Walter Bright
a162c8f93a added primes 2008-04-21 07:57:45 +00:00
Don Clugston
5efccccf03 numeric.findRoot: Major simplification of the termination delegate; better docs;fixed treatment of NaNs. 2008-04-02 19:48:07 +00:00
Don Clugston
46d0bdb198 Better docs for findRoot() termination condition. 2008-04-02 06:57:35 +00:00
Don Clugston
58749fe3fd * added numeric.findRoot. AFAIK this is faster than any previously published 1D general-purpose root finder,
* added math.ieeeMean. Not yet public (may need a different name). Used  by findRoot.
* reformatting for std.math -- 80 char width, etc.
2008-04-01 19:10:40 +00:00
Walter Bright
013629d016 added sizeof to C++0x 2008-03-26 18:26:19 +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
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
Walter Bright
cc8fbb97f1 fixed problem compiling with unittest 2008-03-07 01:03:54 +00:00
Andrei Alexandrescu
8d35610cc4 Fixed unlisted bug in formatting floating-point types 2008-03-06 22:41:48 +00:00