Commit graph

41 commits

Author SHA1 Message Date
Walter Bright
380ae65511 remove empty statements 2011-12-29 00:05:45 -08:00
Maksim Zholudev
180839bc10 Unittest for bugzilla 6888. 2011-11-07 08:11:55 +01:00
Maksim Zholudev
fe1c21d04d Fix issue 6888. 2011-11-04 08:23:42 +01:00
shoo
b3f5e396cf Fixed issue 6887
http://d.puremagic.com/issues/show_bug.cgi?id=6887
2011-11-03 23:35:46 +09:00
Vladimir Panteleev
bcbfe2d433 Various DDoc syntax fixes 2011-08-07 22:59:37 +03:00
Jonathan M Davis
da0fd9dbf8 Merge pull request #101 from jmdavis/string
Improvements for std.string, std.uni, and std.ctype.
2011-07-03 00:12:57 -07:00
Daniel Murphy
cbe7a73852 Swap the order to allow numeric enums to be read as enums. 2011-06-30 08:14:30 +10:00
jmdavis
dd3a0c20a2 Created std.ascii to replace std.ctype.
All of the new, properly camelcased functions in std.ctype have been
moved to std.ascii, and std.ctype has been scheduled for deprecation.
2011-06-14 04:06:54 -07:00
jmdavis
30069ea6f0 Replaced calls to std.string and std.ctype's toupper with their toUpper counterparts. 2011-06-12 16:59:52 -07:00
Jens K. Mueller
29eec1ee23 Two changes for enum handling in getopt
It's better to define enum Color { no, yes } because this enables
writing compact code like if (color) { ... }. Further setting the
variable is done using std.conv's parse which makes the code more
compact and throws if the conversion fails.
2011-04-06 19:46:54 +02:00
Jens K. Mueller
4c71539a9a Add handling enums to getopt
getopt does not allow handling enums. This commit introduces the
necessary changes. It updates the documentation accordingly and provides
some unittests.
2011-04-05 22:48:21 +02:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
Andrei Alexandrescu
331dd3a489 Moved split from string to array, made one more pass through array 2011-01-19 06:44:46 +00:00
Don Clugston
84477a5d3e Move Boost copyright declaration from ddoc to normal comment. Fixes ugly ddoc output. 2010-11-24 19:34:47 +00:00
Don Clugston
1372f5b606 Fixed mismatched ddoc parentheses 2010-11-24 07:57:27 +00:00
Shin Fujishiro
792cdaf467 Bug 5220: Make std.conv.ConvError an Exception instead of an Error
Renamed ConvError -> ConvException.
2010-11-16 20:39:50 +00:00
Andrei Alexandrescu
a778d41a3c Fix for bugzilla 2142 2010-09-26 15:24:50 +00:00
David Simcha
4e805cfc78 Bug 2958: std.getopt RangeError on missing arg 2010-08-21 00:19:57 +00:00
Andrei Alexandrescu
8928d06403 Added documentation clarifications for short options 2010-08-08 19:27:44 +00:00
Andrei Alexandrescu
432e3fdfc8 Replaced std.contracts with std.exception throughout 2010-07-04 22:09:03 +00:00
Shin Fujishiro
8bd8ddf0a4 Reverted r1557 (and r1513 partially).
r1557 relaxed some unittests, as some platforms had accuracy problem with strtold().  But the strict unittests were requirements for D; so r1557 should be reverted.

With this change, these unittests will fail on some platforms such as OSX and Gentoo.  However, the unittests SHOULD fail because using strtold() on these platforms is a 'bug' -- we should provide an accurate implementation.

Related issues:
3758: Create D impementation of to!(float, string), etc.
4200: "to!real(to!string(real.min_normal))" raises std.conv.ConvError
2010-05-26 14:21:39 +00:00
Shin Fujishiro
7aea7b005d We should not expect exact precision of strtold().
The precition may vary between platforms or even different versions of libc.

Tested on FreeBSD and Gentoo Linux with dmd r501.
2010-05-26 05:59:52 +00:00
Walter Bright
53a3eec534 invariant => immutable 2010-05-05 22:19:49 +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
e336106541 minor 2009-07-04 06:59:56 +00:00
Andrei Alexandrescu
b2f892a285 Added support for parameterless delegates 2009-04-06 04:35:25 +00:00
Andrei Alexandrescu
e9982aae07 minor improvements 2009-01-23 16:25:21 +00:00
Walter Bright
734819923f now runs unittests with warnings on 2008-07-10 09:46:14 +00:00
Andrei Alexandrescu
28da94506d Changed optChar to optionChar 2008-07-08 17:01:15 +00:00
Andrei Alexandrescu
16c4447ca1 $(LI In $(B std.getopt), added $(B optChar), $(B assignChar), and $(B endOfOptions), per popular demand :o|) 2008-07-08 03:23:25 +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
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
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
Brad Roberts
97002975bb dos -> unix line ending conversion
fix up properties on relatively new files to keep the right line endings
remove the executable bit from std/getopt.d
2008-02-10 08:44:17 +00:00
Walter Bright
b2a37b2833 updates for new const regime 2007-12-21 00:01:31 +00:00
Brad Roberts
83bde3fc89 Manually cleanup remaining differences between candidate and trunk. std/variant.d is the only file with differences remaining. 2007-11-27 21:10:16 +00:00
Brad Roberts
0e9836f3cb dos2unix getopt.d to fix it's eol style 2007-11-27 20:18:22 +00:00
Walter Bright
7b991c27fc missing WIKI 2007-10-16 17:05:19 +00:00
Andrei Alexandrescu
ad73ee84d5 Bunch o' bugfixes 2007-10-15 21:14:09 +00:00
Walter Bright
0dfd92c96a added new modules to win32.mak, corrected Wiki page macros 2007-10-15 08:41:18 +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