Add API for getting unicode representation of a keysym
authorRob Bradford <rob@linux.intel.com>
Fri, 8 Jun 2012 12:10:28 +0000 (13:10 +0100)
committerDaniel Stone <daniel@fooishbar.org>
Fri, 8 Jun 2012 13:04:49 +0000 (14:04 +0100)
commite0524296d2e07426c2979025c81bb261d59e74cd
tree49618b1f0d27db1ccb8f09bbcdb8234b2ad07f0b
parent77c909dee2edbef2e96f95887a6abd96b985df6f
Add API for getting unicode representation of a keysym

This code uses a table and code derived from
http://www.cl.cam.ac.uk/~mgk25/ucs/keysym2ucs.c

The added API calls are:

xkb_keysym_to_utf32
xkb_keysym_to_utf8

[daniels: Changed API to be more in line with keysym_get_name, added
          test, changed formatting to 4-space.]
Makefile.am
include/xkbcommon/xkbcommon.h
src/keysym-utf.c [new file with mode: 0644]
test/xkey.c