Commit graph

128 commits

Author SHA1 Message Date
Ilya Yaroshenko
c8d9afedea clean scope imports
imports of `std.range, std.algorithm, std.array, std.string,
std.format, std.uni` are affected.
2014-11-21 00:08:35 +03:00
Ilya Yaroshenko
573c894c62 std.path: clean imports 2014-11-14 17:07:57 +03:00
Joakim
093d636de4 Deprecate std.c.* and move all remaining declarations to core.stdc.* 2014-10-14 09:26:21 -05:00
k-hara
4b632bcfb1 Revert pull request #2537 to fix git-head regression issue 13498
This reverts commit 875f2fe031, reversing
changes made to f5c7e97f2b.

The changed absolutePath code essentially cannot work because the buildPath() result is not implicitly convertible to inout(char)[], but it was accidentally accepted by the regression 13498.
2014-09-20 23:47:31 +09:00
H. S. Teoh
ecde625bc7 std.path.absolutePath should accept mutable pathnames. 2014-09-19 15:15:54 -07:00
Brad Anderson
61863ee593 Fix documentation of when dirName() allocates
Whether the `path` argument is mutable or not has no bearing on if dirName() allocates.
2014-07-20 14:15:48 -06:00
k-hara
625ed56a43 [Refactoring] reduce overloads 2014-07-15 00:43:14 +09:00
k-hara
35f1c347be Remained fix for issue 13098 - isValidFilename and alias this 2014-07-15 00:43:12 +09:00
Михаил Страшун
3ee34072a6 Merge pull request #2150 from joakim-noah/android
Get tests passing on Android/x86
2014-07-12 04:05:07 +03:00
Martin Nowak
3a114c45fb fix Issue 13098 - std.path functions no longer works with DirEntry 2014-07-11 18:30:13 +02:00
Joakim
11de397dd7 Start getting tests passing on Android/x86 2014-07-09 17:52:15 -05:00
Walter Bright
daa82fdce8 fix Issue 13056 - [2.066.0-b1] Regression: Error: template std.path.baseName cannot deduce function from argument types !()(DirEntry) 2014-07-06 16:17:04 -07:00
k-hara
e96c387027 fix property enforcement 2014-05-17 19:00:26 +09:00
monarch dodra
0c58d564e2 Merge pull request #2169 from WalterBright/path-more-ranges
std.path - more range-ification
2014-05-17 09:12:57 +02:00
Walter Bright
44c203672c isValidFilename() to range 2014-05-15 20:26:50 -07:00
Walter Bright
a9c3a3514e std.path - more rangification 2014-05-15 17:46:56 -07:00
Walter Bright
736c2edcf8 extend functions to use RandomAccessRanges 2014-05-09 11:05:18 -07:00
Walter Bright
e6bbe83518 add @nogc annotations to std.path 2014-05-05 17:38:49 -07:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
Martin Nowak
c1251436ba fix Issue 11691 - can't join pathSplitter with pathSeparator
- The inferred return type of front had an additional
  layer of const because it's a const method.
2013-12-05 15:22:01 +01:00
Martin Nowak
a30171a0cd add test 2013-12-05 15:16:32 +01:00
k-hara
7fdd9e0630 More parenthesis fix 2013-08-08 04:12:10 +09:00
monarch dodra
d19dcfa7ef Merge pull request #1442 from kyllingstad/buildPath-range
Added range version of std.path.buildPath()
2013-08-06 14:38:55 -07:00
Lars T. Kyllingstad
bacb06d048 Fixed order of imports 2013-08-06 11:31:23 +02:00
Lars T. Kyllingstad
58cbee5ec7 More improvements to buildPath()
Re: @monarchdodra's review
2013-08-01 08:22:48 +02:00
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
H. S. Teoh
5685e9a862 Simplify unittest. 2013-07-28 13:13:04 -07:00
H. S. Teoh
e43433f566 Fix issue 10601.
If extension is empty, std.path.setExtension should be equivalent to
std.path.stripExtension. This special case is useful in generic code
that needs to alternate between, e.g., .exe on Windows and no executable
extension on Posix.
2013-07-28 13:13:04 -07:00
k-hara
2f21ff0c74 More fix for issue 313 & 314 2013-06-25 17:01:52 +09: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