Nick Treleaven
281f42d306
Fix missing unittests in docs ( #8603 )
...
* Fix missing staticArray unittest in docs
Found using https://github.com/dlang/dmd/pull/14527 .
* Fix missing FloatRep and DoubleRep unittests in docs
* 2 JSONValue op overloads
* std.random
* detabber
* remove
* std.digest.murmurhash
2022-10-17 05:43:13 +08:00
wolframw
82efd51dcc
Fix issue 23298 - std.string wrap wraps early
2022-08-20 11:19:34 +02:00
Julian Fondren
3bf975041f
indent multiline param description
2021-09-17 04:20:30 -05:00
Julian Fondren
ea5726f9f4
std.algorithm.sorting: fix typo and related texts
2021-09-17 04:09:34 -05:00
Nathan Sashihara
1bdcf1f512
isSomeChar!(Unqual!T) -> isSomeChar!T
...
Removing the redundant `Unqual` does not change the result.
2021-07-24 09:26:46 +00:00
dkorpel
66698dc5f5
Fix issue 18632 - enable use of fromStringz with char[n]
2021-07-12 01:33:15 +02:00
dkorpel
9ec24190b1
add explicit scope/return for pure functions
2021-07-11 13:34:25 +00:00
nordlow
086ad984dd
Annotate std/string.d to please dlang/dmd#12520
2021-05-17 19:37:00 +02:00
aG0aep6G
7ef8c307f0
fix test
...
Apparently, two empty string literals can have different pointers.
2021-02-22 12:06:18 +01:00
aG0aep6G
c55ce44705
fix issue 15136 - If we want toStringz to be fully correct, it needs to stop checking for '\0'
2021-02-20 17:30:08 +01:00
Iain Buclaw
79ad118345
Remove tests for complex and imaginary types
2021-01-28 03:05:46 +01:00
Nathan Sashihara
453faadf5b
Replace is(Unqual!T == Unqual!U) with is(immutable T == immutable U) for speed & memory usage
2020-08-03 15:07:32 +02:00
wolframw
c57990ceda
Fix Issue 20783 - std.string.lastIndexOf doesn't work correctly in CTFE
2020-04-29 02:51:03 +02:00
Geod24
04f3979317
Replace 'Issue XXX' with Bugzilla links
...
Make the links clickable, as was done in the DMD repository.
Also avoids any ambiguity w.r.t. where the issue is stored.
2020-04-13 16:28:09 +09:00
MoonlightSentinel
c961518ec6
Remove deprecated functions from std.string
2020-01-28 18:48:18 +01:00
Alexandru Militaru
bb62aaca3d
Replaced version (unittest) with version (StdUnittest) to avoid unnecessary overhead when compiling with -unittest
2020-01-19 14:05:17 +02:00
Bernhard Seckinger
cc36941901
Make assumeUTF nothrow.
2020-01-02 18:18:13 +01:00
Atila Neves
236c2d3f93
Add scope
preparing for in
to become const scope
2019-10-30 17:06:13 +01:00
Nicholas Wilson
d0281b7da5
Merge pull request #7034 from burner/std.string_assert_messages
...
assert messages for std.string
2019-05-30 22:11:13 +08:00
Robert Schadek
f3244d58c1
assert messages for std.string
...
starting to work on dlang/phobos/project/2
2019-05-24 14:46:41 +01:00
Sebastian Wilzbach
1386fa253f
Use selective top-level module imports in std.{stdio,string}
2019-05-23 10:32:49 +02:00
Rainer Schuetze
2e13c10025
add workaround for https://issues.dlang.org/show_bug.cgi?id=2396 to reduce compile time of unittests
2019-03-29 12:12:53 +01:00
Nicholas Wilson
10887d04f8
Merge pull request #6781 from CyberShadow/pull-20181123-213706
...
Fix Issue 19429 - indexOf("a", "b") should be nothrow/@nogc
2018-11-27 09:48:57 +08:00
Vladimir Panteleev
8889ef2f07
std.string: Optimize indexOf with start index a bit
...
Use of early returns improves readability and reduces the instruction
count in DMD's output.
2018-11-24 08:31:48 +00:00
Vladimir Panteleev
2f7854cc9a
std.string: Expose case-sensitive functions as separate overloads
...
Allow taking advantage of new nothrow/@nogc implementations from
nothrow/@nogc code.
Fixes issue 19429.
2018-11-23 22:44:06 +00:00
Vladimir Panteleev
f12e43e3b3
std.string: Optimize implementation for same-type case-sensitive search
...
Add a special case for case-sensitive search when the character size
of substrings matches. We do not need to decode in this case, so
perform a basic array search on the strings' representations.
2018-11-23 21:45:01 +00:00
Vladimir Panteleev
606465af0b
std.string: Refactor indexOf to a per-CaseSensitive template
...
Use the same code for case sensitive and insensitive search, but
refactor the case sensitivity parameter to a compile-time value under
the hood, so that each instantiation receives its own propagated
attributes.
2018-11-23 21:45:01 +00:00
The Dlang Bot
8cef7b563e
Merge pull request #6743 from n8sh/string-template-antibloat
...
Decrease template bloat for string functions
merged-on-behalf-of: Jonathan M Davis <jmdavis@users.noreply.github.com>
2018-11-19 04:57:44 +01:00
Nathan Sashihara
4cc47e6dc2
Fix Issue 19364 - Decrease template bloat for string functions
...
Use const(E)[] instead of E[] when it is valid and doesn't change the
return type.
2018-11-18 15:39:29 -05:00
Nicholas Wilson
df938a337f
Merge pull request #6769 from n8sh/issue-19403
...
Fix Issue 19403 - Make std.string.stripLeft on char array nogc nothrow
2018-11-18 08:10:40 +08:00
Nathan Sashihara
63a2198003
Fix Issue 19403 - Make std.string.stripLeft on char array nogc nothrow
2018-11-17 15:02:16 -05:00
Nathan Sashihara
f22d322d0f
Fix Issue 19405 - Speed up backwards UTF-8 decoding in stripRight & make nogc nothrow for strings
2018-11-16 03:14:23 -05:00
Nathan Sashihara
c380684bdb
Fix Issue 19404 - Optimize std.string.stripRight
2018-11-15 21:12:01 -05:00
Nathan Sashihara
2e6c538dc6
Fix issue 19308 - optimize stripLeft
...
Add ASCII fast path to stripLeft & avoid redundant decoding.
2018-10-17 11:58:18 -04:00
Iain Buclaw
fd5facfe04
posix.mak: Enforce whitespace before opening parenthesis for version conditions
2018-09-22 16:57:24 +02:00
Walter Bright
33cceac7ac
switch Digital Mars copyright to D Language Foundation
2018-09-05 13:49:46 -07:00
Jonathan M Davis
ad109a2ccf
Move some deprecations along.
2018-08-02 16:09:51 -06:00
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