Elias Batek
b150fde4da
Improve the situation with #9881 - Use unpredictableSeed
in randomUUID()
( #10671 )
2025-03-17 15:10:26 -07:00
Vladiwostok
231ae8b68a
Fix D-Scanner linting issues ( #9070 )
...
* Fix UndocumentedDeclarationCheck linting issue
* Fix IfConstraintsIndentCheck linting issue
* Address feedback
* Fix publictests CI
* Fix old (libdparse) D-Scanner linting warn
2024-10-27 01:21:56 -07:00
Dennis Korpel
80235ea056
Add @nogc nothrow
to randomUUID
2024-04-17 11:27:06 +02: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
Nathan Sashihara
a3c3ea74e3
Fix Issue 21201 - let std.uuid.parseUUID accept input ranges whose elements are char or wchar, not just dchar
...
All characters of interest to std.uuid.parseUUID are ASCII so there is
no reason it cannot work on a range of chars or wchars.
2020-08-27 16:47:53 +02:00
Geod24
e190083c3d
UUID: Replace 'in ref' overloads with 'const scope ref'
...
'in' and 'in ref' overloads will conflict in the future if dlang/dmd#11000 is accepted.
Even if not, 'in' currently means something different based on a switch,
however the intention of this code is obviously the full 'const scope'.
In the some places, 'scope' was omitted as it is meaningless on value types.
2020-08-15 13:18:42 +02: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
Nathan Sashihara
202a837b7d
Fix Issue 19138 - std.uuid.randomUUID should not depend on std.random.Random being Mt19937
2018-08-06 17:55:18 -04:00
The Dlang Bot
0e8722abbd
Merge pull request #6471 from schveiguy/putstrings
...
char[] and wchar[] should be output ranges
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-06-29 10:04:28 +02:00
Walter Bright
2846af3fd5
uuid: add scope
2018-06-09 00:37:15 -07:00
Walter Bright
d8f78b75cf
uuid.d: sink() should not leak its parameter
2018-06-08 02:20:18 -07:00
Sebastian Wilzbach
c324714fde
Remove a few cases of underscore escaping
2018-06-04 13:05:01 +02:00
Steven Schveighoffer
8769ea9e46
Fix issue 18790 - Add ability for char[] and wchar[] to be output ranges.
2018-04-23 09:17:49 -04:00
Sebastian Wilzbach
42894784dd
Markdownify Phobos
...
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Sebastian Wilzbach
b6b6b95d76
Add public example for UUID and enable DScanner check
2018-03-20 18:34:52 +01:00
Sebastian Wilzbach
7de3787876
Use static foreach in Phobos
2018-01-03 17:30:11 +01:00
Sebastian Wilzbach
2c281e38e4
Make std.uuid examples runnable
2017-07-09 16:22:48 +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
The Dlang Bot
b941605356
Merge pull request #5272 from JackStouffer/dscanner
...
Fix dscanner sugesstions in several files
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-03-15 05:57:06 +01:00
Jack Stouffer
c35bab6c93
Fix dscanner sugesstions in std/uuid.d
2017-03-13 14:20:55 -04:00
Jack Stouffer
5cc17d952f
Fix some issues in std.uuid doc
2017-03-13 02:24:23 -04: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
5521541032
Unify assert style to have no spaces between the first brace
...
Application of:
sed -E "s/assert +\(/assert(/" -i **/*.d
2017-02-21 15:27:15 +01:00
Sebastian Wilzbach
87dec58a41
DStyle: Constraints on declarations should have the same indentation level
2017-02-17 07:36:23 +01:00
Jack Stouffer
67d44e4cdc
Remove package wide std.algorithm imports from Phobos
2016-09-22 08:36:14 +01:00
Atila Neves
75cb0b2dc6
Add @system and @safe to std.uuid unit tests
2016-07-01 18:56:53 +02:00
Walter Bright
bd6b6db1d7
make safe inference of std.uuid toString() work
2016-06-25 03:30:44 -07: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
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
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
484f7bfbe0
enforce: whitespace after catch
2016-05-14 15:28:43 +03:00
Jack Stouffer
da25ed2596
Fixed long lines in std/uuid.d
2016-05-10 20:51:39 -04:00
Dmitry Olshansky
c1027f1970
Merge pull request #4246 from wilzbach/sed_spaces_part_2
...
style fix: add space after 'for' operator
2016-04-27 16:17:18 +04:00
Sebastian Wilzbach
d1714c9afb
minor style fixes
2016-04-27 04:18:22 +03:00
Sebastian Wilzbach
5a8988c149
style fix: add space after for operator
2016-04-27 02:04:02 +03:00
Sebastian Wilzbach
3d67cd228c
style fix: space between operators
2016-04-26 22:26:20 +03:00
Sebastian Wilzbach
d81030ab8a
convert docstring examples to unittests
2016-03-03 15:24:26 +02:00
Benjamin L. Merritt
5f08c058ab
Changed "Examples:" in Ddoc to "Example:"
2015-12-17 18:32:41 -08:00
Dragos Carp
d698887729
Remove obsolete TypeTuple references
...
Replace following names:
std.typetuple -> std.meta
TypeTuple -> AliasSeq
ParameterTypeTuple -> Parameters
FieldTypeTuple -> Fields
std.traits requires more work than search/replace and is left unchanged.
2015-10-13 20:37:44 +02:00
Ilya Yaroshenko
4391ad74c4
optimize UUID to/from string conversion
...
remove trailing whitespaces
use 'void' initialisation
Fix comments
Update toString API
toString API update
update string API && add new unittests
fix typo
2015-10-03 15:55:38 +03:00
Ilya Yaroshenko
b425797926
fix UUID hash function
...
update
remove spaces
rework docs
change union order
2015-08-26 09:30:11 +03:00
monarch dodra
d12da5ddbf
swap front/popFront in randomUUID
2015-03-04 12:44:53 +01:00
monarch_dodra
219e3ceeae
Fix safety issue in randomUUID
2015-03-04 12:44:53 +01:00
Ulrich Küttler
05c4b71b87
Cleanup uuid documentation
2015-02-16 15:12:33 +01:00
Andrei Alexandrescu
c0aad5b580
Fix debug build
2015-02-01 12:51:33 -08:00
Robert burner Schadek
6cafb2353e
uuid documentation update
...
* moved some examples from comments to unittests
* one ctor was disabled, reimplemented it
2015-01-30 18:47:40 +01:00
anonymous
9309f2b142
[DDoc] add HTML class "quickindex" to manually maintained jump link tables
2015-01-26 11:19:05 +01:00
Andrei Alexandrescu
cb044b02aa
Verbatim-related changes in phobos
2015-01-12 00:05:36 -08:00