Sign in Join
FPDoc Onlineexperiment

TRomanConversionStrictness enumeration

In unit StrUtils

How to treat invalid roman numerals in TryRomanToInt.

Declaration

pascal
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

Values

rcsStrictOnly accept correct roman numerals.
rcsRelaxedLike rcsStrict but allow more than 3 consecutive identical letters.
rcsDontCareDo not check correctness.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.