Lines Matching refs:keysym
30 xkb_keysym_t keysym; in test_string() local
32 keysym = xkb_keysym_from_name(string, 0); in test_string()
35 fprintf(stderr, "Received string %s -> %x\n\n", string, keysym); in test_string()
37 return keysym == expected; in test_string()
43 xkb_keysym_t keysym; in test_casestring() local
45 keysym = xkb_keysym_from_name(string, XKB_KEYSYM_CASE_INSENSITIVE); in test_casestring()
48 fprintf(stderr, "Received casestring %s -> %x\n\n", string, keysym); in test_casestring()
50 return keysym == expected; in test_casestring()
54 test_keysym(xkb_keysym_t keysym, const char *expected) in test_keysym() argument
58 xkb_keysym_get_name(keysym, s, sizeof(s)); in test_keysym()
60 fprintf(stderr, "Expected keysym %#x -> %s\n", keysym, expected); in test_keysym()
61 fprintf(stderr, "Received keysym %#x -> %s\n\n", keysym, s); in test_keysym()
67 test_utf8(xkb_keysym_t keysym, const char *expected) in test_utf8() argument
72 ret = xkb_keysym_to_utf8(keysym, s, sizeof(s)); in test_utf8()
76 fprintf(stderr, "Expected keysym %#x -> %s (%u bytes)\n", keysym, expected, in test_utf8()
78 fprintf(stderr, "Received keysym %#x -> %s (%u bytes)\n\n", keysym, s, in test_utf8()