Sebastian Wilzbach
d548e8830a
Replace LUCKY links with actual links
2017-02-28 23:46:54 +01:00
Sebastian Wilzbach
203755d296
Automatically add spaces to binary operators (>>)
...
command:
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-23 00:57:47 +01:00
Sebastian Wilzbach
ef7be4b60d
Automatically add spaces to binary operators (<<)
...
command:
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-23 00:57:47 +01:00
Sebastian Wilzbach
d905ef53b1
Automatically add spaces to binary operators (<=)
...
command:
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-23 00:57:47 +01:00
Sebastian Wilzbach
0b33b50812
Automatically add spaces to binary operators (!=)
...
command:
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-23 00:57:47 +01:00
Andrei Alexandrescu
30724e67d9
Merge pull request #5166 from wilzbach/dscanner-unittest-safe-or-system
...
Dscanner: let unittest be @safe or @system
2017-02-22 14:44:08 -05:00
Sebastian Wilzbach
6c9b626e6f
[opSlice stye fixup] fix false-positives from the automatic conversion
2017-02-22 06:33:37 +01:00
Sebastian Wilzbach
a36cec8686
DScanner: automatially set all unattributed unittests to @safe or @system
2017-02-22 05:42:04 +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
87dec58a41
DStyle: Constraints on declarations should have the same indentation level
2017-02-17 07:36:23 +01:00
Jack Stouffer
5a2491a847
Fix Issue 17161 - Revert all changes to std.regex from 2.072.2 onwards
2017-02-12 12:30:40 -05:00
Sebastian Wilzbach
cc7f125ed1
Add missing imports to public unittests
2016-12-15 23:23:35 +01:00
Ilya Yaroshenko
5c770fba08
Merge pull request #4933 from sprinkle131313/master
...
Issue 13429: make sicmp and icmp @nogc nothrow.
2016-12-08 23:09:23 +02:00
Sebastian Wilzbach
b82ae35fd7
Use void for auto function without return statement
2016-12-08 12:32:14 +01:00
Ilya Yaroshenko
9046849d36
Merge pull request #4932 from dlang/stable
...
merge stable into master
2016-12-07 18:08:59 +02:00
sprinkle131313
40787cee7f
Issue 13429: make sicmp and icmp @nogc nothrow
2016-12-06 12:11:29 -05:00
Dicebot
2f27e58b0e
Add regression test for issue 16663
2016-11-15 12:26:59 +02:00
Dicebot
8f8979ebe1
Revert "Merge pull request #4790 from JackStouffer/uni-private"
...
This reverts commit 1a7914a48c
, reversing
changes made to d38727771b
.
Fixes issue 16663
2016-11-10 19:21:14 +02:00
Dmitry Olshansky
e98fa4ad5a
[std.regex] Fix issue 9391 - const regex, ctRegex is immutable
2016-10-07 01:40:41 +03:00
Andrei Alexandrescu
1a7914a48c
Merge pull request #4790 from JackStouffer/uni-private
...
Make private, remove, or document undocumented public symbols in std.uni
2016-09-30 23:54:50 -04:00
Jack Stouffer
38e136b46e
Removed redundant code for iterating over code units
2016-09-19 08:55:40 +01:00
David Nadlinger
dc2a67c1ac
std.uni: Don't hard-code @safe on template accepting output range
...
Fixup for GitHub #4792 .
2016-09-17 02:50:58 +01:00
Jack Stouffer
727985e504
Remove undocumented template hacks
2016-09-16 15:23:49 +01:00
Jack Stouffer
f5b8e679aa
Document alias-this work arounds
2016-09-16 15:23:49 +01:00
Jack Stouffer
7bd3b2eabc
document or make private public symbols
2016-09-16 15:23:47 +01:00
Walter Bright
c8c948fae8
make std.uni a bit safer
2016-09-16 03:01:47 -07:00
Walter Bright
d48c3c35ed
std.uni: add overflow checks to storage allocation
2016-08-02 14:32:05 -07:00
Jack Stouffer
5092d645a3
Added const and immutable to several variables in std.uni
2016-07-20 10:03:35 -04:00
Jack Stouffer
c08e6561c9
Removed unused variables from std.uni
2016-07-12 09:58:39 -04:00
Atila Neves
307b2a3f1a
Add @system and @safe to std.uni unit tests
2016-07-11 15:15:11 +02:00
Dmitry Olshansky
f0634c25bd
Merge pull request #4448 from JackStouffer/icmp
...
Removed auto-decoding from std.uni.icmp
2016-07-04 23:17:16 +02:00
Jack Stouffer
484bc2b9e8
Removed auto-decoding from std.uni.icmp
2016-07-03 21:20:15 -04:00
Andrei Alexandrescu
f639a9bc3d
Merge pull request #4473 from WalterBright/unisafetoString
...
make safe inference of std.uni toString() work
2016-06-25 16:01:04 -05:00
Walter Bright
73cda6193f
make safe inference of std.uni toString() work
2016-06-25 03:43:58 -07:00
Leandro Motta Barros
7907869129
Fixed typo: "below" instead of "bellow".
2016-06-18 15:54:10 -03:00
Andrei Alexandrescu
7172eda466
Merge pull request #4327 from tsbockman/isPowerOf2
...
Add `std.math.isPowerOf2()`. Supports floating-point and integers.
2016-06-16 23:09:02 -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
Walter Bright
16099c6ec5
fix
...
Issue 14136 - std.uni.utfMatcher breaks @safety
2016-06-07 05:09:12 -07:00
tsbockman
18d1b436e4
Update Phobos to use the new std.math.isPowerOf2()
everywhere.
...
`std.uni` looks like it may depend upon its local `isPowerOf2()` implementation
to return `true` for `0`. Since the semantics are different from the standard
version, I have renamed it to `isPow2OrZero()` to avoid confusion.
2016-06-04 21:19:38 -07:00
Joakim
a839be6dcc
Fix five modules where imports were made more local and selective.
2016-06-04 00:09:48 +05:30
Joakim
6ced417517
std.uni: roll back module-scope selective import that slipped through, revert this once allowed
2016-06-02 15:55:32 +05:30
Sebastian Wilzbach
1d34a121e9
apply all-man braces in Phobos
...
// find common cases
sed -E "s/^(\s*)((if|static if|for|foreach|foreach_reverse|while|unittest|switch|else|version).*)\s*\{$/\1\2\n\1{/" -i **/*.d
// catch else-if
sed -E "s/^(\s*)} (else static if| if|else if|else)(.*)\s*\{$/\1}\n\1\2\3\n\1{/" -i **/*.d
// remove created trailing whitespace
sed -i 's/[ \t]*$//' **/*.d
2016-05-31 13:07:53 +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
d648f9320e
XREF_PACK -> REF (sed)
...
Done by:
from='\$\(XREF_PACK\s+([^(),]*),\s*([^(),]*),\s*([^(),]*)\)'
to='$(REF \3, std,\1,\2)'
(find . -type f -name "*.d" -print0; \
find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r "s/$from/$to/g"
2016-05-27 21:32:46 +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
Dmitry Olshansky
519ff9fa46
Merge pull request #4365 from joakim-noah/uni_imports
...
std.uni: use selective imports and document module-scope imported symbols
2016-05-27 13:53:00 +04:00
Sebastian Wilzbach
18b8abf60a
remove the deprecated wiki macros
2016-05-27 05:52:23 +02:00
Joakim
19e5af264f
std.uni: use selective imports and document symbols imported at module scope, checked with ddmd
2016-05-26 04:20:49 +05:30
Sebastian Wilzbach
f2edef56ea
fix table formatting in uni.d
2016-05-25 03:53:03 +02:00