TRomanConversionStrictness

How to treat invalid roman numerals in TryRomanToInt.

Declaration

Source position: strutils.pp line 167

Type
TRomanConversionStrictness = (rcsStrict,rcsRelaxed,rcsDontCare)

Description

TRomanConversionStrictness is an enumerated type that can be used to decide how to react to invalid roman numerals.

rcsStrict
Strict adherence to roman numerals. Up to 3 consecutive identical letters. No negative numbers. Ordering must be correct.
rcsRelaxed
Same as rcsStrict but allow more than 3 consecutive identical letters.
rcsDontCare
Do not check validity at all

See also

Name Description
RomanToInt Convert a string with a Roman number to it's decimal value.
RomanToIntDef Convert a roman numeral to an integer value
TryRomanToInt Try to convert a roman numeral to an integer value.