Hi Bill

On Thu, Oct 4, 2012 at 6:40 PM, Bill Spitzak <spit...@gmail.com> wrote:
> David Herrmann wrote:
>
>>> So since makekeys is ugly and gperf is a bit excessive, maybe we should
>>> just keep it simple, what do you think?
>>
>>
>> Works all very nice here! Thanks, I am all in favor of this approach.
>> Reviewed-by: David Herrmann <dh.herrm...@googlemail.com>
>> No need to resend for the small fixes I suggested, though.
>>
>> I am working on a case-insensitive search based on this patch. I will
>> send it when done. The approach I am using is:
>> Use bsearch with strcasecmp() to find _one_ of the possible solutions
>> (not necessarily the first). Then I check the entries _before_ and
>> _after_ the one I found whether they are equal and then I use some
>> heuristic to return the lower-case keysym (that is, KEY_a, not KEY_A).
>
>
> Actually binary search can always find the first match (or the last one
> depending on exactly how it is written:

I don't need the first one. I need the one that is the lower-case keysym.

Regards
David
_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to