Commit graph

83 commits

Author SHA1 Message Date
Andrei Alexandrescu
dcbbb068c9 added ifind, rfind, and irfind for (in char[], in char[]) for backwards compatibility 2009-07-04 19:00:40 +00:00
Andrei Alexandrescu
7ef3c4b50f added find(in char[], in char[]) for backwards compatibility 2009-07-04 18:59:04 +00:00
Andrei Alexandrescu
a4c244f2a8 deprecated std.string.find and std.string.find, replaced with std.string.indexOf; deprecated std.string.rfind and std.string.irfind, replaced with std.string.lastIndexOf; added flag CaseSensitive for indexOf and lastIndexOf; removed startsWith and endsWith because std.algorithm defines them; defined std.string.byDchar. 2009-07-04 07:07:26 +00:00
Walter Bright
cf644a325a add shared 2009-05-08 05:00:12 +00:00
Andrei Alexandrescu
25075d3d43 readded toString and atoi, albeit as deprecated 2009-04-19 17:18:27 +00:00
Andrei Alexandrescu
7b631c942e Readded atoi as deprecated inside std.string 2009-04-13 21:58:42 +00:00
Andrei Alexandrescu
d763ccf80b readded (as deprecated) functions std.string.toString, std.random.rand_seed, and std.random.random 2009-04-13 20:46:04 +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
cc1440f20d strip, stripl, stripr, startsWith, endsWith now work with any string type 2009-04-06 05:04:47 +00:00
Don Clugston
4937d6c6f1 Removed unnecessary assert(0) to allow compilation with -w. 2009-03-30 08:12:36 +00:00
Brad Roberts
22c437c8b3 Apply attachment from bug 2570 from Aziz to cleanup some bad html in ddoc comments 2009-03-29 06:32:11 +00:00
Walter Bright
095813650f comment out unittests 2009-03-05 06:45:47 +00:00
Walter Bright
d57e203dc9 fold in some OSX changes 2009-02-10 02:21:15 +00:00
Walter Bright
203f6debf5 fix scope 2008-11-06 09:57:35 +00:00
Walter Bright
3d1b760496 update to reflect this is now a reference type 2008-11-04 22:08:40 +00:00
Walter Bright
2310bb2577 rename onArrayBoundsError to onRangeError 2008-11-03 04:42:46 +00:00
Sean Kelly
5eeb591a95 Modified Phobos to reference the new core package in druntime. 2008-10-17 01:01:18 +00:00
Walter Bright
cad4405897 remove minit, add druntime.lib 2008-10-12 19:07:59 +00:00
Sean Kelly
edb5c5003e This commit includes all the changes necessary for Phobos to run against druntime. Here is a sucinct list of the changes made:
* Removed gcstats.  Garbage collector statistics will be avaialable in durintime's 'memory' module.
    * Removed object.d.  This module is replaced by the object.d provided by druntime.
    * Removed std.array.  To trap an array bounds error, import 'exception' from druntime and catch ArrayBoundsException.
    * Removed std.asserterror.  To trap an asertion failure, import 'exception' from druntime and catch AssertException.
    * Removed std.gc.  To interact with the garbage collector, import 'memory' from druntime.
    * Removed std.hiddenfunc.  No equivalent exception is currently exposed by druntime, but if one is exposed it will be called HiddenFuncException and be declared in 'exception'.
    * Removed std.moduleinit.  druntime declares ModuleInfo in object.d, so it is implicitly availble without importing.
    * Removed std.outofmemory.  To trap an out of memory error, import 'exception' from druntime and catch OutOfMemoryException.
    * Removed std.switcherr.  To trap a switch error, import 'exception' from druntime and catch SwitchException.
    * Removed std.synchro.  This functionality will exist within druintime.
    * Removed std.thread.  A Thread class is available within druntime's 'thread' module.  An interface comparison will be provided separately.
    * Removed std.typeinfo.  The classes defined in this package are for runtime use and should not be visible to the user.

The prior version of Phobos has been archived in tags/phobos-2.019 if needed.
2008-10-11 00:56:40 +00:00
Andrei Alexandrescu
66cc12d14a Issue 2264: typo in documentation regarding atof 2008-08-03 14:54:02 +00:00
Walter Bright
734819923f now runs unittests with warnings on 2008-07-10 09:46:14 +00:00
Janice Caron
2757014cac Deprecated isEmail and isUrl in std.string.
Replaced with emailLength and uriLength in std.uri.
2008-05-16 17:19:55 +00:00
Walter Bright
114fdd15e5 windows makefile changes for std.bigint 2008-05-14 00:12:21 +00:00
Janice Caron
7f9bd7675b Added array functions arrayInsert, arrayDelete, and arrayReplace. 2008-05-12 16:34:58 +00:00
Walter Bright
02232cabd1 added unit tests 2008-05-06 07:03:46 +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
Walter Bright
b60c31f0f2 fix buggy memcmp call 2008-05-06 04:08:39 +00:00
Walter Bright
07fe0769b0 fix more of the build breaks in last checkin 2008-05-05 05:17:41 +00:00
Andrei Alexandrescu
4e92b23984 * Made atoi work with all string types, but also scheduled it for deprecation in favor of to!(int) and parse!(int).
* Made atof work with all string types, but also scheduled it for deprecation in favor of to!(double) and parse!(double) (or real).

* Made cmp and icmp work with strings of all widths

* Changed signature of toStringz to return const(char)*

* Fixed signature of join so it works with immutable arrays

* Added tolowerInPlace, toupperInPlace (these may be changed or removed).
2008-05-03 16:06:52 +00:00
Walter Bright
9799bac8d1 see bugzilla 1965 2008-04-23 06:23:58 +00:00
Andrei Alexandrescu
b1a7e871c8 Added undocumented function. 2008-03-06 20:19:14 +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
a41831f06a Fix out contract of toStringz 2008-02-10 10:10:37 +00:00
Walter Bright
46330e2fe3 manifest => enum 2007-12-28 01:47:21 +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
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
Brad Roberts
15839eb802 merge branches/phobos-1.x@259 through branches/phobos-1.x@261 2007-09-10 07:18:32 +00:00
Brad Roberts
de971890b0 phobos 2.000 2007-09-10 06:45:08 +00:00
Brad Roberts
8d7ec1bb34 phobos 1.010 2007-09-10 06:03:28 +00:00
Brad Roberts
1aeecce30a phobos 1.009 2007-09-10 06:02:33 +00:00
Brad Roberts
1de7f2e4ba phobos 1.007 2007-09-10 06:02:02 +00:00
Brad Roberts
7371485bf8 phobos 0.177 2007-09-10 05:36:45 +00:00
Brad Roberts
76dac5da92 phobos 0.176 2007-09-10 05:36:13 +00:00
Brad Roberts
03f85a89ef phobos 0.173 2007-09-10 05:34:16 +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
02ee34661a phobos 0.158 2007-09-10 05:22:58 +00:00
Brad Roberts
ab805df217 phobos 0.157 2007-09-10 05:22:34 +00:00