Commit graph

336 commits

Author SHA1 Message Date
Andrei Alexandrescu
7564c12a15 Changed version(Unittest) to version(unittest) 2008-03-06 22:40:15 +00:00
Andrei Alexandrescu
78e981c728 Put encoding in alphabetical order in the module list 2008-03-06 20:40:47 +00:00
Andrei Alexandrescu
d3ec611fd4 Minor changes: changed const to enum wherever possible in order to minimize object file sizes. 2008-03-06 20:23:54 +00:00
Andrei Alexandrescu
32f411e024 Added undocumented Rebindable in preparation for opImplicitCast. 2008-03-06 20:23:11 +00:00
Andrei Alexandrescu
399fa21dea Added mostNegative, mostly to assuage for the impardonable mistake of inheriting C++'s impardonable mistake of defining "min" to mean very different things for floating-point types and integral types. 2008-03-06 20:20:47 +00:00
Andrei Alexandrescu
b1a7e871c8 Added undocumented function. 2008-03-06 20:19:14 +00:00
Andrei Alexandrescu
a9c935ee10 * Made unpredictableSeed return different numbers every call (except for rarely-encountered MT scenarios). Added variable name that will take experts millenia to figure out.
* Changed the boundaries syntax from two separate characters '[', ')' to one string "[)" throughout.
2008-03-06 20:18:08 +00:00
Andrei Alexandrescu
716e16bb20 Fixed minor documentation typo. 2008-03-06 20:15:10 +00:00
Andrei Alexandrescu
7ee9e3ec87 * Fixed binaryfun to work with constant-size arrays.
* Added compose
2008-03-06 20:14:17 +00:00
Andrei Alexandrescu
42d27f78d7 Ate dogfood: used bitfields internally 2008-03-06 20:12:57 +00:00
Andrei Alexandrescu
04f4f1306c Fixed bug related to number-to-number conversion 2008-03-06 20:10:57 +00:00
Andrei Alexandrescu
7f01a58c0c Fixed unlisted bug in pointsTo 2008-03-06 20:09:28 +00:00
Andrei Alexandrescu
7cd7fe5de3 Simplified code generated for bitfields and improved error message. 2008-03-06 20:08:39 +00:00
Andrei Alexandrescu
e45ee30716 * Made some imports conditional for the Unittest version
* Fixed doc typo

* Made min and max always return the tightest type and work with mixes of signed and unsigned

* Changed enum value names to obey lowercase convention

* Changed OrderStrategy with SwapStrategy as it's not just for ordering (e.g. see eliminate)

* Changed nthElement to topN

* Removed spurious unittest-related code from sort

* Replaced makeIndex with the more flexible partialIndex

* Commented out schwartzMakeIndex for now

* Added schwartzIsSorted

