Walter Bright
2954db64e0
string: add scope
2018-06-09 22:54:04 -07:00
Walter Bright
5c0946d322
add 'scope' to string.d
2018-06-08 12:09:55 -07:00
Sebastian Wilzbach
c324714fde
Remove a few cases of underscore escaping
2018-06-04 13:05:01 +02:00
The Dlang Bot
e1cba41bd6
Merge pull request #6438 from GilesBathgate/fromWStringz
...
Add a wide fromStringz function.
merged-on-behalf-of: unknown
2018-05-29 15:56:41 +02:00
Radosław Rusiniak
590236b63d
Remove repeated word in std.string documentation
2018-05-26 22:44:30 +02:00
Giles Bathgate
96022302dc
Remove inout on fromStringz template, remove old function
2018-05-02 17:38:18 +01:00
Giles Bathgate
20efd72da7
fix Issue 18813 add wchar/dchar fromStringz template function
...
This adds a wide string template functions to complement the existing fromStringz function.
2018-04-30 19:25:32 +01:00
Jack Stouffer
ba26a016e6
Added public examples to std.string
2018-04-11 11:17:05 -04:00
Sebastian Wilzbach
42894784dd
Markdownify Phobos
...
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Jonathan M Davis
1436fca1cc
Add website link to author name for Jonathan M Davis.
2018-03-10 16:31:23 -07:00
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