Optimize locale access
Read locale specific information into fast access tables.
Notes
- Define inittables
-
Function definition
- Segment Source
-
448: /* Initialize the character class tables. */
449:
450: static void
451: inittables (void)
452: {
453: int i;
454:
455: for (i = 0; i < UCHAR_LIM; ++i)
456: {
457: if (ISBLANK (i))
458: blanks[i] = 1;
459: if (!ISPRINT (i))
460: nonprinting[i] = 1;
461: if (!ISALNUM (i) && !ISBLANK (i))
462: nondictionary[i] = 1;
463: if (ISLOWER (i))
464: fold_toupper[i] = toupper (i);
465: else
466: fold_toupper[i] = i;
467: }
468: }
469:
- Define character classes
-
Code insertion
- Segment Source
- 1736: inittables ();