Lars T. Kyllingstad
d6ce714d20
Pre-allocate 255 bytes, not 256, in buildPath()
...
...as recommended by @monarchdodra.
2013-07-31 19:42:59 +02:00
Lars T. Kyllingstad
3e2574a001
Minor buildPath DDOC style issue
2013-07-31 19:09:46 +02:00
Lars T. Kyllingstad
23a1fe9ae0
Added unittests for issue 10348
2013-07-31 19:04:11 +02:00
Lars T. Kyllingstad
e78e55558d
Minor buildPath() style issues
2013-07-31 18:15:07 +02:00
Lars T. Kyllingstad
b6757581d3
Added range version of std.path.buildPath()
2013-07-30 20:50:00 +02:00
k-hara
e2d991b005
Move checkCTFEable to std.exception.assertCTFEable, and use it
2013-06-02 02:32:24 +09:00
Vladimir Panteleev
16286c045b
DDoc tweaks and fixes
2013-04-18 23:49:06 +00:00
Lars T. Kyllingstad
869769d684
Removed deprecated functions from std.path
2013-03-27 16:23:55 +01:00
Andrei Alexandrescu
1b2b5fb76e
Merge pull request #951 from monarchdodra/count3
...
improvements/fixes for count countUntil
2012-12-13 09:17:47 -08:00
k-hara
01df2f60be
Remove redundant parenthesis for getters, and use assignment syntax for setters
2012-11-23 15:07:17 +09:00
monarch dodra
a98a93f1e4
fixing countUntil vs indexOf issue
2012-11-20 09:05:50 +01:00
Vladimir Panteleev
fde0998dea
Fix various problems in DDoc, identified from compiler warnings.
2012-10-19 19:09:47 +03:00
alexrp
b202180295
Remove all uses of sizediff_t in favor of ptrdiff_t.
2012-10-15 04:24:09 +02:00
alexrp
d27198beed
Use errno property instead of setErrno in std.path.
2012-07-09 04:35:56 +02:00
Denis Shelomovskij
350a8f263d
Do not call getcwd
(or other base
) in absolutePath
and relativePath
if not needed.
2012-05-03 17:37:19 +04:00
k-hara
c1aa44b250
Revert a part of pull #558
2012-05-02 23:54:21 +09:00
Lars T. Kyllingstad
a0cb29e077
std.path: Note all memory allocations in docs
...
Most functions represent simple and cheap string-slicing operations. In
some cases, however, new memory must be allocated, and this increases
the cost of the operation by orders of magnitude. As some of these
cases may not be very obvious, I think it is best they are explicitly
mentioned in the documentation.
2012-05-01 09:10:08 +02:00
Lars T. Kyllingstad
6813b56d9f
More consistent std.path docs
...
Specifically, the documentation for all functions is now written in
descriptive rather than imperative form.
2012-05-01 08:05:37 +02:00
Lars T. Kyllingstad
4f598ffcb0
std.path: Added more function attributes
...
Improvements in the compiler have made it possible to fix some old
TODOs.
2012-04-30 23:31:50 +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
jmdavis
61c3c09004
Fix dmd tests on Windows.
2012-03-17 19:03:13 -07:00
jmdavis
982070556e
Small tweak to std.path to get dmd's unit tests to compile.
...
It looks like the static assert didn't like being compiled with
deprecated symbols.
2012-03-10 20:10:29 -08:00
jmdavis
1078995f00
Deprecated old std.path functions.
...
They were scheduled for deprecation in March.
2012-03-10 17:56:04 -08:00
jmdavis
091609ca1e
Moved February deprecations to March.
...
Having the January deprecations and February deprecations in the same
month seems a bit much to me, since we managed to have both of those
months have quite a few, whereas the next few months have very few if
any. And we're close to release too, so I'd prefer to avoid causing
issues by deprecating them now.
2012-02-11 02:44:46 -08:00
k-hara
490e7c577e
Insert assertions that check the results.
2012-02-06 19:53:32 +09:00
k-hara
6b9da73f83
buildNormalizedPath() and join() have same issue.
2012-02-06 19:53:31 +09:00
k-hara
c07fe7c8ba
Issue 7397 - [Regression] std.path.buildPath can't be used with string[]
2012-02-06 19:53:31 +09:00
Daniel Green
58f4356ca2
Change version( Win32 ) to version( Windows ) when Win64 would be supported as well.
2012-01-16 22:10:18 -05:00
David Nadlinger
e312f9898b
Strict @property syntax compliance.
...
This enables the test suite to build with the -property switch enabled.
std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
Andrei Alexandrescu
703f612973
Fixed wrong C library lookups
2011-11-12 21:55:22 -06:00
Lars T. Kyllingstad
2c682cf0c1
Remove unsafe casts in std.path
2011-11-01 08:04:18 +01:00
Lars T. Kyllingstad
4c4c46b578
Revert "Change basename() to @trusted until 6169 is fixed"
...
This reverts commit 081113c024
.
2011-11-01 07:54:00 +01:00
Lars T. Kyllingstad
081113c024
Change basename() to @trusted until 6169 is fixed
2011-10-31 17:55:42 +01:00
Lars T. Kyllingstad
4ddeee1712
Failing CTFE tests still fail, but for new reasons
2011-10-27 22:28:10 +02:00
Lars T. Kyllingstad
bc3db761fa
std.path: more @safe, pure and nothrow annotations
...
There are still a few left which cannot be enabled due to compiler bugs
or other parts of Phobos not being correctly annotated, but we're
getting there. ;) The remaining ones are all clearly marked with TODO
comments.
2011-10-27 22:10:25 +02:00
Lars T. Kyllingstad
8de508a968
Apply inout to std.path
...
Unfortunately, I was unable to do so for dirName() due to its
first statement:
enum currentDir = cast(C[]) ".";
The reason is that it is not possible to create an enum of an
inout type.
2011-10-27 21:47:12 +02:00
jmdavis
256976dddd
Removed "scheduled for deprecation" pragmas.
...
The pragmas have not been as effective as we might have liked, since
they only work with templates and can't tell you where in your code you
need to make changes, and they seemed to have been more annoying to
programmers than helpful, so we're going to discontinue them. We'll
leave them in for stuff that's actually been deprecated until deprecated
has been improved enough to take a message, but we'll leave "scheduled
for deprecation" messages to the documentation and changelog.
2011-10-23 23:11:17 -07:00
rainers
d037f84c3c
BUG -> issue
2011-09-21 09:34:42 +02:00
rainers
9944ae1638
ad comment
2011-09-21 07:46:02 +01:00
rainers
6055e57caa
fix assert in globMatch and fnmaitch
2011-09-20 07:45:32 -07:00
rainers
3b33f91183
add tests for issue 6634
2011-09-19 09:39:20 -07:00
dawg
8783e87185
fix fallout from fixing Bug6652
2011-09-13 07:53:24 +02:00
Lars T. Kyllingstad
6364506918
The new std.path
2011-08-18 08:02:04 +02:00
Denis
d3c7cfd14a
The ping is accepted.
2011-06-15 05:50:05 -07:00
denis-sh
d578b1d4ed
isSepOrAltSep => isSep
...
template Char type in private functions => dchar
2011-05-29 05:00:37 -07:00
denis-sh
254d9a8fce
Added Windows's altsep support to getExt, getName and join (bugfix, I think).
...
Some cosmetic changes.
2011-05-28 04:31:26 -07:00
Walter Bright
046e1b36db
add source links
2011-02-06 15:46:50 -08:00
Andrei Alexandrescu
272ceaa9a6
Improvements to replicate(); documented splitter() for strings; renamed replace() in place to replaceInPlace(); removed replace() that takes void* in the last position; moved replace() from string to array and generalized it; attached constraint to functional.not; more cleanup of std.string; improved std.algorithm.util and count to accept ranges; improved constraint in std.algorithm.remove
2011-01-21 08:39:39 +00:00
Andrei Alexandrescu
c2f018066a
Changed signature of findSkip, scheduled indexOf for deprecation, removed obsolete unittests
2011-01-17 08:36:59 +00:00
Andrei Alexandrescu
92bfc0311f
Fixed type of cmp result
2011-01-11 05:46:40 +00:00