[Overview][Resource strings][Constants][Types][Procedures and functions][Index] Reference for unit 'strutils' (#rtl)

TRomanConversionStrictness

How to treat invalid roman numerals in TryRomanToInt.

Declaration

Source position: strutils.pp line 140

type TRomanConversionStrictness = (

  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 adherance 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

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


Documentation generated on: Nov 16 2015