Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

testfuncs.h

Go to the documentation of this file.
00001 /*
00002  * testfuncs.cpp - Various functions to test for a card fingerprint
00003  */
00004 
00005 #ifndef TESTFUNCS_H
00006 #define TESTFUNCS_H
00007 
00008 #define VISABANKNAMES "data/visa-pre.csv"
00009 #define MASTERCARDBANKNAMES "data/mastercard-pre.csv"
00010 #define AIRPORTNAMES "data/airportcodes.csv"
00011 #define AIRLINENAMES "data/airline.csv"
00012 #define AIRLINECLASSES "data/airline-classes.csv"
00013 #define AAMVAREGIONS "data/aamva-regions.csv"
00014 
00015 
00016 bool mod10check(char *card);
00017 
00018 bool isMonth(char * d);
00019 
00020 int lastDotm(int m, int y);
00021 
00022 bool dateValid(char *m, char *d, char * y);
00023 
00024 bool isAlpha(const char *);
00025 
00026 bool isBCD(const char *);
00027 
00028 // =============================================================== FORMATTERS
00029 
00030 int expandYear(int i);
00031 
00032 char * monthName(int x);
00033 
00034 char * formatter(char * format, char * n);
00035 
00036 char * extractDate(char * format, char * n);
00037 
00038 char * extractName(char * format, char *n);
00039 
00040 void reduceUpper(char * n);
00041 
00042 char * bankLookup(char * fn, char * s, int len);
00043 
00044 int svIndexLookup(char *fn, char * s, int len);
00045 
00046 char * svExtract(char * fn, int j, int field, char sep);
00047 
00048 char * svExtractor(char * s, char sep, int f);
00049 
00050 char numToAlpha(int i);
00051 
00052 #endif

Generated on Thu Apr 7 01:55:47 2005 for StripeSnoop by doxygen 1.3.3