On 9/23/13, Alberto Narduzzi <[email protected]> wrote:

> But IsValidRoman is as good as a solution too, indeed...

Trying to determine if it is valid is 90% of calculating the output.
Hence my previous approach of TryRomanToInt.
It returns FALSE if the string isn't a legal Roman numeral.
And it is compliant with our other conversion routines like TryStrToInt etc.

Bart
_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to