Just an FYI about new things I added a few weeks ago:
modules/valtype
A few validation types for various numbers, i.e. special snit classes which
take a value and throw an error if it isn't valid.
The classes in valtype are a bit extended, they not only have the typemethod
'valid', but also a typemethod 'checkdigit' which can calculate the checkdigit
for an incomplete value.
We have validation for
ean13, isbn, imei, usnpi
amex, visa, discover, mastercard
luhn, luhn5, verhoeff
The last 3 are general checksum algorithms. All the creditcards are based on
luhn, for example.
--
Andreas Kupries
Senior Tcl Developer
ActiveState, The Dynamic Language Experts
P: 778.786.1122
F: 778.786.1133
and...@ac...
http://www.activestate.com
Get insights on Open Source and Dynamic Languages at www.activestate.com/blog
|