Commit graph

82 commits

Author SHA1 Message Date
Shin Fujishiro
6471e8a8a9 Fixed forward reference errors.
Fixed problem on handling const-functions.
Added some unittests.
2010-05-19 11:46:34 +00:00
Shin Fujishiro
1389c7a6ba workaround for bugzilla bug 4206 2010-05-19 11:46:06 +00:00
Shin Fujishiro
0eadea66c1 Changes on std.traits:
- ReturnType and ParameterTypeTuple now accepts property functions.
- Added ParameterStorageClassTuple, functionAttributes, functionLinkage, variadicFunctionStyle, FunctionTypeOf.
- Added isUnsigned, isSigned, isTypeTuple, isSomeFunction, isCallable.
- Added OriginalType, Signed, mangledName.
- Made Unqual aware of shared and shared-const qualifiers.
2010-05-18 11:16:10 +00:00
Shin Fujishiro
5c9725d6cd Moved allSatisfy and staticMap to std.typetuple 2010-05-18 11:15:44 +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
Don Clugston
1eea3f3895 Removed all references to float.min, replaced with float.min_normal. 2009-11-06 16:02:45 +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
Walter Bright
3a3130afa9 last minute fixes for 2.031 2009-07-06 17:32:48 +00:00
Andrei Alexandrescu
8a747d22bc added isSomeChar, isPointer. 2009-07-04 07:08:05 +00:00
Andrei Alexandrescu
d4dff4233c Added isImplicitlyConvertible 2009-04-29 22:03:55 +00:00
Andrei Alexandrescu
21d9d5ce11 Fixed bug 2893 2009-04-25 11:12:15 +00:00
Andrei Alexandrescu
072f7cdb4f added Unqual template 2009-04-06 05:43:22 +00:00
Andrei Alexandrescu
c5cdcfc3ec minor 2009-04-06 04:58:45 +00:00
Walter Bright
a0ce8d1f66 fix isIntegral, isFloatingPoint, add unit tests 2009-03-30 03:04:18 +00:00
Don Clugston
b94f6e1c20 static const -> enum, to allow these templates to be used in pure functions. 2009-03-18 09:12:43 +00:00
Walter Bright
953f133539 2009-01-03 00:58:17 +00:00
Walter Bright
445350f2df fixed problems with typeof(type) 2008-07-02 21:08:32 +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
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
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
09916d399a Initial merge of candidate to trunk for r459:513 2007-11-27 20:28:40 +00:00
Walter Bright
e1c6c25fc8 supported functors with ReturnType 2007-10-24 04:47:58 +00:00
Walter Bright
7266d1d904 improve isStaticArray 2007-10-21 08:15:28 +00:00
Andrei Alexandrescu
ad73ee84d5 Bunch o' bugfixes 2007-10-15 21:14:09 +00:00
Brad Roberts
26c6571ff5 merge r404:415 from candidate to trunk 2007-10-15 05:57:34 +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
Brad Roberts
76dac5da92 phobos 0.176 2007-09-10 05:36:13 +00:00
Brad Roberts
00fe9a970d phobos 0.175 2007-09-10 05:35:36 +00:00
Brad Roberts
e001ab7bfe phobos 0.174 2007-09-10 05:34:58 +00:00