Commit graph

57 commits

Author SHA1 Message Date
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
Andrei Alexandrescu
ad73ee84d5 Bunch o' bugfixes 2007-10-15 21:14:09 +00:00
Walter Bright
b3e542b19b stdio should be stdout 2007-10-15 06:13:02 +00:00
Brad Roberts
26c6571ff5 merge r404:415 from candidate to trunk 2007-10-15 05:57:34 +00:00
Andrei Alexandrescu
2a7e8936e3 Fixed warning 2007-10-15 03:37:34 +00:00
Brad Roberts
b261c557f0 merge r397:404 from candidate to trunk
-- add static assert to writef[ln] to clean up the error message
  -- clean up null object reporting
2007-10-15 03:12:14 +00:00
Brad Roberts
a9bc53273c merge r387:397 from candidate to trunk
-- new module std.contracts
  -- migrate callers to it where appropriate
2007-10-14 23:04:19 +00:00
Brad Roberts
eec6be69ed Merge r297:387 from candidate to trunk.
-- add std.getopt
  -- add std.variant
  -- switch strings over to be invariant rather than const
  -- hopefully the last big linux makefile overhaul
  -- fix for bug 1579: write[ln] fails for obj.toString()
  -- fix negative precision handling in std.format
  -- add some file and directory iterator helpers
  -- among other little changes here and there...
2007-10-14 09:22:50 +00:00
Walter Bright
7be3be74fc fix stupid mistakes 2007-10-03 06:00:32 +00:00
Walter Bright
4217587591 remove obsolete bit support 2007-10-02 06:31:41 +00:00
Brad Roberts
39927abf9e merge branches/phobos-1.x@261 through branches/phobos-1.x@263 2007-09-10 07:27:04 +00:00
Brad Roberts
9d8828a349 merge branches/phobos-1.x@256 through branches/phobos-1.x@259 2007-09-10 07:13:30 +00:00
Brad Roberts
de971890b0 phobos 2.000 2007-09-10 06:45:08 +00:00
Brad Roberts
0c2a06e5c5 phobos 1.014 2007-09-10 06:05:38 +00:00
Brad Roberts
2992740ec3 phobos 1.013 2007-09-10 06:05:14 +00:00
Brad Roberts
1de7f2e4ba phobos 1.007 2007-09-10 06:02:02 +00:00
Brad Roberts
612a051fd4 phobos 1.005 2007-09-10 06:00:54 +00:00
Brad Roberts
7a177fcf41 phobos 0.178 2007-09-10 05:37:36 +00:00
Brad Roberts
7371485bf8 phobos 0.177 2007-09-10 05:36:45 +00:00
Brad Roberts
00fe9a970d phobos 0.175 2007-09-10 05:35:36 +00:00
Brad Roberts
c4389822c1 phobos 0.167 2007-09-10 05:30:20 +00:00
Brad Roberts
b76c21ccf9 phobos 0.161 2007-09-10 05:24:49 +00:00
Brad Roberts
164dc8159b phobos 0.153 2007-09-10 05:17:15 +00:00
Brad Roberts
5611689b5d phobos 0.151 2007-09-10 05:16:25 +00:00
Brad Roberts
70e2b57a46 phobos 0.150 2007-09-10 05:12:31 +00:00
Brad Roberts
d6ac036aff phobos 0.149 2007-09-10 05:11:52 +00:00
Brad Roberts
110cfd9da7 phobos 0.148 2007-09-10 05:04:40 +00:00
Brad Roberts
b029d8c452 phobos 0.147 2007-09-10 05:03:22 +00:00
Brad Roberts
98e28b66e3 phobos 0.140 2007-09-10 04:57:07 +00:00