Andrej Mitrovic
26de06e404
Move templates below OriginalType
2012-04-19 04:08:41 +02:00
Andrej Mitrovic
41fc17ee6b
Change unittest and add static assert to examples.
2012-04-19 03:48:07 +02:00
Andrej Mitrovic
a7148b3bb5
Merge remote-tracking branch 'upstream/master' into KeyTypeValueType
2012-04-19 03:43:06 +02:00
Vladimir Panteleev
f25f1f7f41
std.regex: Fix math in replace example
...
Not only was the sum of two numbers incorrect, but the replace
operation seemingly added 100 to the result as well ;)
2012-04-18 18:51:03 +03:00
deadalnix
5aba76a9ad
Merge branch 'master' of git://github.com/D-Programming-Language/phobos into isbuiltin
2012-04-18 12:58:44 +02:00
k-hara
e3cfaeb005
fix Issue 7919 - Sample code works on GDC but fails with DMD
2012-04-17 18:01:04 +09:00
nhkcon
99405cfd49
fix simple example
2012-04-16 00:27:40 +03:00
Hara Kenji
9b8abdbaa4
Merge pull request #476 from jmaschme/fixModuleNameWithNoPackage
...
Modified moduleName trait to only include the package name if it is valid
2012-04-15 06:16:29 -07:00
Hara Kenji
da44d0b006
Merge pull request #525 from denis-sh/remove-workarounds-for-2986
...
Removed workarounds for resolved bug 2986
2012-04-15 05:03:47 -07:00
Hara Kenji
e666b6c806
Merge pull request #526 from denis-sh/fix-pointerTarget-name
...
Capitalize `pointerTarget`'s first letter
2012-04-15 01:05:24 -07:00
Hara Kenji
dd26e99da8
Merge pull request #524 from denis-sh/improve-variadicFunctionStyle-and-isIterable
...
Small improvements not changing the functionality
2012-04-15 01:04:13 -07:00
Kato Shoichi
022808fa68
Merge pull request #519 from NilsBossung/std.path_deprecations
...
std.path deprecations
2012-04-14 02:11:57 -07:00
Andrei Alexandrescu
c8ca17c6c6
Merge branch 'master' of github.com:D-Programming-Language/phobos
2012-04-13 22:06:43 -05:00
Andrei Alexandrescu
be4bdc5dfa
Fix documentation build
2012-04-13 22:05:29 -05:00
James Miller
ad092c3238
Fixed up singleSpec Documentation
2012-04-13 21:07:33 +12:00
James Miller
867d5e29d3
Adds singleSpec to std.format
...
Adds a helper function for geting the format spec for a single format
specifier
2012-04-13 20:58:55 +12:00
James Miller
cda3c079ee
Improvements to std.format documentation
2012-04-13 20:12:12 +12:00
Nils Boßung
2f247b28fa
sep (deprecated) -> dirSeparator
2012-04-13 09:56:26 +02:00
k-hara
9e37c2aecc
fix Issue 7869 - Cannot format pointer of struct has toString member function
2012-04-09 14:32:23 +09:00
k-hara
a6095fc9f3
Add new xformat and xsformat, they use formattedWrite as well as like writef family.
2012-04-09 02:13:00 +09:00
k-hara
affd4922f2
formattedWrite and formattedRead returns the number of formatted arguments
2012-04-09 02:13:00 +09:00
k-hara
f86d87e439
Change to one format string and following formatted arguments
2012-04-09 02:11:46 +09:00
k-hara
a153ac3f3b
fix Issue 7857 - File#write formats enum as a boolean.
2012-04-09 00:24:47 +09:00
Andrei Alexandrescu
2a8f28131c
Fix hardcoded deleteme dir entry
2012-04-07 20:49:38 -05:00
Andrei Alexandrescu
d2a605d8ec
Merge pull request #398 from jpf91/isRNG
...
Add isRandomNumberGenerator template
2012-04-07 13:37:54 -07:00
Jonas Drewsen
be9cbd854f
Automatically add protocol if not present to improve protocol detection.
...
Set upload curl option on FTP file uploads
2012-04-07 22:05:22 +02:00
Ellery Newcomer
f1566faeaf
fix issue 7022
...
fix issue 7831
detach sets p=null, which makes it kind of hard for the destructor
to actually close the file or decrement the reference count.
2012-04-07 11:08:34 -05:00
Denis Shelomovskij
20420759cb
Capitalize pointerTarget
's first letter
2012-04-07 16:40:23 +04:00
Denis Shelomovskij
dc6c8c6c93
Removed workarounds for resolved bug 2986
2012-04-07 14:20:38 +04:00
Denis Shelomovskij
0f9ecb9044
Small improvements not changing the functionality
...
* get rid of `determineVariadicity` private function
* make `isIterable` template shorter
2012-04-07 14:05:00 +04:00
Denis Shelomovskij
92ea4946b8
Change C++ style CT test to D style, make unittests CT
2012-04-07 13:42:28 +04:00
Walter Bright
8fda49a93b
more nothrow
2012-04-06 16:26:42 -07:00
Dmitry Olshansky
4fd562bbc6
fix isTwoWay compatible predicate
2012-04-05 19:43:17 +04:00
Nils Boßung
6f1a2b05d2
remove -> linearRemove
2012-04-05 04:14:48 +02:00
Nils Boßung
e69e75e56c
compare _data with 'is'
2012-04-05 03:52:12 +02:00
Nils Boßung
ad2ec19d04
test replace!Stuff with range Stuff
2012-04-05 01:50:07 +02:00
Nils Boßung
da0d4d1c01
don't append, but insert
2012-04-05 01:39:16 +02:00
Nils Boßung
678a49e10c
remove -> linearRemove
2012-04-05 01:39:13 +02:00
Nils Boßung
fd80105431
remove what looks like forgotten, useless code
2012-04-05 01:39:10 +02:00
Nils Boßung
55d89dcad1
move the import of onOutOfMemoryError out of the deprecated section
...
outOfMemoryError is in use by undeprecated code, and it's not deprecated
itself either
2012-04-04 20:19:44 +02:00
Nils Boßung
dfe83f155d
sep (deprecated) -> dirSeparator
2012-04-04 20:19:24 +02:00
Vladimir Panteleev
dff1cc17d1
std.datetime: Remove redundant SYSTEMTIME step when converting FILETIME
...
Both FILETIME and SysTime store time as the number of elapsed hnsecs
since a certain (different) epoch. Therefore, the optimal way to convert
between the two would be simply adding/subtracting the epoch difference.
This is not what std.datetime used to do - instead, FILETIME values
were converted to SYSTEMTIME (a structure with year/month/day/etc.
fields), and then created the SysTime result from that (and vice-versa),
which was very inefficient.
The "add epoch difference" method was already used in SysTime.currStdTime.
It has been refactored out and used in FILETIME conversion functions.
2012-04-04 18:00:49 +03:00
deadalnix
5969d63723
Renaming of isBuiltin to isBasicType and addition of isScalarType
2012-04-04 14:23:51 +02:00
deadalnix
feb2c30a83
Add isBuiltin to detect builtin types.
2012-04-03 21:08:20 +02:00
Jacob Carlborg
c71052bbf8
Fix: Incorrect indentation using std.xml.pretty.
...
When an attribute contains a multibyte string std.xml.pretty
incorrectly indent the tag.
2012-04-02 20:51:00 +02:00
Vladimir Panteleev
ffd3752a2e
std.md5: Lower buffer size in mdFile example
...
When trying to use the function from the example as-is on a large
directory tree, the D program will quickly run out of memory due
to false pointers on 32-bit machines (File.byChunk will allocate
a new buffer for every file).
2012-03-31 20:02:07 +03:00
Vladimir Panteleev
7901c9d19e
std.file: Use GetFileAttributesEx to query file attributes
...
FindFirstFile and CreateFile may fail in certain circumstances when
GetFileAttributesEx would succeed - for example, if the user doesn't have
directory listing permissions on the object's containing directory.
2012-03-31 19:52:09 +03:00
Vladimir Panteleev
65bd541276
std.file: Fix time unittest when temp file exists before unittest runs
2012-03-31 19:37:46 +03:00
Nick Treleaven
391dcd1a67
Use 'any character except' instead of 'any character but'
2012-03-30 17:44:25 +01:00
Nick Treleaven
5dba234be2
Minor doc fixes for main description of std.regex
...
These include spelling, typos, usual english/flow and some space
alignment. Add missing 'a' or 'the' where necessary.
Add 'but no more than m times' to the description for {n,m}
quantifier, to differentiate from {n,} description.
Add a 'Slicing' heading to separate the Unicode and returning slices
sections.
2012-03-30 17:44:24 +01:00