Commit graph

71 commits

Author SHA1 Message Date
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
Jacob Carlborg
014f4ee88d Merge remote branch 'upstream/master' into isemail
Conflicts:
	std/net/isemail.d
2011-04-24 12:51:53 +02:00
jmdavis
fb0ae2b705 Fixed build error on 64-bit Linux. 2011-04-19 02:13:09 -07:00
Jacob Carlborg
f88b4e5ebc Changed the order of the CheckDns members. 2011-04-11 18:05:43 +02:00
Jacob Carlborg
d4b499d654 Reformatted the code to fit within 120 columns. 2011-04-10 15:13:15 +02:00
Jacob Carlborg
a4a4848f9f Updated the docs to reflect the new CheckDns type. 2011-04-04 21:50:29 +02:00
Jacob Carlborg
e13643d81f Removed a list item in the docs. 2011-04-04 21:48:47 +02:00
Jacob Carlborg
786486e51e Added a new function, statusCodeDescription, for getting a descriptive string of a status code. 2011-04-04 21:45:32 +02:00
Jacob Carlborg
4f0e3d5c20 Removed the firstChar function. Added a note about that the DNS check is not implemented. 2011-04-04 21:39:05 +02:00
Jacob Carlborg
cbf2853113 A couple of fixes:
* Formatting of the copyright
* Changed the checkDNS bool to an enum
* Changed the isEmail static assert to a template constraint
* Changed to the correct naming convention for all the enum members
* Make use of "enforce" where appropriate
2011-04-04 21:11:27 +02:00
Jacob Carlborg
62bba9e3dd Removed trailing whitespaces. 2011-04-02 22:35:41 +02:00
Jacob Carlborg
594f1bf556 Converted tabs to spaces. 2011-04-02 22:29:23 +02:00
Jacob Carlborg
2e3db5a05b Changed the names of the EmailStatusCode's members to being with a lowercase character. 2011-04-02 22:25:37 +02:00
Jacob Carlborg
aa490ea6a0 Some more fixes:
* Removed pointless aliases
* Change the const members in EmailStatus to properties
* Clarified the version in the module doc
* Made the EmailStatus' constructor private
2011-04-02 22:03:32 +02:00
Jacob Carlborg
61c7cb6d6a Updated the module doc banner. 2011-03-29 23:00:14 +02:00
Jacob Carlborg
a88b8b0a69 Renamed EmailStatusCode.Off and On to None and Any. Updated documentation. 2011-03-24 22:21:27 +01:00