#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <map>
#include <ctype.h>
Go to the source code of this file.
IbanCheck methods | |
| IbanCheck * | IbanCheck_new (const char *filename) |
| void | IbanCheck_free (IbanCheck *p) |
| IbanCheck_Result | IbanCheck_check_str (const IbanCheck *p, const char *iban, const char *country) |
| IbanCheck_Result | IbanCheck_check_iban (const IbanCheck *p, const Iban *iban, const char *country) |
| IbanCheck_Result | IbanCheck_bic_position (const IbanCheck *p, const char *iban, int *start, int *end) |
| const char * | IbanCheck_resultText (IbanCheck_Result res) |
| int | IbanCheck_error (const IbanCheck *p) |
| int | IbanCheck_selftest (IbanCheck *p) |
Iban methods | |
| Iban * | Iban_new (const char *iban, int normalize) |
| void | Iban_free (Iban *p) |
| const char * | Iban_transmissionForm (const Iban *iban) |
| const char * | Iban_printableForm (Iban *iban) |
Typedefs | |
| typedef IbanCheck::Result | IbanCheck_Result |
This file contains the classes and C wrappers for IBAN checking.
|
|
|
|
|
Default destructor. |
|
||||||||||||
|
Constructor from a string |
|
|
Returns the printable format for the IBAN |
|
|
Returns the transmission format for the IBAN |
|
||||||||||||||||||||
|
Returns the position of the BIC inside the IBAN. The iban should be formally correct, if not an error Result might be returned.
|
|
||||||||||||||||
|
Check the formal correctness of a given iban. This function checks if the prefix is known, if the length is correct for the prefix, if the checksum is ok and if the prefix is valid for a given country (if set).
|
|
||||||||||||||||
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
|
|
|
|
Default destructor |
|
|
Constructor that initalizes the mappings from a data file at filename. If the file name argument is empty, then the compile-time datafile will be used. On Windows, the location of the datafile will be looked up in the registry. If the file could not be found or is not successfully read, the mappings will be empty. Use error() to check for such an error condition.
|
|
|
Convert Result code into an english message string.
|
|
|
uses the example data to test the check routines.
|
1.4.1