Commit graph

81 commits

Author SHA1 Message Date
berni44
6f2a0934a7 Adapt imports of std.format to new structure of std.format. 2021-03-19 13:22:00 +01:00
berni44
a2af7d674d std.uri: Add unittests for 100% code coverage. (#7220)
std.uri: Add unittests for 100% code coverage.
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2019-10-17 09:22:45 +02:00
Hiroki Noda
4c888eb5a4 Fix Issue 19806 - ietf link outdated 2019-04-16 14:26:40 +09:00
Walter Bright
33cceac7ac switch Digital Mars copyright to D Language Foundation 2018-09-05 13:49:46 -07:00
wazar
39bb4d7ae8 fix AA test: order of AA elements isn't determined 2018-07-05 02:02:27 +03:00
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
Sebastian Wilzbach
d9e8f67cef Add public examples to std.uri + enable DScanner check 2018-03-20 23:53:07 +01:00
Jack Stouffer
9d44d7c13f Fix Issue 18182 - std.uri should be usable in @safe 2018-03-09 13:54:46 -05:00
Sebastian Wilzbach
7de3787876 Use static foreach in Phobos 2018-01-03 17:30:11 +01:00
Sebastian Wilzbach
70f06b2357 Remove old, redundant private import access specifier
Very very old versions of D (well into 0.x) had imports public by default,
like C header files. This modernizes the codebase and removes the
redundant `private` access specifier.
This has been done with:

sed "s/private import/import/g" -i **/*.d
2017-07-11 12:28:39 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
Eduard Staniloiu
2ffe350c96 Replace deprecated functions from std_conv and std_uri 2017-05-21 18:52:21 +03:00
Jack Stouffer
2196247cb2 Fix dscanner sugesstions in std/uri.d 2017-03-13 14:22:55 -04: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
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
Andrei Alexandrescu
7f45d3c814 Merge pull request #5144 from wilzbach/if_constraint_same_indent
DStyle: Constraints on declarations should have the same indentation level
2017-02-17 11:55:16 -05:00
Sebastian Wilzbach
31c4226042 Fix deprecation: std.utf.toUTF8 -> encode 2017-02-17 11:02:46 +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
ada176f9a6 removed most global imports from std.uri 2017-01-22 11:13:20 -05:00
Jack Stouffer
385bd4d682 Apply private and other function attributes to functions in std.uri 2017-01-22 11:13:18 -05:00
Jack Stouffer
e81043f372 remove commented out code from std.uri 2017-01-22 08:50:33 -05:00
Atila Neves
b275262ae5 Add @safe and @system to std.uri unit tests 2016-07-01 10:22:22 +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
Sebastian Wilzbach
1d34a121e9 apply all-man braces in Phobos
// find common cases
sed -E "s/^(\s*)((if|static if|for|foreach|foreach_reverse|while|unittest|switch|else|version).*)\s*\{$/\1\2\n\1{/" -i **/*.d
// catch else-if
sed -E "s/^(\s*)} (else static if| if|else if|else)(.*)\s*\{$/\1}\n\1\2\3\n\1{/" -i **/*.d
// remove created trailing whitespace
sed -i 's/[ \t]*$//' **/*.d
2016-05-31 13:07:53 +02:00
Sebastian Wilzbach
18b8abf60a remove the deprecated wiki macros 2016-05-27 05:52:23 +02:00
Giles Bathgate
9185dddd99 Implement post overload in std.net.curl
This overload provides the ability to send properly escaped
www-form-urlencoded data using an associative array. The data is built into
name value pairs using an Appender!string that reserves 128 bytes per name
value pair. An example was added to the documentation and the existing one
changed as this is the more common use case.

Several corrections to coding style were suggested and corrected.
2016-05-06 09:46:25 +01:00
Shriramana Sharma
5978ca7831 migrate other Phobos modules to use std.exception.basicExceptionCtors 2016-01-17 10:39:37 +05:30
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
Basile Burg
d697e0fd4f added unittests for issue 14924 2015-08-16 03:00:45 +02:00
Basile Burg
169101f7bf fix issue 14924 2015-08-16 02:55:34 +02:00
Walter Bright
f0a6c197ce std.uri - replace static construction with compile time construction 2015-06-30 13:36:03 -07:00
Walter Bright
d9a9826e55 Revert "Introducing std.meta package" 2015-05-06 14:36:45 -07:00
Dicebot
82f54a38d3 TypeTuple -> MetaList inside Phobos 2015-05-05 22:22:11 +03:00
Dicebot
73f773838d import std.typetuple -> import std.meta 2015-05-05 22:22:10 +03:00
Robert burner Schadek
a037fbedc3 uri documentation update
* moved some examples to unittests
* made a only privately used enum private
* URIException made up to spec

grammar fix
2015-01-29 23:43:20 +01:00
Ilya Yaroshenko
c8d9afedea clean scope imports
imports of `std.range, std.algorithm, std.array, std.string,
std.format, std.uni` are affected.
2014-11-21 00:08:35 +03:00
Martin Nowak
c855945f46 Merge pull request #2614 from Geod24/fix-license-doc
[DDOC] Usage of WEB macro for License everywhere
2014-10-17 00:16:49 +02:00
Geod24
0fb95b8c27 Usage of WEB macro for License everywhere 2014-10-15 11:30:42 +02:00
Joakim
093d636de4 Deprecate std.c.* and move all remaining declarations to core.stdc.* 2014-10-14 09:26:21 -05:00
Yazan S. Dabain
5bed1d9b63 Allow mutable char/wchar/dchar[] to be used in std.uri 2014-03-13 02:42:14 -04:00
Daniel Murphy
1754eed7f6 Fix cases where goto skips initialization of variables 2013-11-20 00:20:33 +11:00
DannyArends
d7fa8ad95b Fixing exception casing to line style, added better exception message for missing hexadecimals 2013-11-01 11:14:37 +01:00
DannyArends
74d59dd7db Fixing Issue 11338 - Additional
- Now all thrown URIException have human readable text
- throw new OutOfMemoryError("Alloca Failure"); // Make code look more consistant
2013-10-24 15:18:15 +02:00
DannyArends
fa0627b218 Fix Issue 11338
- Now call the onOutOfMemoryError() function when alloca returns NULL
- Fixed the URIexception name to URIException
- Added a string constructor for the URIException class
- Added more informative messages to some of the errors
2013-10-24 14:30:56 +02:00
DannyArends
1fd19c2366 Fix of Issue 11338
- URIerror renamed to URIexception
- URIexception class inherits from Exception
2013-10-24 11:50:13 +02:00
Andrej Mitrovic
1abf0e0d5b Merge pull request #1359 from qznc/more-coverage
Unittesting uriLength and emailLength
2013-07-04 19:49:01 -07:00
k-hara
03a32d6fa4 Fix issue 313 & 314 2013-06-25 08:38:30 +09:00
Andreas Zwinkau
62d7f30cb1 Style fixes in std/uri
- indentation within blocks
- braces on their own lines
2013-06-21 12:44:16 +02:00
Andreas Zwinkau
29cfa67a2b Remove debug printfs from std/uri 2013-06-21 12:40:59 +02:00