Jack Stouffer
663b5b9278
Revert addition of StdUnittest
2018-02-20 13:32:32 -05:00
Jack Stouffer
18cbb29b04
Replaced version(unittest) blocks with version(StdUnittest)
2018-02-01 19:56:59 -05:00
Jonathan M Davis
8d158d3a1d
Fix safety of withDefaultExtension for implicitly convertible types.
2018-01-27 21:02:49 -07:00
Jonathan M Davis
32e4e8ab13
Remove some unnecessary template constraints.
...
The public-facing functions already should protect these private
functions against getting bad input, and we might as well avoid making
the compiler do extra work.
2018-01-27 20:30:27 -07:00
Jonathan M Davis
39fa1a5532
Fix safety of withExtension for implicitly convertible types.
2018-01-27 20:30:27 -07:00
Jonathan M Davis
47b67275d9
Add missing template constraint on stripDrive.
2018-01-27 20:23:19 -07:00
Jonathan M Davis
879f6851ac
Fix safety of stripExtension for implicitly convertible types.
2018-01-27 20:23:19 -07:00
Sebastian Wilzbach
70d3b892ff
Merge pull request #5410 from jmdavis/path
...
Fix safety issues with driveName, stripDrive, and rootName
2018-01-28 02:12:46 +01:00
Jonathan M Davis
d4a7e693d7
Fix safety of stripDrive for implicitly convertible types.
2018-01-27 17:15:54 -07:00
Jonathan M Davis
13240d7825
Fix safety of rootName for implicitly convertible types.
2018-01-27 17:15:54 -07:00
Jonathan M Davis
0af330d2de
Fix safety of driveName for implicitly convertible types.
2018-01-27 17:15:54 -07:00
Lance Bachmeier
04dbe396b9
Update path.d
2018-01-26 16:33:55 -06:00
The Dlang Bot
f3189822ab
Merge pull request #5989 from wilzbach/static-foreach
...
Use static foreach in Phobos
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-01-03 19:05:07 +01:00
Sebastian Wilzbach
7de3787876
Use static foreach in Phobos
2018-01-03 17:30:11 +01:00
Sebastian Wilzbach
9f492c1c2c
@safeify more unittests
2018-01-03 05:44:04 +01:00
Thomas Mader
9add02ecbb
Don't expect root home dir in unittest
2017-12-28 09:13:36 +01:00
Diederik de Groot
31ca73d58d
Port of phobos to DragonFlyBSD
...
Notes:
- FIXME message related to dragonfly malloc issue (issue reported on upstream dragonfly issue database)
2017-12-20 08:05:49 +01:00
Sebastian Wilzbach
df6365092a
Replace body
keyword with its replacement: do
...
Automatic replacement with
sed -i "s/^\([ ]*\)body/\1do/" -i **/*.d
2017-11-20 15:33:52 +01:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
...
This reverts commit 998ad51fd7
.
2017-06-13 17:51:52 +00:00
Sebastian Wilzbach
998ad51fd7
Sort selective imports
2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d
Sort imports
2017-06-12 07:54:38 +02:00
Walter Bright
75744e07f3
Merge pull request #5406 from jmdavis/path
...
Fix safety issues with baseName and dirName
2017-05-21 07:24:31 -07:00
Walter Bright
c0403e1527
path.d: add overflow checks
2017-05-20 13:07:08 -07:00
Jonathan M Davis
edc049d7dd
Fix it so that using convertible types with baseName is @safe.
2017-05-20 09:16:07 -07:00
Jonathan M Davis
cc8bd1cdfc
Fix it so that dirName does not use isConvertibleToString.
2017-05-20 08:43:35 -07:00
Sebastian Wilzbach
b95264241f
[BOOKTABLES]: Add BOOKTABLE to std.path
2017-03-01 08:27:58 +01:00
Sebastian Wilzbach
425ab667a3
Automatically set the range style from a..b -> a .. b
...
Commands:
sed -E "s/([[:alnum:]])[.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]])[.][.] ([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) [.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
2017-02-22 05:37:31 +01:00
Sebastian Wilzbach
805c720595
Unify Phobos by ensuring there's always a space after cast(...)
...
Command:
sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
2017-02-21 16:40:20 +01:00
Sebastian Wilzbach
5521541032
Unify assert style to have no spaces between the first brace
...
Application of:
sed -E "s/assert +\(/assert(/" -i **/*.d
2017-02-21 15:27:15 +01:00
Sebastian Wilzbach
87dec58a41
DStyle: Constraints on declarations should have the same indentation level
2017-02-17 07:36:23 +01:00
Jack Stouffer
da65768451
Add checks for infinite ranges in many range function signitures
2017-02-14 21:59:12 -05:00
Sebastian Wilzbach
cc7f125ed1
Add missing imports to public unittests
2016-12-15 23:23:35 +01:00
Basile Burg
9d1fc0750b
[TRIVIAL, DDOC] fix issue 16624 - setExtension ddoc comment is strangely formated
2016-11-03 10:09:46 +01:00
Sean Enck
335beff82d
The word "tranforms" is a typo, should be "transforms" (especially painful when searching for the word "transforms")
2016-10-15 11:12:28 -04:00
Jack Stouffer
8053150b64
Remove package wide std.algorithm imports from std.path
2016-09-16 10:33:21 +01:00
Walter Bright
6c379491db
std.path: make .ptr access trusted
2016-07-23 17:58:13 -07:00
Atila Neves
5ed8ffc05b
Add @system and @safe to std.path unit tests
2016-07-08 16:24:32 +02:00
Jack Stouffer
bc0276ff16
Fixed local imports in std.path
2016-07-01 09:42:41 -04:00
Sebastian Wilzbach
ec47ac4224
Remove the WEB macro in favor of HTTP
...
replacement: sed 's/\$(WEB/\$(HTTP/g' -i **/*.d
2016-06-16 00:14:51 +02:00
Sebastian Wilzbach
2dfbc51f17
Standardize whitespace after imports
...
Unified with:
sed -E "s/import\s*([^ ]+)\s*:\s*(.*(,|;))/import \1 : \2/" -i **/*.d
2016-05-29 22:09:56 +02:00
anonymous
764caefa36
XREF -> REF (sed)
...
Done by:
(find . -type f -name "*.d" -print0; \
find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r \
's/\$\(XREF\s+([^(),]*),\s*([^(),]*)\)/$(REF \2, std,\1)/g'
2016-05-27 21:32:46 +02:00
Sebastian Wilzbach
18b8abf60a
remove the deprecated wiki macros
2016-05-27 05:52:23 +02:00
Vladimir Panteleev
ee2fe285c8
std.path: Emphasize that isValidPath does not check existence
2016-04-02 07:55:45 +00:00
Martin Nowak
ce2ac192c9
fix incorrect imports/fqn usages
...
- mostly of the form `import a.b : sym; a.b.sym();`, which is wrong b/c
selective imports do not add the module to the current scope
2016-02-20 14:41:44 +01:00
Benjamin L. Merritt
5f08c058ab
Changed "Examples:" in Ddoc to "Example:"
2015-12-17 18:32:41 -08:00
Dragos Carp
75cbbef0ab
Add asserts for the "compiles" tests
2015-11-16 03:04:07 +01:00
Dragos Carp
eb293b5063
Fix issue 15320
2015-11-13 03:45:29 +01:00
Martin Nowak
0e95f6723a
Merge remote-tracking branch 'upstream/stable' into merge_stable
2015-10-27 15:55:59 +01:00
Martin Nowak
0a9f9ccc3e
fixup for string-like overloads
...
- undocument overloads for aliased/static strings
- make std.traits helpers phobos internal
- rename isStringLike to isConvertibleToString for clearer documentation
- rename peelStringLike to convertToString
- fix a few staticMap!(selectString) uses in std.path
2015-10-26 19:50:08 +01:00
Martin Nowak
994ef503b2
std.path fixes for string-like types
2015-10-25 19:28:08 +01:00