[fpc-devel] HTML string to TFPColor
Ondrej Pokorny
lazarus at kluug.net
Sun Jul 23 16:13:31 CEST 2017
On 23.07.2017 16:08, Ondrej Pokorny wrote:
> On 23.07.2017 15:25, Michael Van Canneyt wrote:
>> I think the case statement is inefficient enough not to worry about
>> an additional call.
>
> There is IdentToInt function in Classes that makes this more
> efficient. IdentToColor from Graphics.pas uses it as well.
Actually not, I wrongly assumed it takes a sorted array and uses binary
search...
Ondrej
More information about the fpc-devel
mailing list