[Patch] More Delphi compatible functions for ConvUtils unit
Attached patch:
- implements procedure UnregisterConversionFamily
- implements procedure UnregisterConversionType
- implements function TryStrToConvUnit
- implements function StrToConvUnit
- implements raising an EZeroDive exception with a specific message in Convert functions
- fixes function TryConvTypeToFamily not setting AFam parameter
- fixes off by one error in procedures RegisterConversionFamily and RegisterConversionType, so you actually register 65536 Families/Types
- changes a var parameter to an out parameter in function SearchConvert
- initializes managed variables before calling SetLength
- changes a "0" to a more meaningful "EqualsValue"
Q:
I would like to change some more things that do not affect functionality:
- some procedures use local variables named i,l,il. In the New Courier font I use in my editor, i and l look the same. So I would like to rename them (i.e. if l is used as a length indicator, rename it to len)
- I would like to rename the type ResourceData into TResourceData, juste because mostly types begin with T
Would such a patch be accepted?