Translate to Upper Case
Provide a comprehensive notion of uppercase translation.
Notes
This is a general notion of uppercase translation.
It is used in several areas, including sort order definition.
- Declare translation table (fold_toupper)
- Array declaration
- Segment Source
-
141: /* Translation table folding lower case to upper. */
142: static char fold_toupper[UCHAR_LIM];
143:
- Define translation table
-
Code insertion
- Segment Source
-
463: if (ISLOWER (i))
464: fold_toupper[i] = toupper (i);
465: else
466: fold_toupper[i] = i;