Commit graph

42 commits

Author SHA1 Message Date
dawg
b51f6ce6fd small bug in isemail 2011-09-13 07:54:21 +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
Jacob Carlborg
d427b6c2ab Changed doc comments of private functions to regular comments. 2011-03-24 20:54:54 +01:00
Jacob Carlborg
912d621a9f Cleaned up the docs. 2011-03-22 22:39:03 +01:00
Jacob Carlborg
d2e13ef699 Fixed a warning. 2011-03-22 22:37:05 +01:00
Jacob Carlborg
04128849d9 Added an implementation to the "status" method. 2011-03-22 22:25:43 +01:00
Jacob Carlborg
ecfe606ffa Replaced the unnecessary "pattern" variable with a string literal. 2011-03-17 21:31:59 +01:00
Jacob Carlborg
c2d45de023 Changed the isEmail function to accept all string types. 2011-03-16 22:20:32 +01:00
Jacob Carlborg
2251d955a0 Reordered the declarations in the isemail module. 2011-03-16 20:45:56 +01:00
Jacob Carlborg
90a4a8b2fb Modified the module documentation. 2011-03-15 21:41:36 +01:00
Jacob Carlborg
fbd54d10cd Added documentation for EmailStatusCode. 2011-03-15 21:26:51 +01:00
Jacob Carlborg
54b0f123a6 Fixed an error in the unit test for the "grep" function. 2011-03-15 21:00:14 +01:00
Jacob Carlborg
5eb607d8c2 Added unit tests for utility functions. 2011-03-14 20:21:36 +01:00
Jacob Carlborg
2babe8afc8 Removed ErrorLevel. 2011-03-11 20:55:46 +01:00
Jacob Carlborg
5996b50f86 Added documentation for the isemail module. 2011-03-11 19:44:53 +01:00
Jacob Carlborg
93915be0f2 Removed the rawLength variable to use email.length directly instead. 2011-03-08 18:44:02 +01:00
Jacob Carlborg
12bb3f5b21 Changed isEmail to return a struct instead of a status code. 2011-03-08 18:42:34 +01:00
Jacob Carlborg
3aefb99315 Fixed unicode error, all enabled unit tests pass now. 2011-03-07 20:12:59 +01:00
Jacob Carlborg
7a0c3fbad4 Most of the isemail unit test pass now. 2011-03-05 16:36:13 +01:00
Jacob Carlborg
43081cd6dc Added main function when running unit test. Missed "isEmail" in a unit test. 2011-03-02 21:03:24 +01:00
Jacob Carlborg
a8623911f5 Added unit tests. 2011-03-02 20:37:04 +01:00
Jacob Carlborg
bbb2d3f187 Ported the std.net.isemail module to D. 2011-03-02 18:20:23 +01:00
Jacob Carlborg
b41fd1fa97 Added the std.net.isemail module. 2011-03-02 18:11:01 +01:00