Commit graph

70 commits

Author SHA1 Message Date
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
Andreas Zwinkau
fde07f22f2 Unittesting uriLength and emailLength
Previously untested. Pushes code coverage from 57% to 79%.
2013-06-21 12:25:45 +02:00
jmdavis
dd3a0c20a2 Created std.ascii to replace std.ctype.
All of the new, properly camelcased functions in std.ctype have been
moved to std.ascii, and std.ctype has been scheduled for deprecation.
2011-06-14 04:06:54 -07:00
jmdavis
11cdd6ce17 Replaced calls to std.ctype.isxdigit with isHexDigit. 2011-06-12 16:59:51 -07:00
jmdavis
3d3c342a69 Replaced calls to std.ctype.isalnum and std.ctype.isalpha. 2011-06-12 16:59:50 -07:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
Don Clugston
84477a5d3e Move Boost copyright declaration from ddoc to normal comment. Fixes ugly ddoc output. 2010-11-24 19:34:47 +00:00
Andrei Alexandrescu
3f2b8c12ea 64-bit compatibility work 2010-08-22 20:55:22 +00:00
Andrei Alexandrescu
432e3fdfc8 Replaced std.contracts with std.exception throughout 2010-07-04 22:09:03 +00:00
Walter Bright
53a3eec534 invariant => immutable 2010-05-05 22:19:49 +00:00
Sean Kelly
9be950356b Converted "static this" to "shared static this" where appropriate. 2010-03-09 03:54:06 +00:00
Sean Kelly
747f3cf1e4 Changed Phobos to use the Boost license. Currently, all public domain modules and all licensed modules by Walter, Andrei, Bartosz, and Don have been changed to use this license (excepting std.c, for the moment). Ideally, all Phobos modules will eventually be distributed under this license, which means obtaining permission from a few more authors, deleting, or rewriting some modules.
Removed std.openrj.
2009-09-16 18:19:51 +00:00