Commit graph

253 commits

Author SHA1 Message Date
Jonathan M Davis
155c32c415 Move some deprecations along. 2019-01-05 14:44:57 +01:00
Iain Buclaw
dd2edb247f Synchronize dmd-cxx with gdc-stable 2019-01-05 14:10:15 +01:00
Walter Bright
9493099242 std.utf - inure against integral promotion changes 2017-07-24 20:26:20 -07:00
Jack Stouffer
b2f88c3ea3 Removed old debug printfs 2017-07-08 23:05:49 -04: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
fc3ab2bcfd reimplement toUTF8/16 in terms of encode() 2017-05-20 16:26:36 -07:00
Vladimir Panteleev
86c43140fb
std.utf: Fix style (space around ..) 2017-03-11 02:53:33 +00:00
Vladimir Panteleev
05641deb9c
std.utf: Fix style (space after cast(x)) 2017-03-11 02:22:46 +00:00
Vladimir Panteleev
bc83bb2d82
std.utf: Fix missing import in documented unittest
Fixes CircleCI.
2017-03-11 02:15:07 +00:00
Jonathan M Davis
62e42df8f7 Update docs for byCodeUnit. 2017-03-08 12:54:31 -08:00
Jonathan M Davis
53e81a7500 Improve formatting consistency in byCodeUnit.
Also renames the member variable in ByCodeUnitImpl so that it doesn't
have the same name as the function parameter as well as making it more
clear that it's a string rather than a more general range type.
2017-03-08 12:54:31 -08:00
Jonathan M Davis
6e3d41cfe9 Fix issue 16642: byCodeUnit doesn't work properly with alias this.
If a template is going to allow implicit conversions, it really needs to
force the conversion in order to avoid subtle bugs. This fixes
byCodeUnit so that it forces the conversion to a string type for types
that convert implicitly. It also fixes it so that types which implicitly
convert to a string type but are also ranges of characters without the
conversion will not be converted by byCodeUnit.
2017-03-08 12:54:27 -08:00
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