Commit graph

63 commits

Author SHA1 Message Date
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Jack Stouffer
65fcbbf16f Improve documented example 2018-03-09 08:49:34 -05:00
Jack Stouffer
e826c82e32 Fix Issue 18168 - std.base64.encode for output ranges should be usable in @safe 2018-03-09 08:41:48 -05:00
Sebastian Wilzbach
b9eaa3b1bd Fix Issue 18278 - writef documentation 404 error 2018-01-26 10:17:47 +01:00
Sebastian Wilzbach
b0575c8a66 @safeify more unittests II 2018-01-03 06:26:05 +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
7a024ece1d Merge pull request #5506 from lionello/feature/base64urlnopadding
Added Base64URLNoPadding (backport from vibe.d)
merged-on-behalf-of: unknown
2017-07-21 21:27:26 +02:00
The Dlang Bot
568210f678 Merge pull request #5581 from wilzbach/has_public_example
Make sure that that every function in Phobos has an example: std.{algorithm,array,ascii,base64} 
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-07-10 04:16:59 +02:00
Sebastian Wilzbach
54c47a7193 has_public_example: std.base64 2017-07-10 02:58:31 +02:00
Sebastian Wilzbach
283cab2f20 Make std.base64 examples runnable 2017-07-09 16:22:53 +02:00
Lionello Lunesu
a47530b97b Added Base64URLNoPadding (backport from vibe.d) 2017-06-26 00:13:07 +08:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
Sebastian Wilzbach
090d5164e8 Fix links from $(LREF $(D ...)) -> $(LREF ...)
sed -E 's/[$]\(D [$]\(LREF (.*)\)\)/$(LREF \1)/' -i **/*.d
2017-03-05 08:11:29 +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
Jack Stouffer
67d44e4cdc Remove package wide std.algorithm imports from Phobos 2016-09-22 08:36:14 +01:00
Johannes Loher
1bbe7fe56d Fixed in contract for Base64.decode for arrays 2016-08-08 12:11:30 +02:00
Liam McSherry
5c5f6aba18 Correct a typo in the documentation for std/base64.d. 2016-07-22 17:42:03 +01:00
Atila Neves
bfb8803724 Add @system and @safe to std.base64 unit tests 2016-07-01 19:09:44 +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
Jack Stouffer
798070d37d Fixed long lines in std/base64.d 2016-05-10 20:51:39 -04:00
H. S. Teoh
fffb9712d6 Use auto ref to retain compatibility with previous workarounds. 2015-06-30 08:49:54 -07:00
H. S. Teoh
9c8c768490 Base64 is not limited to MIME. 2015-06-30 08:36:21 -07:00
H. S. Teoh
db4d90b6d9 Coding style fixes. 2015-06-30 08:36:21 -07:00
H. S. Teoh
77c15e19b2 Fix latent ref bugs in encode() and decode().
Output range must be passed via ref otherwise by-value output ranges
will not work correctly.

Add code examples.
2015-06-30 08:36:21 -07:00
H. S. Teoh
d1b4394f4a Add code examples. 2015-06-30 08:36:21 -07:00
H. S. Teoh
d23eb76dbd Improve std.base64 docs.
Improve wording, add standard Params: and Returns: sections. Clarify
unclear semantics.

Better module description.
2015-06-30 08:36:21 -07:00
Ilya Yaroshenko
2c744b54e1 std.range: constraints => primitives
See discussion and voting in #2661
2014-11-23 20:05:20 +03:00
Ilya Yaroshenko
6b1c486063 base64: update to range.constraints 2014-11-15 03:11:14 +03:00
H. S. Teoh
a40a95527e Don't use built-in .sort in std.base64 unittests 2014-09-28 07:52:01 -07:00
Joakim
60cfc11a11 Make all tests that create a temporary file in the local directory get the path from one central function, so they can be made to use an absolute path 2014-08-04 23:33:25 -05:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
monarch dodra
60187c9d83 Merge pull request #1536 from lionello/bug10893
Fix issue 10893: added missing or renamed DDoc parameters
2013-09-08 08:37:19 -07:00
monarch dodra
aa3b13ce49 Merge pull request #1328 from 9rnsr/fix10230
Issue 10230 - Duplicated buttons for runnable examples
2013-08-31 02:50:17 -07:00
Lionello Lunesu
b4074054ba Fix issue 10893: added missing or renamed DDoc parameters (found by fix to 10236) 2013-08-31 15:36:29 +08:00
Nick Treleaven
6061d747e4 Don't assume wrapped range has a const empty() 2013-08-19 15:23:55 +01:00
k-hara
87bd3315db fix Issue 10230 - Duplicated buttons for runnable examples 2013-07-16 00:45:48 +09:00
monarch dodra
3214c6575e deactivate unsupported test
The test was checking decode works with input range. The truth is that this relied on the input range actually providing length. map *used* to erroneously provide length for narrow strings, but this not the case anymore.

Issue has already been reported as 9543:
http://d.puremagic.com/issues/show_bug.cgi?id=9543
2013-07-05 19:57:35 +02:00
k-hara
92bef24f2f fix Issue 10254 - Purity correctness is broken with constructor 2013-06-20 10:54:30 +09:00
Vladimir Panteleev
ba922fd94b std.base64: Introduce Base64Exception 2013-02-11 17:25:44 +02:00
Vladimir Panteleev
1a5f7f33d8 std.base64: Fix AssertError on certain bad input 2013-02-11 17:13:53 +02:00
nazriel
ec591d4d50 Runnable examples - std.base64 2012-07-15 21:26:32 +00:00
Vladimir Panteleev
9214e9e764 std.base64: Fix invariants when decoding truncated strings
We should never throw Errors on malformed data - especially since the
module does not provide validation facilities. Base64 is widely used on
the web, so encoded strings need to be treated like user input.

The added unittests are purposefully vague. This is to allow changing
the implementation within the spec (whether to throw, ignore or try
parsing trailing bytes).
2012-02-19 19:14:38 +02:00
David Nadlinger
130b1ac71c Whitespace cleanup. 2011-12-04 09:56:14 +01:00
David Nadlinger
e312f9898b Strict @property syntax compliance.
This enables the test suite to build with the -property switch enabled.

std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
SHOO
cdc546892d Retry Issue 5340
http://d.puremagic.com/issues/show_bug.cgi?id=5340

And added some unittest.

The changes of std.base64 are caused by char[] NOT being OutputRange.
is(R2 == char[]) && isOutputRange!(R2, char) always returns false.
2010-12-10 15:01:25 +00:00
Masahiro Nakagawa
3af7a383d1 Fix typo and error handling changed from assert to throw Exception 2010-11-02 09:58:13 +00:00
Masahiro Nakagawa
f15ab73731 Replace base64 module 2010-11-01 19:58:34 +00:00
Walter Bright
b8ce58ccd1 detab sources 2010-08-23 02:14:45 +00:00