libxkbcommon/test
Ran Benita a17701327e Compose: add iterator API
Allow users to iterate the entries in a compose table. This is useful
for other projects which want programmable access to the sequences,
without having to write their own parser.

- New API:
  - `xkb_compose_table_entry_sequence`;
  - `xkb_compose_table_entry_keysym`;
  - `xkb_compose_table_entry_utf8`;
  - `xkb_compose_table_iterator_new`;
  - `xkb_compose_table_iterator_free`;
  - `xkb_compose_table_iterator_next`.
- Add tests in `test/compose.c`.
- Add benchmark for compose traversal.
- `tools/compose.c`:
  - Print entries instead of just validating them.
  - Add `--file` option.
  - TODO: make this tool part of the xkbcli commands.

Co-authored-by: Pierre Le Marre <dev@wismill.eu>
Co-authored-by: Ran Benita <ran@unusedvar.com>
Signed-off-by: Ran Benita <ran@unusedvar.com>
2023-09-26 09:02:45 +02:00
..
data Improved tests related to keysyms 2023-07-14 09:22:24 +02:00
atom.c test/atom: use correct format specifier for size_t 2019-12-28 14:13:52 +02:00
buffercomp.c scanner: allow for a zero terminated string as keymap 2023-05-05 09:57:23 +10:00
common.c Possible fix for non-MSVC windows compilers 2023-04-11 23:29:25 +03:00
compose.c Compose: add iterator API 2023-09-26 09:02:45 +02:00
context.c test: move mkdir & mkdtemp calls to common place and fix them on MSVC 2022-09-24 12:31:53 +03:00
evdev-scancodes.h test: make most tests portable by copying linux/input.h locally 2014-09-06 11:29:15 +03:00
filecomp.c Add support for modmap None (#291) 2023-05-01 23:30:41 +03:00
keymap.c Improved tests related to keysyms 2023-07-14 09:22:24 +02:00
keyseq.c build: include config.h manually 2019-12-27 13:09:11 +02:00
keysym.c Improved tests related to keysyms 2023-07-14 09:22:24 +02:00
log.c Messages: merge macros with and without message code 2023-09-24 09:09:24 +02:00
messages.c Add xkb-check-messages tool 2023-09-19 08:49:52 +02:00
modifiers.c Add support for modmap None (#291) 2023-05-01 23:30:41 +03:00
registry.c test: move mkdir & mkdtemp calls to common place and fix them on MSVC 2022-09-24 12:31:53 +03:00
rules-file-includes.c build: include config.h manually 2019-12-27 13:09:11 +02:00
rules-file.c build: include config.h manually 2019-12-27 13:09:11 +02:00
rulescomp.c build: include config.h manually 2019-12-27 13:09:11 +02:00
state.c Replace keycode numeric offset with EVDEV_OFFSET 2023-07-04 10:59:19 +02:00
stringcomp.c build: include config.h manually 2019-12-27 13:09:11 +02:00
symbols-leak-test.py test: make the symbols-leak-test executable 2020-07-25 10:59:32 +03:00
test-keysym.py test: add a keysym tester 2021-02-22 13:43:16 +02:00
test.h Possible fix for non-MSVC windows compilers 2023-04-11 23:29:25 +03:00
tool-option-parsing.py test: show the tool exit status on failure 2022-01-24 07:56:47 +10:00
utf8.c Do not interpret nor emit invalid Unicode encoding forms 2023-05-13 22:02:46 +03:00
utils.c utils: add streq_null() for streq that allows NULL values 2020-07-06 15:15:20 +10:00
x11.c Test: Use a xvfb wrapper for x11 test 2023-09-18 16:07:09 +02:00
x11comp.c Test: Enable x11comp and use the xvfb wrapper 2023-09-18 16:07:09 +02:00
xkeyboard-config-test.py.in Use warning code in xkeyboard-config test 2023-09-19 08:49:52 +02:00
xvfb-wrapper.c Test: Catch SIGUSR1 from Xvfb for X11 tests 2023-09-18 16:07:09 +02:00
xvfb-wrapper.h Test: Use a xvfb wrapper for x11 test 2023-09-18 16:07:09 +02:00