Commit graph

239 commits

Author SHA1 Message Date
Sebastian Wilzbach
1a26901f48 [BOOKTABLES]: Add BOOKTABLE to std.utf 2017-03-01 21:59:18 +01:00
Sebastian Wilzbach
b8a88558a9 Fix Ddoc warnings 2017-02-26 09:33:14 +01:00
Sebastian Wilzbach
a2c6398332 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
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
Sebastian Wilzbach
e95fabb90e Merge pull request #5126 from JackStouffer/codeLength
Improve the documentation and template constraints for codeLength
2017-02-15 16:51:51 +01:00
Jack Stouffer
4e0094878f Improve the documentation and template constraints for std.utf.codeLength 2017-02-15 10:22:51 -05:00
Jack Stouffer
360a42ec05 Add checks for infinite ranges in many range function signitures 2017-02-14 14:19:04 -05:00
Jack Stouffer
0a6c31bbee Deprecate obsolete encoding functions in std.utf 2017-02-12 13:22:54 -05:00
Jack Stouffer
4a7ccddd64 Merge pull request #5051 from JackStouffer/toUTF32
Range-ify and DRY std.utf.toUTF32
2017-02-11 22:35:58 -05:00
Walter Bright
e6a21ecd35 Merge pull request #5066 from dlang/JackStouffer-patch-1
Remove some commented out code and redundant comment
2017-02-10 15:58:19 -08:00
Walter Bright
86a678da5e Merge pull request #5089 from WalterBright/save-return-scope
[scope] add 'return scope' to std.utf.byUTF and std.string.leftJustifier
2017-02-10 15:53:51 -08:00
Walter Bright
aef2ec6806 add const to std.utf.UTFException.toString() 2017-02-08 13:07:28 -08:00
Walter Bright
238e02de75 [scope] add to byUTF and leftJustifier 2017-02-04 02:23:57 -08:00
Walter Bright
98753ad9b1 get byUTF() to work with 'scope' 2017-01-26 00:56:57 -08:00
Jack Stouffer
3c1fe47846 Remove commented out code and redundant comment 2017-01-24 13:23:00 -05:00
Jack Stouffer
66c6c3a934 Make std.utf.toUTF32 DRY 2017-01-21 11:24:39 -05:00
byebye
45984042ea Fix condition and add to it explaining comment 2017-01-19 23:36:14 +01:00
byebye
7e85e21336 Change swap to assignment, fix decodeBack unit tests 2017-01-19 19:41:53 +01:00
byebye
944e7da50b Fix issue #16323 - implement utf.encodeBack function 2017-01-19 15:06:36 +01:00
Sebastian Wilzbach
18ecb6b72c Make more modules publicly runnable on dlang.org 2017-01-06 23:29:55 +01:00
Eduard Staniloiu
3d98191ce9 Fix issue 16970 - Fix deprecations and warnings when compiling Phobos 2016-12-27 15:57:20 +02:00
Andrei Alexandrescu
e35705001f Merge pull request #4796 from JackStouffer/toUTF16
Make std.uni.toUTF16 DRY by using byUTF internally
2016-10-01 01:36:52 -04:00
e-y-e
befa0bfb6e Updated Flag uses to Yes/No structs 2016-09-29 14:45:20 +01:00
Jack Stouffer
67d44e4cdc Remove package wide std.algorithm imports from Phobos 2016-09-22 08:36:14 +01:00
Jack Stouffer
3498fc1232 Make std.uni.toUTF16 DRY by using byUTF internally 2016-09-17 16:03:16 +01:00
Jack Stouffer
e096f29e18 Improved docs and added tests 2016-09-17 14:20:37 +01:00
Jack Stouffer
ed92b3d33f Range-ified 2016-09-17 14:20:37 +01:00
Jack Stouffer
3cc0a7cba4 Added string specific logic 2016-09-17 14:20:37 +01:00
Jack Stouffer
2f24a0aba4 use appender instead of array 2016-09-17 14:20:37 +01:00
Jack Stouffer
65c4648c27 Remove over applied pure attribute from std.utf 2016-09-17 14:20:37 +01:00
Jack Stouffer
0c550b75ce Make std.utf.toUTF8 DRY by using byChar internally 2016-09-17 14:18:43 +01:00
Andrei Alexandrescu
2955c8c431 Merge pull request #4642 from JackStouffer/utf2
Added fast paths in std.utf.byUTF
2016-09-16 20:07:57 -04:00
Walter Bright
4e921ad311 std.utf: add scope annotations 2016-09-06 22:48:01 -07:00
Walter Bright
b58c4fb421 add 'scope' to utf.UTFException.setSequence() 2016-08-29 01:23:29 -07:00
Jack Stouffer
6c5f8a4149 Added fast path for dchars in std.utf.byUTF 2016-07-28 16:07:29 -04:00
Jack Stouffer
014982c6da Added ASCII fast path in std.utf.byUTF 2016-07-28 16:07:29 -04:00
Walter Bright
e4f5ce7ea6 std.utf: fix unsafe .ptr usage 2016-07-27 18:10:33 -07:00
Jack Stouffer
4d09b4aee6 Added immutable to several variables in std.utf 2016-07-21 13:06:36 -04:00
Walter Bright
89b2f56d55 Merge pull request #4422 from JackStouffer/patch-11
Improve the documentation for std.utf.byUTF
2016-07-21 00:03:28 -07:00
Jack Stouffer
1c8c6940a7 Improve the documentation for std.utf.byUTF 2016-07-20 14:05:33 -04:00
Atila Neves
4f5571f6e8 Add @system and @safe to std.utf unit tests 2016-07-04 17:33:10 +02:00
Jack Stouffer
e9ca18d573 Fixed local imports in std.utf 2016-07-01 15:35:46 -04:00
Andrei Alexandrescu
af7cfa52c0 Merge pull request #4320 from JackStouffer/patch-7
Improve the std.utf.byCodeUnit docs
2016-06-19 05:33:55 -04:00
Jack Stouffer
2a7d2e31f7 Correct misleading return type info in std.utf.byCodeUnit 2016-06-16 15:16:23 -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
451a93e820 fix unsafe .ptr access in Phobos 2016-06-12 02:45:05 -07:00