Jack Stouffer
663b5b9278
Revert addition of StdUnittest
2018-02-20 13:32:32 -05:00
Sebastian Wilzbach
d9830b739e
Fix DScanner warnings
2018-02-10 22:46:32 +01:00
Jack Stouffer
18cbb29b04
Replaced version(unittest) blocks with version(StdUnittest)
2018-02-01 19:56:59 -05:00
Aravinda VK
2346990c09
Fix issue 13632: Enhancement to std.string.strip
...
Added second argument similar to Python `str.strip`
Second argument accepts a string of characters to strip and
strips only those characters.
Examples:
"xyzhello".stripLeft("xyz") == "hello"
"helloxy ".stripRight("xy ") == "hello"
"xhellox".strip("x") == "hello"
Signed-off-by: Aravinda VK <mail@aravindavk.in>
2018-01-31 09:42:45 +05:30
Sebastian Wilzbach
f6dcb6d447
Merge pull request #5411 from jmdavis/string
...
Fix safety issues with splitLines, lineSplitter, and indexOf
2018-01-27 03:30:22 +01:00
Jonathan M Davis
8b051ff29f
Fix safety of lineSplitter for implicitly convertible types.
2018-01-26 16:07:41 -07:00
Jonathan M Davis
9352e29921
Fix safety of splitLines for implicitly convertible types.
2018-01-26 16:07:41 -07:00
Jonathan M Davis
b5e0df8a26
Fix it so that std.string.indexOf does not use isConvertibleToString.
2018-01-26 16:07:41 -07:00
Sebastian Wilzbach
41d158f4c7
Add substitute for lazy replacements
2018-01-25 09:30:33 +01:00
Sebastian Wilzbach
a972e266ed
Allow running all unittest with -transition=complex
2018-01-17 11:14:32 +01: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
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
The Dlang Bot
416e0c76cd
Merge pull request #5676 from RazvanN7/Unused_vars_part3
...
Get rid of unused variables part3
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-09-09 10:09:53 +02:00
RazvanN7
55120ef91a
Get rid of unused variables
2017-08-22 11:00:14 +03:00
MetaLang
215280b9f1
Workaround for DDOX bug in the official docs
...
A temporary workaround for the issue described in https://github.com/dlang/phobos/pull/5682
I have also filed an issue against DDOX: https://github.com/rejectedsoftware/ddox/issues/168
2017-08-15 13:54:27 -03:00
Martin Nowak
effe4fda00
Merge remote-tracking branch 'upstream/stable' into merge_stable
2017-07-10 04:15:21 +02:00
Jack Stouffer
73c36a85bf
Removed old debug printfs
2017-07-07 11:23:37 -04:00
Jack Stouffer
2bb668f4e9
Remove deprecated string methods from the book table
2017-07-06 15:29:11 -04:00
Sebastian Wilzbach
16b9188b4a
Fix deprecations
2017-07-05 18:28:51 +02:00
Sebastian Wilzbach
818deb3615
Fix DDoc macros
2017-06-30 01:39:24 +02: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