Jack Stouffer
2bb668f4e9
Remove deprecated string methods from the book table
2017-07-06 15:29:11 -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
Jack Stouffer
451138141f
Deprecate obsolete pattern matching functions in std.string
2017-05-12 09:55:39 -04:00
Jack Stouffer
73ef3cb35f
Fixed some typos in std.string docs
2017-05-09 11:51:05 -04:00
Jack Stouffer
e6936d12ae
Mention the extra checks in the std.string.assumeUTF docs
2017-03-29 10:19:41 -04:00
Jack Stouffer
9d2ee3d9c0
Add more links to std.range definitions
2017-03-01 15:09:46 -05:00
Jack Stouffer
77b37fd8f1
Merge pull request #5181 from JackStouffer/capitalize
...
Small optimization for std.string.capitalize
2017-02-22 16:07:30 -05:00
Jack Stouffer
738a18a27a
Small optimization for std.string.capitalize
2017-02-22 15:28:27 -05: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
Sebastian Wilzbach
8d5b051235
Provide reference to other common names
2017-02-16 02:57:51 +01:00
Jack Stouffer
360a42ec05
Add checks for infinite ranges in many range function signitures
2017-02-14 14:19:04 -05:00
Walter Bright
238e02de75
[scope] add to byUTF and leftJustifier
2017-02-04 02:23:57 -08:00
Sebastian Wilzbach
b95b67a687
Merge pull request #4986 from jmdavis/string_trivial
...
Make std.string.StringException use basicExceptionCtors.
2016-12-24 11:00:53 +01:00
Jonathan M Davis
bd6204f2c0
Make std.string.StringException use basicExceptionCtors.
...
This is a trivial change to take advantage of
std.exception.basicExceptionCtors and avoid having StringException
explicitly declare the normal exception constructors. It also has the
advantage of adding the second constructor that was missing from
StringException.
2016-12-22 04:57:58 -08:00
Sebastian Wilzbach
cc7f125ed1
Add missing imports to public unittests
2016-12-15 23:23:35 +01:00
e-y-e
befa0bfb6e
Updated Flag uses to Yes/No structs
2016-09-29 14:45:20 +01:00
Walter Bright
ad99bca2f5
remove unsafe use of .ptr in std.string
2016-07-24 12:58:55 -07:00
Sebastian Wilzbach
f14e7ccd85
enable travis check for selected imports
2016-07-10 03:08:15 +02:00
Atila Neves
307f95381b
Replace @trusted with @system in std.string unit tests
2016-07-09 11:07:51 +02:00
Jack Stouffer
049dcc32c8
Added const and immutable to unmodified variables in std.string
2016-07-08 12:14:34 -04:00
anonymous
d9a2d28514
fix issue 16238 - std.string.lastIndexOf fails compilation with -de
2016-07-05 15:49:35 +02:00
Basile Burg
268b77e25f
std.string, annotate unittests + coverage
2016-07-03 20:24:36 +02: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
Andrei Alexandrescu
9753c3159b
Merge pull request #4411 from wilzbach/kill_web_http
...
Fix broken WEB links
2016-06-15 17:47:43 -04:00
anonymous
d34ceb0a73
Ddoc: remove obsolete custom macros from std/string.d
2016-06-08 00:22:03 +02:00
anonymous
4109de2ff2
Ddoc: replace custom macros in std/string.d with REF_SHORT (sed)
...
SHORTXREF -> REF_SHORT:
arg='\s*([^(),]*)'
from='\$\(SHORTXREF\s'$arg','$arg'\)'
to='$(REF_SHORT \2, std,\1)'
sed -i -r "s/$from/$to/g" std/string.d
SHORTXREF_PACK -> REF_SHORT:
arg='\s*([^(),]*)'
from='\$\(SHORTXREF_PACK\s'$arg','$arg','$arg'\)'
to='$(REF_SHORT \3, std,\1,\2)'
sed -i -r "s/$from/$to/g" std/string.d
2016-06-08 00:22:03 +02:00
Sebastian Wilzbach
49531e3c73
fix broken web links
...
sed 's/(WEB http:\/\//(WEB /' -i **/*.d
2016-06-07 18:54:17 +02:00
Sebastian Wilzbach
823203fc4f
fix slipped through style violations
2016-06-05 01:30:55 +02:00
Joakim
a839be6dcc
Fix five modules where imports were made more local and selective.
2016-06-04 00:09:48 +05:30
Joakim
ea6e96ece6
std.string and std.traits: use locally-scoped selective imports and document symbols imported at module scope, checked with ddmd
2016-06-03 16:36:26 +05:30
Walter Bright
c61c89618c
Merge pull request #4322 from JackStouffer/isNumeric
...
Range-ified std.string.isNumeric
2016-06-01 12:31:14 -07:00
Sebastian Wilzbach
ca098c57d2
manual allman brace fixup
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
641d6ff8d7
clean up remaining XREFs (manual)
...
Found by: grep -r '$(XREF'
std.experimental.allocator has a custom XREF2. Leaving that as is for now.
2016-05-27 21:40: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
Sebastian Wilzbach
18b8abf60a
remove the deprecated wiki macros
2016-05-27 05:52:23 +02:00
Jack Stouffer
2c047f1dd7
Range-ified std.string.isNumeric
2016-05-25 10:32:58 -04:00
Vladimir Panteleev
38a6370788
Merge pull request #4303 from wilzbach/mref_phobos
...
use mref macro instead of link2
2016-05-24 03:12:08 +03:00
Sebastian Wilzbach
89a2dd5f11
use mref macro instead of link2
2016-05-16 03:30:08 +03:00
Jack Stouffer
26d70a1939
Add example to std.string.toStringz
2016-05-11 14:55:10 -04:00
Jack Stouffer
547a8e9e80
modernize isNumeric
2016-04-28 11:15:51 -04:00
Sebastian Wilzbach
d1714c9afb
minor style fixes
2016-04-27 04:18:22 +03:00
Sebastian Wilzbach
3d67cd228c
style fix: space between operators
2016-04-26 22:26:20 +03:00