* Removed spurious test code from lowerBound, upperBound
2008-03-06 20:07:18 +00:00
Andrei Alexandrescu
49ed844229 Added -version=Unittest to the unittest build. 2008-03-06 19:41:34 +00:00
Walter Bright
400aa3191d stuff 2008-03-05 20:29:25 +00:00
Walter Bright
7dcd24a675 applied bugzilla 1810 patch 2008-03-04 09:00:31 +00:00
Walter Bright
4eb5dd9344 added bugzilla 1828 patch 2008-03-04 08:39:58 +00:00
Walter Bright
46c83cf355 const to enums 2008-03-04 08:24:16 +00:00
Walter Bright
0644b63ac8 removed std.math2 2008-03-01 20:16:50 +00:00
Walter Bright
92830242e1 formatting error with const(real) 2008-03-01 20:14:02 +00:00
Don Clugston
3b11e8600d * Support for different CPU IEEE 'real' formats: 64-bit, 80-bit and 128-bit (quadruple) reals, both BigEndian and LittleEndian; partial support for non-IEEE 'doubledouble' reals.
* Bugzilla 1877 (atan2 doc bugs)
* Bugzilla 1722 std.math.nextafter not implemented on Windows
* Added implementation of scalb for DMD-Windows.
* Added nextUp(), nextDown()
* Bugzilla 1881: feqrel nonsensical for non-real arguments.
2008-02-29 08:40:45 +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
32b6b8ea01 Adding std.encoding to Phobos.
std.encoding now compiles with -w
2008-02-25 18:08:33 +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
Walter Bright
3b9583956f dtor support 2008-02-25 08:37:57 +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
Andrei Alexandrescu
6f7b47230f Made shell() throw an exception on Windows 2008-02-20 18:36:49 +00:00
Walter Bright
f77d161d0a no popen on Windows 2008-02-20 11:45:31 +00:00
Andrei Alexandrescu
dcddec72f4 Don Clugston's changes 2008-02-20 08:14:39 +00:00
Andrei Alexandrescu
a71a28d734 Don Clugston's changes 2008-02-20 08:13:18 +00:00
Andrei Alexandrescu
067ca61b48 removed code bloat 2008-02-19 20:25:53 +00:00
Andrei Alexandrescu
c2745d55c9 marked bug number 2008-02-19 19:39:38 +00:00
Walter Bright
468fddcc4b add license 2008-02-19 18:35:37 +00:00
Andrei Alexandrescu
38a0af2b47 moved doc.ddoc to docsrc/ 2008-02-19 18:08:30 +00:00
Andrei Alexandrescu
f225ac8aad moved style.css to docsrc/ 2008-02-19 18:07:51 +00:00
Andrei Alexandrescu
b4f8aaf69a moved std.ddoc to docsrc/ 2008-02-19 18:07:22 +00:00
Andrei Alexandrescu
340f77e4fa added Janice's std.xml 2008-02-19 09:42:50 +00:00
Andrei Alexandrescu
3be8daaff1 added Janice's std.xml 2008-02-19 09:42:33 +00:00
Andrei Alexandrescu
946f205043 removed bloat-inducing test code 2008-02-19 09:21:25 +00:00
Walter Bright
550cda9058 windows makefile 2008-02-19 09:05:09 +00:00
Andrei Alexandrescu
593fb75c40 commented out assert in line 623 2008-02-19 07:12:21 +00:00
Andrei Alexandrescu
c2d94005ac added modules 2008-02-19 07:07:14 +00:00
Andrei Alexandrescu
7d5b1ed849 added complex and iterator modules 2008-02-19 07:02:13 +00:00
Andrei Alexandrescu
29f3cc23f7 std.math: minor change in approxEqual.
std.contracts: added functions pointsTo()

std.numeric: minor unittest fixes.

std.bitmanip: fixed code bloat issue, reintroduced FloatRep and DoubleRep.

std.conv: minor simplification of implementation.

std.regexp: added reference to ECMA standard in the documentation.

std.getopt: changed return type from bool to void, error is signaled by use of exceptions.

std.functional: added unaryFun, binaryFun, adjoin.

std.string: updated documentation, changed code to compile with warnings enabled.

std.traits: changed FieldTypeTuple; added RepresentationTypeTuple, hasAliasing; fixed bug 1826; added call to flush() from within write; fixed unlisted bug in lines().

std.algorithm: added map, reduce, filter, inPlace, move, swap, overwriteAdjacent, find, findRange, findBoyerMoore, findAdjacent, findAmong, findAmongSorted, canFind, canFindAmong, canFindAmongSorted, count, equal, overlap, min, max, mismatch, EditOp, none, substitute, insert, remove, levenshteinDistance, levenshteinDistanceAndPath, copy, copyIf, iterSwap, swapRanges, reverse, rotate, SwapStrategy, Unstable, Semistable, Stable, eliminate, partition, nthElement, sort, schwartzSort, partialSort, isSorted, makeIndex, schwartzMakeIndex, lowerBound, upperBound, equalRange, canFindSorted.

std.thread: fixed so it compiles with warnings enabled.

std.file: made getSize() faster under Linux.

std.random: fixed so it compiles with warnings enabled; improved function uniform so it deduces type generated from its arguments.

std.format: added fixes to make formatting work with const data.

std.path: minor documentation changes.
2008-02-19 07:00:56 +00:00
Andrei Alexandrescu
0aea504e90 source for online documentation 2008-02-19 06:46:52 +00:00
Andrei Alexandrescu
b2e8b06eaf minor change in approxEqual. 2008-02-19 06:22:49 +00:00
Andrei Alexandrescu
45a37c231c added function shell(). 2008-02-19 06:22:22 +00:00
Andrei Alexandrescu
f4699442b3 fixed code bloat issue; added Tuple.toString; added function tuple(); fixed unlisted bug in enumValuesImpl. 2008-02-19 06:19:26 +00:00