testfuncs.cpp File Reference
Various functions to test for a card fingerprint, formatters.
More...
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include "testfuncs.h"
#include "ssflags.h"
Include dependency graph for testfuncs.cpp:
|
Functions |
bool | mod10check (char *card) |
bool | isMonth (char *d) |
int | lastDotm (int m, int y) |
bool | dateValid (char *m, char *d, char *y) |
bool | isAlpha (const char *s) |
bool | isBCD (const char *s) |
int | expandYear (int i) |
char * | monthName (int x) |
char * | formatter (char *format, char *n) |
char * | extractDate (char *format, char *n) |
void | reduceUpper (char *n) |
void | trimSpaces (char *s) |
char * | extractName (char *format, char *n) |
char * | bankLookup (char *fn, char *s, int len) |
char | numToAlpha (int i) |
int | svIndexLookup (char *fn, char *s, int len) |
char * | svExtract (char *fn, int j, int field, char sep) |
char * | svExtractor (char *s, char sep, int f) |
Variables |
SSFlags | ssFlags |
| commandline options, needed by Reader instances
|
Detailed Description
Various functions to test for a card fingerprint, formatters.
Includes several tests to determine if something is valid (ie valid date, valid MOD10 checksum, etc). Also includes various function to extract and "beautify" or format output used by TestResult.
- Author:
- Acidus (acidus@msblabs.org)
This file is part of Stripe Snoop (http://stripesnoop.sourceforge.net)
Stripe Snoop is licensed under the GPL. See COPYING for more info
Copyright (C) 2005 Acidus, Most Significant Bit Labs
Function Documentation
char* bankLookup |
( |
char * |
fn, |
|
|
char * |
s, |
|
|
int |
len |
|
) |
|
|
bool dateValid |
( |
char * |
m, |
|
|
char * |
d, |
|
|
char * |
y |
|
) |
|
|
Here is the call graph for this function:
char* extractDate |
( |
char * |
format, |
|
|
char * |
n |
|
) |
|
|
Here is the call graph for this function:
char* extractName |
( |
char * |
format, |
|
|
char * |
n |
|
) |
|
|
Here is the call graph for this function:
char* formatter |
( |
char * |
format, |
|
|
char * |
n |
|
) |
|
|
bool isAlpha |
( |
const char * |
s |
) |
|
|
bool isBCD |
( |
const char * |
s |
) |
|
|
bool isMonth |
( |
char * |
d |
) |
|
|
int lastDotm |
( |
int |
m, |
|
|
int |
y |
|
) |
|
|
bool mod10check |
( |
char * |
card |
) |
|
|
char* monthName |
( |
int |
x |
) |
|
|
char numToAlpha |
( |
int |
i |
) |
|
|
void reduceUpper |
( |
char * |
n |
) |
|
|
char* svExtract |
( |
char * |
fn, |
|
|
int |
j, |
|
|
int |
field, |
|
|
char |
sep |
|
) |
|
|
Here is the call graph for this function:
char* svExtractor |
( |
char * |
s, |
|
|
char |
sep, |
|
|
int |
f |
|
) |
|
|
int svIndexLookup |
( |
char * |
fn, |
|
|
char * |
s, |
|
|
int |
len |
|
) |
|
|
void trimSpaces |
( |
char * |
s |
) |
|
|
Variable Documentation
|
commandline options, needed by Reader instances
|
Generated on Thu Apr 7 01:56:29 2005 for StripeSnoop by
1.3.3