Commit graph

285 commits

Author SHA1 Message Date
Walter Bright
53564aa227 rename makefile, comment out mysteriously failing test 2010-07-29 03:59:17 +00:00
Andrei Alexandrescu
11ef039bb1 added support for formatted output of ranges of characters, fixed a couple of OSX issues 2010-07-28 08:07:40 +00:00
Andrei Alexandrescu
0fe7a951fb Changed w.put(e) with put(w, e) everywhere 2010-07-12 01:17:37 +00:00
Andrei Alexandrescu
956ff3b59e Radical overhaul. 2010-07-12 00:49:18 +00:00
Andrei Alexandrescu
536cb93d9c Fixed issue in Appender 2010-07-06 05:34:59 +00:00
Walter Bright
32c7b84c85 fix various unit test and test suite failures from std.format 2010-07-06 01:32:14 +00:00
Andrei Alexandrescu
432e3fdfc8 Replaced std.contracts with std.exception throughout 2010-07-04 22:09:03 +00:00
Andrei Alexandrescu
01aa9c1511 Now all writers are passed by value 2010-07-04 21:44:42 +00:00
Shin Fujishiro
b2d816da2b Added changelog and unittest for bug 4109. 2010-06-16 00:27:45 +00:00
Shin Fujishiro
4ceb920f40 Fixed reopened bug 4109: writeln doesn't work with empty static array 2010-06-14 15:36:17 +00:00
Shin Fujishiro
56dadb568d Fixed bugzilla 4109: writeln doesn't work with empty static array.
The variable obj can be a static array of length zero. obj.ptr should be used.
2010-05-23 11:53:03 +00:00
Walter Bright
e790058bf4 invariant => immutable 2010-05-05 18:25:44 +00:00
Andrei Alexandrescu
2a9a6e336c string, wstring are now bidirectional (not random) ranges
std.algorithm: defined move with one argument; levenshtein distance generalized to with all forward ranges; take now has swapped arguments
std.array: empty for arrays is now a @property; front and back for a string and wstring automatically decodes the first/last character; popFront, popBack for string and wstring obey the UTF stride
std.conv: changed the default array formatting from "[a, b, c]" to "a b c"
std.range: swapped order of arguments in take
std.stdio: added readln template
std.variant: now works with statically-sized arrays and const data
std.traits: added isNarrowString
2010-02-22 15:52:31 +00:00
Walter Bright
d340dab9f3 inout to ref 2009-12-19 07:46:41 +00:00
Don Clugston
07e9bf7ab8 Remove erroneous return 2009-10-01 00:04:38 +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
Don Clugston
0fa1eb2473 Fix for bug #2398 2009-07-16 15:21:26 +00:00
Andrei Alexandrescu
ecd5a1de11 fixed unlisted bug in documentation 2009-07-11 18:59:26 +00:00
Andrei Alexandrescu
e336106541 minor 2009-07-04 06:59:56 +00:00
Walter Bright
bd4eadca71 implicit cast fixes 2009-06-07 05:03:17 +00:00
Walter Bright
cf644a325a add shared 2009-05-08 05:00:12 +00:00
Andrei Alexandrescu
2879e943e7 Added/modified a couple of unittests. 2009-04-29 21:33:03 +00:00
Andrei Alexandrescu
0d3ba39d3a fixed unlisted bug in formatting floating-point numbers 2009-04-28 23:05:37 +00:00
Andrei Alexandrescu
9ae66bb416 added raw specifier for reading 2009-04-23 09:01:55 +00:00
Andrei Alexandrescu
8ac32901db unlisted bug fix 2009-04-19 17:20:11 +00:00
Andrei Alexandrescu
dfef2a7214 Replaced next, retreat, head, and toe with (respectively) popFront, popBack, front, and back 2009-04-13 19:10:58 +00:00
Andrei Alexandrescu
4548c91a41 minor 2009-04-11 20:38:41 +00:00
Andrei Alexandrescu
b6a9ddf5f5 * Added vector parsing and printing with the specifier "%()". For
example, writefln("[%(s; )]", [1, 2, 3][]) writes "[1; 2; 3]". This
support is experimental and may be changed in the future.
* Added a formattedRead function (i.e., scanf that doesn't suck). The
implementation is incomplete but common cases are supported.
2009-04-06 17:15:35 +00:00
Andrei Alexandrescu
8d4be94177 * Added vector parsing and printing with the specifier "%()". For
example, writefln("[%(s; )]", [1, 2, 3][]) writes "[1; 2; 3]". This 
support is experimental and may be changed in the future.
* Added a formattedRead function (i.e., scanf that doesn't suck). The 
implementation is incomplete but common cases are supported.
2009-04-06 06:18:23 +00:00
Walter Bright
63a892d41e added overload for enums 2009-03-01 21:10:13 +00:00
Walter Bright
9e96cfb642 add std.c.math to phobos 2009-02-27 22:01:00 +00:00
Walter Bright
6c748fdfe1 fix makefile bug 2009-02-12 10:33:16 +00:00
Walter Bright
d57e203dc9 fold in some OSX changes 2009-02-10 02:21:15 +00:00
Andrei Alexandrescu
98d1b0d507 minor improvements 2009-01-23 16:23:36 +00:00
Walter Bright
cad4405897 remove minit, add druntime.lib 2008-10-12 19:07:59 +00:00
Walter Bright
c52cf7dfb9 fix std.format for 203 2008-06-24 06:56:40 +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
Andrei Alexandrescu
8d35610cc4 Fixed unlisted bug in formatting floating-point types 2008-03-06 22:41:48 +00:00
Andrei Alexandrescu
42d27f78d7 Ate dogfood: used bitfields internally 2008-03-06 20:12:57 +00:00
Walter Bright
92830242e1 formatting error with const(real) 2008-03-01 20:14:02 +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
Walter Bright
b2a37b2833 updates for new const regime 2007-12-21 00:01:31 +00:00
Brad Roberts
09916d399a Initial merge of candidate to trunk for r459:513 2007-11-27 20:28:40 +00:00
Walter Bright
d93cc0a06e updates for const and for coverage analysis 2007-11-26 05:26:11 +00:00
Walter Bright
220f5a9559 can now handle void[0] arrays 2007-10-22 05:14:21 +00:00
Walter Bright
c179c7cd4e added casts to eliminate warnings 2007-10-16 05:32:22 +00:00
Walter Bright
267a37446f fixed typos and win32 compile errors 2007-10-16 05:27:07 +00:00
Andrei Alexandrescu
16e03d7c54 Fix for write(void[]) 2007-10-16 04:15:17 +00:00
Andrei Alexandrescu
ca26afec10 Few more bugfixes 2007-10-16 03:29:06 +00:00