[vlc-devel] commit: Properly handle < > & " in html text renderer. ( Laurent Aimar )
fenrir at via.ecp.fr
Mon Sep 22 23:56:59 CEST 2008
On Mon, Sep 22, 2008, Antoine Cellerier wrote:
> On Mon, Sep 22, 2008, Laurent Aimar wrote:
> > (But that function is implemented in a really ugly way).
> You were thinking about something like a lookup tree (or whatever the
> name is) to reduce the number of strcmp() calls? (well, to remove all
> the strcmps in fact and only do some char equality tests)
I was thinking of a simple table instead of hardcoded tests + using proper
"\xvalue" instead of weird characters...
The function will be as fast as before but would be smaller (unless the
compilo is really smart).
Now a look-up table might be nice, but I don't think the time is critical.
More information about the vlc-devel