Commit graph

86 commits

Author SHA1 Message Date
Sebastian Wilzbach
5c31dd26ed Issue 15750 - remove substr from std.net.isemail 2017-07-09 17:59:59 +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
Andrei Alexandrescu
30724e67d9 Merge pull request #5166 from wilzbach/dscanner-unittest-safe-or-system
Dscanner: let unittest be @safe or @system
2017-02-22 14:44:08 -05:00
Sebastian Wilzbach
a36cec8686 DScanner: automatially set all unattributed unittests to @safe or @system 2017-02-22 05:42:04 +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
Jack Stouffer
3e205b4e62 Make std.net.isemail.isEmail @safe 2017-02-21 14:00:25 -05:00
Jack Stouffer
0cf8397a75 Improve docs for std.net.isemail 2017-02-21 14:00:25 -05:00
Jack Stouffer
a91b610ce1 Fix issue 17217 - std.net.isemail.isEmail doesn't work with non char arrays 2017-02-21 09:55:00 -05:00
Jack Stouffer
37b327aebe Modernized regex code in std.net.isemail 2017-02-21 00:37:04 -05:00
Sebastian Wilzbach
87dec58a41 DStyle: Constraints on declarations should have the same indentation level 2017-02-17 07:36:23 +01:00
Jack Stouffer
db5480c232 Added immutable to never modified variables in std.net.email 2017-02-14 10:29:32 -05:00
Jack Stouffer
9785c7845e Add attributes to functions in std.net.isemail 2017-02-14 10:29:31 -05:00
Sebastian Wilzbach
18ecb6b72c Make more modules publicly runnable on dlang.org 2017-01-06 23:29:55 +01:00
e-y-e
befa0bfb6e Updated Flag uses to Yes/No structs 2016-09-29 14:45:20 +01:00
e-y-e
004bc507df Change yes/no enum CheckDns to a Flag 2016-09-23 10:27:49 +01:00
Jack Stouffer
c19f64a622 Removed package wide std.algorithm imports from std.net.isemail 2016-07-18 09:53:18 -04:00
Jack Stouffer
bd948f9995 Fixed local imports in std.net.isemail 2016-06-30 18:11:40 -04:00
Jacob Carlborg
9fd3646ae6 Fix issue 16036 - isEmail returns invalid for any email with EmailStatusCode.none 2016-05-18 16:21:58 +02:00
Jack Stouffer
909582aa3f Fixed long lines in std/net/isemail.d 2016-05-10 20:51:39 -04:00
Sebastian Wilzbach
66e0dc39c5 convert docstring examples to unittests 2016-03-09 21:22:15 +02:00
Benjamin L. Merritt
5f08c058ab Changed "Examples:" in Ddoc to "Example:" 2015-12-17 18:32:41 -08:00
Vladimir Panteleev
86cf380007 HTML fixes 2015-10-24 06:19:23 +00:00
Clement
bc13f1941c constify isemail props 2015-01-09 17:04:14 +01:00
Ilya Yaroshenko
2c744b54e1 std.range: constraints => primitives
See discussion and voting in #2661
2014-11-23 20:05:20 +03: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
Ilya Yaroshenko
7d421c7e77 Use scope imports in std.net.isemail
remove commented code
2014-11-15 02:16:42 +03:00
Daniel Murphy
4d0892baba Remove uses of the comma operator 2014-02-18 00:48:40 +11:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
Daniel Murphy
a656f26e9e Remove use of automatic adjacent string literal concatenation from phobos 2014-01-20 03:42:21 +11:00
Alex Rønne Petersen
931442d539 Merge pull request #1369 from AndrejMitrovic/IsemailFix
Deglobalize default threshold value, and fix initialization of threshold variable
2013-06-30 08:20:21 -07:00
k-hara
03a32d6fa4 Fix issue 313 & 314 2013-06-25 08:38:30 +09:00
Andrej Mitrovic
8e4ef6aa8d Deglobalize default threshold value, and fix initialization of threshold variable. 2013-06-24 22:25:42 +02:00
Jacob Carlborg
c08f47e52c Use escape sequence for DELETE character.
This is just to make it a bit clearer what's going on.
2013-03-23 17:55:05 +01:00
Jacob Carlborg
f6e27e6f79 Enable a bunch of tests for std.net.isemail.
These tests were previously commented out because of a bug
the regular expression module. Now when we have a new regular
expression module we can enable these tests.

This also fixed a bug in the internally used "substr" function.
2013-03-22 15:44:58 +01:00
alexrp
b202180295 Remove all uses of sizediff_t in favor of ptrdiff_t. 2012-10-15 04:24:09 +02:00
jmdavis
27469366a7 Fix modules which incorrectly use std.string's public imports.
Now, they should be correctly importing for the functions publicly
imported by std.string so that if those public imports are ever removed,
they won't break.
2012-09-30 03:29:37 -07:00
SHOO
ede978cb39 Fix for issue 8558 2012-08-18 20:48:24 +09:00
k-hara
844b1e16ad final @property 2012-03-20 01:55:31 +09: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
Christian Kamm
de9eaaa3c8 Fix imports in isemail.d.
ElementType is defined in std.range.
2011-10-10 19:21:24 +02:00
Andrei Alexandrescu
169817e9e2 Merge pull request #254 from dawgfoto/master
small bug in isemail
2011-09-13 21:05:11 -07:00
dawg
b51f6ce6fd small bug in isemail 2011-09-13 07:54:21 +02:00
dawg
8783e87185 fix fallout from fixing Bug6652 2011-09-13 07:53:24 +02:00
jmdavis
15fb65f1bb Reverted toAsciiLower and toAsciiUpper to toLower and toUpper. 2011-06-22 19:22:27 -07:00
jmdavis
2d310e5e20 Changed the names of some of the std.ascii functions.
isWhite, isLower, isUpper, toLower, and toUpper now have Ascii in their
name, which matches what std.unit does with its versions of those
functions. Hopefully, it should also reduce bugs due to using the wrong
function between the ASCII and unicode versions by making the difference
more obvious.
2011-06-19 18:41:00 -07: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
654f35a677 Replaced calls to std.string and std.ctype's tolower with their toLower counterparts. 2011-06-12 16:59:52 -07:00
Jacob Carlborg
258787c1b8 Cut down to the 120 column limit. Converted tabs to spaces. 2011-04-24 13:00:34 +02:00