TRomanConversionStrictness¶
How to treat invalid roman numerals in TryRomanToInt.
Declaration¶
Source position: strutils.pp line 185
type
TRomanConversionStrictness = (rcsStrict,rcsRelaxed,rcsDontCare)Values¶
| Value | Description |
|---|---|
| rcsStrict | Only accept correct roman numerals. |
| rcsRelaxed | Like rcsStrict but allow more than 3 consecutive identical letters. |
| rcsDontCare | Do not check correctness. |
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 |
|---|---|
| TryRomanToInt | Try to convert a roman numeral to an integer value. |
| RomanToInt | Convert a string with a Roman number to it's decimal value. |
| RomanToIntDef | Convert a roman numeral to an integer value. |