// Converts Roman numerals to decimal integers.
// This code is very resilient to non-standard or variant forms, but does not handle
// exotic forms such as fractions (S etc.), the overstrike x1000 operator or unicode numerals.
// Andrew Fountain, released under GPL 3.0 or higher
#define ID "$Id: roman_num.cpp 46 2012-08-03 18:24:25Z andrewfn $"
#include <iostream>
#include <string.h>
using namespace std;
/* Helper function for romChars()
* return the value of a Roman character, or zero if not a valid character
*/