Commit graph

479 commits

Author SHA1 Message Date
Sean Kelly
67cf1f1be7 * Changed a few version(linux) blocks to version(Posix).
* Changed some declarations from explicit to auto.
* Changed "mkdir --parents" in Makefile to "mkdir -p" since OSX doesn't support the long version.
* REMAINING ISSUE: The "ln -sf" for installing the libraries at the end will fail if the DMD installation point is not owned by the user performing the build.  A "sudo ln..." fixes this, but it still may not be ideal to have a system-level link to a user-level file.  This should probably simply be copied instead.  Also, this copy should perhaps be done manually or in an "install" step, since a user may want to build Phobos and test it out without affecting other users.
2009-04-09 18:32:01 +00:00
Don Clugston
c71920b5f0 Bare minimum changes to allow Phobos to compile in Windows. (Segfaults running unittest, though. I managed to coax an error message out of it. std\algorithm.d(575) Error: cannot modify const). 2009-04-07 20:17:17 +00:00
Andrei Alexandrescu
8637de419d Fixes stdio circular dependency. 2009-04-06 20:49:28 +00:00
Andrei Alexandrescu
3daad438f5 New regular expression package. 2009-04-06 20:49:13 +00:00
Andrei Alexandrescu
49f646271b Range operations. 2009-04-06 20:48:41 +00:00
Andrei Alexandrescu
f686fc8dbb Fixes date and dateparse circular dependency. 2009-04-06 20:48:27 +00:00
Andrei Alexandrescu
75d047a923 unittest commented out in release mode, takes too long to compile 2009-04-06 20:46:22 +00:00
Andrei Alexandrescu
035af5a1b0 fileno only on Posix 2009-04-06 20:45:40 +00:00
Andrei Alexandrescu
29480d7df6 minor 2009-04-06 20:45:10 +00:00
Andrei Alexandrescu
9eab2e47a5 merged Windows/Posix specific code into generic 2009-04-06 20:44:48 +00:00
Andrei Alexandrescu
2f80b94bec getenv, setenv only on Posix. 2009-04-06 20:44:17 +00:00
Andrei Alexandrescu
cd8dd20137 minor 2009-04-06 20:43:47 +00:00
Andrei Alexandrescu
5492fcbd42 minor 2009-04-06 20:43:27 +00:00
Andrei Alexandrescu
96b35bcaa7 fixes for exists and setTimes 2009-04-06 20:42:54 +00:00
Andrei Alexandrescu
e4e66b0d88 commented failing unittest 2009-04-06 20:39:35 +00:00
Andrei Alexandrescu
058fb734e3 * Added declarations for struct_stat64, stat64, and fstat64. 2009-04-06 19:46:45 +00:00
Andrei Alexandrescu
71226e5948 * Added constructors, assignment operator, length, toString, and slice
to Tuple.
2009-04-06 18:35:00 +00:00
Andrei Alexandrescu
88698a6f03 replaced calls to rand() with calls to uniform() 2009-04-06 18:34:09 +00:00
Andrei Alexandrescu
ff252e5b2f * toUTF16z accepts in char[] 2009-04-06 18:33:41 +00:00
Andrei Alexandrescu
8e984d175b minor 2009-04-06 18:32:59 +00:00
Andrei Alexandrescu
bcfdd75970 minor 2009-04-06 18:32:37 +00:00
Andrei Alexandrescu
00306ed479 minor 2009-04-06 18:32:13 +00:00
Andrei Alexandrescu
bf7a7504ac std.c -> core.stdc fixes 2009-04-06 18:31:30 +00:00
Andrei Alexandrescu
fd3c6e3daf std.c -> core.stdc fixes 2009-04-06 18:31:09 +00:00
Andrei Alexandrescu
f8cfa562d2 Fixed stat64, fstat64 declarations. 2009-04-06 18:30:41 +00:00
Andrei Alexandrescu
d8e8dd36c5 * Major breaking changes: introduced the File struct. Now stdin, stdout, stderr are instances of the File struct. 2009-04-06 18:29:39 +00:00
Andrei Alexandrescu
6f1c06c040 minor 2009-04-06 17:42:59 +00:00
Andrei Alexandrescu
4015aa120e * Scheduled for deprecation. Use std.regex instead. 2009-04-06 17:33:36 +00:00
Andrei Alexandrescu
0cb5ab45bb * Added RandomCover that covers a given range in a random manner
* Eliminated the old-fashioned random functions
* Defined a default random object that simplifies calls to the random
functions
* Changed generators to obey the range interface.
2009-04-06 17:31:00 +00:00
Andrei Alexandrescu
28143701ed minor 2009-04-06 17:28:29 +00:00
Andrei Alexandrescu
0861028456 minor 2009-04-06 17:27:25 +00:00
Andrei Alexandrescu
c26ac41eb5 * getDrive now works with all string types
* isabs accepts in char[]
* join accepts variadic in char[]
* fnmatch works with in char[]
2009-04-06 17:20:10 +00:00
Andrei Alexandrescu
c20f1d3b66 * Added a few missing overloads of write() 2009-04-06 17:18:25 +00:00
Andrei Alexandrescu
739923a491 * Added type CustomFloat that allows defining specialized floating-point
numbers (e.g. 16-bit floats, positive floats etc.)
* Added FPTemporary as the best type to store temporary values.
* Templatized oppositeSigns
* Added Euclidean distance
* Added dotProduct
* Added cosineSimilarity
* Added normalize
* Added string kernel functions gapWeightedSimilarity,
gapWeightedSimilarityNormalized, gapWeightedSimilarityIncremental.
2009-04-06 17:17:52 +00:00
Andrei Alexandrescu
b186767ebd minor 2009-04-06 17:15:51 +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
74d233da48 * read, write, append, rename, remove, getSize, getTimes, getAttributes,
isfile, isdir, chdir, mkdir, mkdirRecurse, rmdir, listdir, copy, take
filename(s) by "in char[]"
* Added function readText that reads and validates a text file
* Added function slurp that reads a file into an array of tuples.
2009-04-06 17:15:07 +00:00
Andrei Alexandrescu
ca2a767e65 * Rewrote conversions with constrained templates.
* Added text() function that transforms everything into text.
2009-04-06 17:14:34 +00:00
Andrei Alexandrescu
4e8ef0ba4e minor 2009-04-06 06:19:07 +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
Andrei Alexandrescu
310ace17ad * read, write, append, rename, remove, getSize, getTimes, getAttributes,
isfile, isdir, chdir, mkdir, mkdirRecurse, rmdir, listdir, copy, take 
filename(s) by "in char[]"
* Added function readText that reads and validates a text file
* Added function slurp that reads a file into an array of tuples.
2009-04-06 06:05:16 +00:00
Andrei Alexandrescu
460afaba4e minor 2009-04-06 06:00:11 +00:00
Andrei Alexandrescu
4b5831ad65 minor 2009-04-06 05:59:01 +00:00
Andrei Alexandrescu
743d8167c8 * Added a benchmark function that allows for simple timing measurements. 2009-04-06 05:58:23 +00:00
Andrei Alexandrescu
f3352ed35f * enforce accepts const(char)[] instead of string
* Added enforce overload that invokes a delegate on failure
* Added assumeSorted template
* Added structuralCast that implements, well, structural casting 
(incomplete).
2009-04-06 05:53:07 +00:00
Andrei Alexandrescu
02a90ee461 * Bitfields of length 0 are defined to be always 0.
* The read functions for bitfields are const.
2009-04-06 05:49:25 +00:00
Andrei Alexandrescu
9fa842e221 minor 2009-04-06 05:48:33 +00:00
Andrei Alexandrescu
0e0c15aa4b 2009-04-06 05:48:05 +00:00
Andrei Alexandrescu
9d341e7cae Range primitives for arrays 2009-04-06 05:46:42 +00:00
Andrei Alexandrescu
6ec5113812 minor 2009-04-06 05:44:56 +00:00