Commit f08ce9b71b08e8db846780b7187124da53ba1c3c

Ran Benita 2012-03-24T00:26:12

Use strcasecmp consistently instead of uStrCaseCmp There's no use calling the same thing by a different name. Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
diff --git a/src/utils.h b/src/utils.h
index 0b0582b..cbf3552 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -47,7 +47,6 @@ recalloc(void *ptr, size_t old_size, size_t new_size);
 
 #define uDupString(s)          ((s) ? strdup(s) : NULL)
 #define uStringText(s)         ((s) == NULL ? "<NullString>" : (s))
-#define uStrCaseCmp(s1, s2)    strcasecmp(s1, s2)
 #define uStrCasePrefix(s1, s2) (strncasecmp((s1), (s2), strlen(s1)) == 0)
 
 /***====================================================================***/
diff --git a/src/xkbcomp/action.c b/src/xkbcomp/action.c
index 49d8695..d0e2f0f 100644
--- a/src/xkbcomp/action.c
+++ b/src/xkbcomp/action.c
@@ -132,7 +132,7 @@ stringToValue(const LookupEntry tab[], const char *string,
         return False;
 
     for (entry = tab; entry->name != NULL; entry++) {
-        if (uStrCaseCmp(entry->name, string) == 0) {
+        if (strcasecmp(entry->name, string) == 0) {
             *value_rtrn = entry->result;
             return True;
         }
@@ -251,8 +251,8 @@ CheckModifierField(struct xkb_desc * xkb,
     {
         const char *valStr;
         valStr = XkbcAtomText(value->value.str);
-        if (valStr && ((uStrCaseCmp(valStr, "usemodmapmods") == 0) ||
-                       (uStrCaseCmp(valStr, "modmapmods") == 0)))
+        if (valStr && ((strcasecmp(valStr, "usemodmapmods") == 0) ||
+                       (strcasecmp(valStr, "modmapmods") == 0)))
         {
 
             *mods_rtrn = 0;
@@ -1238,7 +1238,7 @@ SetActionField(struct xkb_desc * xkb,
         WSGO("Couldn't allocate space for action default\n");
         return False;
     }
-    if (uStrCaseCmp(elem, "action") == 0)
+    if (strcasecmp(elem, "action") == 0)
         new->action = XkbSA_NoAction;
     else
     {
diff --git a/src/xkbcomp/compat.c b/src/xkbcomp/compat.c
index 6b30232..89e2023 100644
--- a/src/xkbcomp/compat.c
+++ b/src/xkbcomp/compat.c
@@ -304,15 +304,15 @@ ResolveStateAndPredicate(ExprDef * expr,
     if (expr->op == ExprActionDecl)
     {
         const char *pred_txt = XkbcAtomText(expr->value.action.name);
-        if (uStrCaseCmp(pred_txt, "noneof") == 0)
+        if (strcasecmp(pred_txt, "noneof") == 0)
             *pred_rtrn = XkbSI_NoneOf;
-        else if (uStrCaseCmp(pred_txt, "anyofornone") == 0)
+        else if (strcasecmp(pred_txt, "anyofornone") == 0)
             *pred_rtrn = XkbSI_AnyOfOrNone;
-        else if (uStrCaseCmp(pred_txt, "anyof") == 0)
+        else if (strcasecmp(pred_txt, "anyof") == 0)
             *pred_rtrn = XkbSI_AnyOf;
-        else if (uStrCaseCmp(pred_txt, "allof") == 0)
+        else if (strcasecmp(pred_txt, "allof") == 0)
             *pred_rtrn = XkbSI_AllOf;
-        else if (uStrCaseCmp(pred_txt, "exactly") == 0)
+        else if (strcasecmp(pred_txt, "exactly") == 0)
             *pred_rtrn = XkbSI_Exactly;
         else
         {
@@ -325,7 +325,7 @@ ResolveStateAndPredicate(ExprDef * expr,
     else if (expr->op == ExprIdent)
     {
         const char *pred_txt = XkbcAtomText(expr->value.str);
-        if ((pred_txt) && (uStrCaseCmp(pred_txt, "any") == 0))
+        if ((pred_txt) && (strcasecmp(pred_txt, "any") == 0))
         {
             *pred_rtrn = XkbSI_AnyOf;
             *mods_rtrn = 0xff;
@@ -501,7 +501,7 @@ SetInterpField(SymInterpInfo * si,
     int ok = 1;
     ExprResult tmp;
 
-    if (uStrCaseCmp(field, "action") == 0)
+    if (strcasecmp(field, "action") == 0)
     {
         if (arrayNdx != NULL)
             return ReportSINotArray(si, field, info);
@@ -510,8 +510,8 @@ SetInterpField(SymInterpInfo * si,
         if (ok)
             si->defs.defined |= _SI_Action;
     }
-    else if ((uStrCaseCmp(field, "virtualmodifier") == 0) ||
-             (uStrCaseCmp(field, "virtualmod") == 0))
+    else if ((strcasecmp(field, "virtualmodifier") == 0) ||
+             (strcasecmp(field, "virtualmod") == 0))
     {
         if (arrayNdx != NULL)
             return ReportSINotArray(si, field, info);
@@ -524,7 +524,7 @@ SetInterpField(SymInterpInfo * si,
         else
             return ReportSIBadType(si, field, "virtual modifier", info);
     }
-    else if (uStrCaseCmp(field, "repeat") == 0)
+    else if (strcasecmp(field, "repeat") == 0)
     {
         if (arrayNdx != NULL)
             return ReportSINotArray(si, field, info);
@@ -540,7 +540,7 @@ SetInterpField(SymInterpInfo * si,
         else
             return ReportSIBadType(si, field, "boolean", info);
     }
-    else if (uStrCaseCmp(field, "locking") == 0)
+    else if (strcasecmp(field, "locking") == 0)
     {
         if (arrayNdx != NULL)
             return ReportSINotArray(si, field, info);
@@ -556,8 +556,8 @@ SetInterpField(SymInterpInfo * si,
         else
             return ReportSIBadType(si, field, "boolean", info);
     }
-    else if ((uStrCaseCmp(field, "usemodmap") == 0) ||
-             (uStrCaseCmp(field, "usemodmapmods") == 0))
+    else if ((strcasecmp(field, "usemodmap") == 0) ||
+             (strcasecmp(field, "usemodmapmods") == 0))
     {
         if (arrayNdx != NULL)
             return ReportSINotArray(si, field, info);
@@ -589,10 +589,10 @@ HandleInterpVar(VarDef * stmt, struct xkb_desc * xkb, CompatInfo * info)
 
     if (ExprResolveLhs(stmt->name, &elem, &field, &ndx) == 0)
         ret = 0;               /* internal error, already reported */
-    else if (elem.str && (uStrCaseCmp(elem.str, "interpret") == 0))
+    else if (elem.str && (strcasecmp(elem.str, "interpret") == 0))
         ret = SetInterpField(&info->dflt, xkb, field.str, ndx, stmt->value,
                               info);
-    else if (elem.str && (uStrCaseCmp(elem.str, "indicator") == 0))
+    else if (elem.str && (strcasecmp(elem.str, "indicator") == 0))
         ret = SetIndicatorMapField(&info->ledDflt, xkb, field.str, ndx,
                                   stmt->value);
     else
diff --git a/src/xkbcomp/expr.c b/src/xkbcomp/expr.c
index 9f8fb3d..cd35494 100644
--- a/src/xkbcomp/expr.c
+++ b/src/xkbcomp/expr.c
@@ -176,7 +176,7 @@ SimpleLookup(const void * priv, xkb_atom_t field, unsigned type,
     str = XkbcAtomText(field);
     for (entry = priv; (entry != NULL) && (entry->name != NULL); entry++)
     {
-        if (uStrCaseCmp(str, entry->name) == 0)
+        if (strcasecmp(str, entry->name) == 0)
         {
             val_rtrn->uval = entry->result;
             return True;
@@ -217,9 +217,9 @@ LookupModMask(const void * priv, xkb_atom_t field, unsigned type,
     str = XkbcAtomText(field);
     if (str == NULL)
         return False;
-    if (uStrCaseCmp(str, "all") == 0)
+    if (strcasecmp(str, "all") == 0)
         val_rtrn->uval = 0xff;
-    else if (uStrCaseCmp(str, "none") == 0)
+    else if (strcasecmp(str, "none") == 0)
         val_rtrn->uval = 0;
     else if (LookupModIndex(priv, field, type, val_rtrn))
         val_rtrn->uval = (1 << val_rtrn->uval);
@@ -251,16 +251,16 @@ ExprResolveBoolean(ExprDef * expr,
         bogus = XkbcAtomText(expr->value.str);
         if (bogus)
         {
-            if ((uStrCaseCmp(bogus, "true") == 0) ||
-                (uStrCaseCmp(bogus, "yes") == 0) ||
-                (uStrCaseCmp(bogus, "on") == 0))
+            if ((strcasecmp(bogus, "true") == 0) ||
+                (strcasecmp(bogus, "yes") == 0) ||
+                (strcasecmp(bogus, "on") == 0))
             {
                 val_rtrn->uval = 1;
                 return True;
             }
-            else if ((uStrCaseCmp(bogus, "false") == 0) ||
-                     (uStrCaseCmp(bogus, "no") == 0) ||
-                     (uStrCaseCmp(bogus, "off") == 0))
+            else if ((strcasecmp(bogus, "false") == 0) ||
+                     (strcasecmp(bogus, "no") == 0) ||
+                     (strcasecmp(bogus, "off") == 0))
             {
                 val_rtrn->uval = 0;
                 return True;
diff --git a/src/xkbcomp/indicators.c b/src/xkbcomp/indicators.c
index 4d03bd6..ed40be1 100644
--- a/src/xkbcomp/indicators.c
+++ b/src/xkbcomp/indicators.c
@@ -205,8 +205,8 @@ SetIndicatorMapField(LEDInfo * led,
     Bool ok;
 
     ok = True;
-    if ((uStrCaseCmp(field, "modifiers") == 0)
-        || (uStrCaseCmp(field, "mods") == 0))
+    if ((strcasecmp(field, "modifiers") == 0) ||
+        (strcasecmp(field, "mods") == 0))
     {
         if (arrayNdx != NULL)
             return ReportIndicatorNotArray(led, field);
@@ -216,7 +216,7 @@ SetIndicatorMapField(LEDInfo * led,
         led->vmods = (rtrn.uval >> 8) & 0xff;
         led->defs.defined |= _LED_Mods;
     }
-    else if (uStrCaseCmp(field, "groups") == 0)
+    else if (strcasecmp(field, "groups") == 0)
     {
         if (arrayNdx != NULL)
             return ReportIndicatorNotArray(led, field);
@@ -225,8 +225,8 @@ SetIndicatorMapField(LEDInfo * led,
         led->groups = rtrn.uval;
         led->defs.defined |= _LED_Groups;
     }
-    else if ((uStrCaseCmp(field, "controls") == 0) ||
-             (uStrCaseCmp(field, "ctrls") == 0))
+    else if ((strcasecmp(field, "controls") == 0) ||
+             (strcasecmp(field, "ctrls") == 0))
     {
         if (arrayNdx != NULL)
             return ReportIndicatorNotArray(led, field);
@@ -236,7 +236,7 @@ SetIndicatorMapField(LEDInfo * led,
         led->ctrls = rtrn.uval;
         led->defs.defined |= _LED_Ctrls;
     }
-    else if (uStrCaseCmp(field, "allowexplicit") == 0)
+    else if (strcasecmp(field, "allowexplicit") == 0)
     {
         if (arrayNdx != NULL)
             return ReportIndicatorNotArray(led, field);
@@ -248,8 +248,8 @@ SetIndicatorMapField(LEDInfo * led,
             led->flags |= XkbIM_NoExplicit;
         led->defs.defined |= _LED_Explicit;
     }
-    else if ((uStrCaseCmp(field, "whichmodstate") == 0) ||
-             (uStrCaseCmp(field, "whichmodifierstate") == 0))
+    else if ((strcasecmp(field, "whichmodstate") == 0) ||
+             (strcasecmp(field, "whichmodifierstate") == 0))
     {
         if (arrayNdx != NULL)
             return ReportIndicatorNotArray(led, field);
@@ -260,7 +260,7 @@ SetIndicatorMapField(LEDInfo * led,
         }
         led->which_mods = rtrn.uval;
     }
-    else if (uStrCaseCmp(field, "whichgroupstate") == 0)
+    else if (strcasecmp(field, "whichgroupstate") == 0)
     {
         if (arrayNdx != NULL)
             return ReportIndicatorNotArray(led, field);
@@ -271,12 +271,12 @@ SetIndicatorMapField(LEDInfo * led,
         }
         led->which_groups = rtrn.uval;
     }
-    else if ((uStrCaseCmp(field, "driveskbd") == 0) ||
-             (uStrCaseCmp(field, "driveskeyboard") == 0) ||
-             (uStrCaseCmp(field, "leddriveskbd") == 0) ||
-             (uStrCaseCmp(field, "leddriveskeyboard") == 0) ||
-             (uStrCaseCmp(field, "indicatordriveskbd") == 0) ||
-             (uStrCaseCmp(field, "indicatordriveskeyboard") == 0))
+    else if ((strcasecmp(field, "driveskbd") == 0) ||
+             (strcasecmp(field, "driveskeyboard") == 0) ||
+             (strcasecmp(field, "leddriveskbd") == 0) ||
+             (strcasecmp(field, "leddriveskeyboard") == 0) ||
+             (strcasecmp(field, "indicatordriveskbd") == 0) ||
+             (strcasecmp(field, "indicatordriveskeyboard") == 0))
     {
         if (arrayNdx != NULL)
             return ReportIndicatorNotArray(led, field);
@@ -288,7 +288,7 @@ SetIndicatorMapField(LEDInfo * led,
             led->flags &= ~XkbIM_LEDDrivesKB;
         led->defs.defined |= _LED_DrivesKbd;
     }
-    else if (uStrCaseCmp(field, "index") == 0)
+    else if (strcasecmp(field, "index") == 0)
     {
         if (arrayNdx != NULL)
             return ReportIndicatorNotArray(led, field);
diff --git a/src/xkbcomp/keycodes.c b/src/xkbcomp/keycodes.c
index 88dcb50..50d8484 100644
--- a/src/xkbcomp/keycodes.c
+++ b/src/xkbcomp/keycodes.c
@@ -676,9 +676,9 @@ HandleKeyNameVar(VarDef * stmt, KeyNamesInfo * info)
         ACTION("Default for field %s ignored\n", field.str);
         goto err_out;
     }
-    if (uStrCaseCmp(field.str, "minimum") == 0)
+    if (strcasecmp(field.str, "minimum") == 0)
         which = MIN_KEYCODE_DEF;
-    else if (uStrCaseCmp(field.str, "maximum") == 0)
+    else if (strcasecmp(field.str, "maximum") == 0)
         which = MAX_KEYCODE_DEF;
     else
     {
diff --git a/src/xkbcomp/keytypes.c b/src/xkbcomp/keytypes.c
index ab31706..0d6a1f2 100644
--- a/src/xkbcomp/keytypes.c
+++ b/src/xkbcomp/keytypes.c
@@ -820,7 +820,7 @@ SetKeyTypeField(KeyTypeInfo * type,
 {
     ExprResult tmp;
 
-    if (uStrCaseCmp(field, "modifiers") == 0)
+    if (strcasecmp(field, "modifiers") == 0)
     {
         unsigned mods, vmods;
         if (arrayNdx != NULL)
@@ -850,18 +850,18 @@ SetKeyTypeField(KeyTypeInfo * type,
         type->defs.defined |= _KT_Mask;
         return True;
     }
-    else if (uStrCaseCmp(field, "map") == 0)
+    else if (strcasecmp(field, "map") == 0)
     {
         type->defs.defined |= _KT_Map;
         return SetMapEntry(type, xkb, arrayNdx, value);
     }
-    else if (uStrCaseCmp(field, "preserve") == 0)
+    else if (strcasecmp(field, "preserve") == 0)
     {
         type->defs.defined |= _KT_Preserve;
         return SetPreserve(type, xkb, arrayNdx, value);
     }
-    else if ((uStrCaseCmp(field, "levelname") == 0) ||
-             (uStrCaseCmp(field, "level_name") == 0))
+    else if ((strcasecmp(field, "levelname") == 0) ||
+             (strcasecmp(field, "level_name") == 0))
     {
         type->defs.defined |= _KT_LevelNames;
         return SetLevelName(type, arrayNdx, value);
@@ -879,7 +879,7 @@ HandleKeyTypeVar(VarDef * stmt, struct xkb_desc * xkb, KeyTypesInfo * info)
 
     if (!ExprResolveLhs(stmt->name, &elem, &field, &arrayNdx))
         return False;           /* internal error, already reported */
-    if (elem.str && (uStrCaseCmp(elem.str, "type") == 0))
+    if (elem.str && (strcasecmp(elem.str, "type") == 0))
         return SetKeyTypeField(&info->dflt, xkb, field.str, arrayNdx,
                                stmt->value, info);
     if (elem.str != NULL)
diff --git a/src/xkbcomp/parseutils.c b/src/xkbcomp/parseutils.c
index 32f7484..631a452 100644
--- a/src/xkbcomp/parseutils.c
+++ b/src/xkbcomp/parseutils.c
@@ -437,14 +437,14 @@ LookupKeysym(char *str, xkb_keysym_t * sym_rtrn)
 {
     xkb_keysym_t sym;
 
-    if ((!str) || (uStrCaseCmp(str, "any") == 0)
-        || (uStrCaseCmp(str, "nosymbol") == 0))
+    if ((!str) || (strcasecmp(str, "any") == 0) ||
+        (strcasecmp(str, "nosymbol") == 0))
     {
         *sym_rtrn = NoSymbol;
         return 1;
     }
-    else if ((uStrCaseCmp(str, "none") == 0)
-             || (uStrCaseCmp(str, "voidsymbol") == 0))
+    else if ((strcasecmp(str, "none") == 0) ||
+             (strcasecmp(str, "voidsymbol") == 0))
     {
         *sym_rtrn = XK_VoidSymbol;
         return 1;
diff --git a/src/xkbcomp/symbols.c b/src/xkbcomp/symbols.c
index 6defce2..8e00038 100644
--- a/src/xkbcomp/symbols.c
+++ b/src/xkbcomp/symbols.c
@@ -1033,7 +1033,7 @@ SetSymbolsField(KeyInfo * key,
     Bool ok = True;
     ExprResult tmp;
 
-    if (uStrCaseCmp(field, "type") == 0)
+    if (strcasecmp(field, "type") == 0)
     {
         ExprResult ndx;
         if ((!ExprResolveString(value, &tmp))
@@ -1062,13 +1062,13 @@ SetSymbolsField(KeyInfo * key,
         }
         free(tmp.str);
     }
-    else if (uStrCaseCmp(field, "symbols") == 0)
+    else if (strcasecmp(field, "symbols") == 0)
         return AddSymbolsToKey(key, xkb, field, arrayNdx, value, info);
-    else if (uStrCaseCmp(field, "actions") == 0)
+    else if (strcasecmp(field, "actions") == 0)
         return AddActionsToKey(key, xkb, field, arrayNdx, value, info);
-    else if ((uStrCaseCmp(field, "vmods") == 0) ||
-             (uStrCaseCmp(field, "virtualmods") == 0) ||
-             (uStrCaseCmp(field, "virtualmodifiers") == 0))
+    else if ((strcasecmp(field, "vmods") == 0) ||
+             (strcasecmp(field, "virtualmods") == 0) ||
+             (strcasecmp(field, "virtualmodifiers") == 0))
     {
         ok = ExprResolveVModMask(value, &tmp, xkb);
         if (ok)
@@ -1084,18 +1084,18 @@ SetSymbolsField(KeyInfo * key,
                     longText(key->name));
         }
     }
-    else if ((uStrCaseCmp(field, "locking") == 0)
-             || (uStrCaseCmp(field, "lock") == 0)
-             || (uStrCaseCmp(field, "locks") == 0))
+    else if ((strcasecmp(field, "locking") == 0) ||
+             (strcasecmp(field, "lock") == 0) ||
+             (strcasecmp(field, "locks") == 0))
     {
         ok = ExprResolveEnum(value, &tmp, lockingEntries);
         if (ok)
             key->behavior.type = tmp.uval;
         key->defs.defined |= _Key_Behavior;
     }
-    else if ((uStrCaseCmp(field, "radiogroup") == 0) ||
-             (uStrCaseCmp(field, "permanentradiogroup") == 0) ||
-             (uStrCaseCmp(field, "allownone") == 0))
+    else if ((strcasecmp(field, "radiogroup") == 0) ||
+             (strcasecmp(field, "permanentradiogroup") == 0) ||
+             (strcasecmp(field, "allownone") == 0))
     {
         ERROR("Radio groups not supported\n");
         ACTION("Ignoring radio group specification for key %s\n", longText(key->name));
@@ -1107,9 +1107,9 @@ SetSymbolsField(KeyInfo * key,
         ERROR("Overlays not supported\n");
         ACTION("Ignoring overlay specification for key %s\n", longText(key->name));
     }
-    else if ((uStrCaseCmp(field, "repeating") == 0) ||
-             (uStrCaseCmp(field, "repeats") == 0) ||
-             (uStrCaseCmp(field, "repeat") == 0))
+    else if ((strcasecmp(field, "repeating") == 0) ||
+             (strcasecmp(field, "repeats") == 0) ||
+             (strcasecmp(field, "repeat") == 0))
     {
         ok = ExprResolveEnum(value, &tmp, repeatEntries);
         if (!ok)
@@ -1122,8 +1122,8 @@ SetSymbolsField(KeyInfo * key,
         key->repeat = tmp.uval;
         key->defs.defined |= _Key_Repeat;
     }
-    else if ((uStrCaseCmp(field, "groupswrap") == 0) ||
-             (uStrCaseCmp(field, "wrapgroups") == 0))
+    else if ((strcasecmp(field, "groupswrap") == 0) ||
+             (strcasecmp(field, "wrapgroups") == 0))
     {
         ok = ExprResolveBoolean(value, &tmp);
         if (!ok)
@@ -1139,8 +1139,8 @@ SetSymbolsField(KeyInfo * key,
             key->groupInfo = XkbClampIntoRange;
         key->defs.defined |= _Key_GroupInfo;
     }
-    else if ((uStrCaseCmp(field, "groupsclamp") == 0) ||
-             (uStrCaseCmp(field, "clampgroups") == 0))
+    else if ((strcasecmp(field, "groupsclamp") == 0) ||
+             (strcasecmp(field, "clampgroups") == 0))
     {
         ok = ExprResolveBoolean(value, &tmp);
         if (!ok)
@@ -1156,8 +1156,8 @@ SetSymbolsField(KeyInfo * key,
             key->groupInfo = XkbWrapIntoRange;
         key->defs.defined |= _Key_GroupInfo;
     }
-    else if ((uStrCaseCmp(field, "groupsredirect") == 0) ||
-             (uStrCaseCmp(field, "redirectgroups") == 0))
+    else if ((strcasecmp(field, "groupsredirect") == 0) ||
+             (strcasecmp(field, "redirectgroups") == 0))
     {
         if (!ExprResolveGroup(value, &tmp))
         {
@@ -1218,20 +1218,20 @@ HandleSymbolsVar(VarDef * stmt, struct xkb_desc * xkb, SymbolsInfo * info)
 
     if (ExprResolveLhs(stmt->name, &elem, &field, &arrayNdx) == 0)
         return 0;               /* internal error, already reported */
-    if (elem.str && (uStrCaseCmp(elem.str, "key") == 0))
+    if (elem.str && (strcasecmp(elem.str, "key") == 0))
     {
         ret = SetSymbolsField(&info->dflt, xkb, field.str, arrayNdx,
                               stmt->value, info);
     }
-    else if ((elem.str == NULL) && ((uStrCaseCmp(field.str, "name") == 0) ||
-                                    (uStrCaseCmp(field.str, "groupname") ==
+    else if ((elem.str == NULL) && ((strcasecmp(field.str, "name") == 0) ||
+                                    (strcasecmp(field.str, "groupname") ==
                                      0)))
     {
         ret = SetGroupName(info, arrayNdx, stmt->value);
     }
     else if ((elem.str == NULL)
-             && ((uStrCaseCmp(field.str, "groupswrap") == 0)
-                 || (uStrCaseCmp(field.str, "wrapgroups") == 0)))
+             && ((strcasecmp(field.str, "groupswrap") == 0) ||
+                 (strcasecmp(field.str, "wrapgroups") == 0)))
     {
         if (!ExprResolveBoolean(stmt->value, &tmp))
         {
@@ -1248,8 +1248,8 @@ HandleSymbolsVar(VarDef * stmt, struct xkb_desc * xkb, SymbolsInfo * info)
         }
     }
     else if ((elem.str == NULL)
-             && ((uStrCaseCmp(field.str, "groupsclamp") == 0)
-                 || (uStrCaseCmp(field.str, "clampgroups") == 0)))
+             && ((strcasecmp(field.str, "groupsclamp") == 0) ||
+                 (strcasecmp(field.str, "clampgroups") == 0)))
     {
         if (!ExprResolveBoolean(stmt->value, &tmp))
         {
@@ -1266,8 +1266,8 @@ HandleSymbolsVar(VarDef * stmt, struct xkb_desc * xkb, SymbolsInfo * info)
         }
     }
     else if ((elem.str == NULL)
-             && ((uStrCaseCmp(field.str, "groupsredirect") == 0)
-                 || (uStrCaseCmp(field.str, "redirectgroups") == 0)))
+             && ((strcasecmp(field.str, "groupsredirect") == 0) ||
+                 (strcasecmp(field.str, "redirectgroups") == 0)))
     {
         if (!ExprResolveGroup(stmt->value, &tmp))
         {
@@ -1281,7 +1281,7 @@ HandleSymbolsVar(VarDef * stmt, struct xkb_desc * xkb, SymbolsInfo * info)
             ret = True;
         }
     }
-    else if ((elem.str == NULL) && (uStrCaseCmp(field.str, "allownone") == 0))
+    else if ((elem.str == NULL) && (strcasecmp(field.str, "allownone") == 0))
     {
         ERROR("Radio groups not supported\n");
         ACTION("Ignoring \"allow none\" specification\n");