Home | History | Annotate | Download | only in locale

Lines Matching defs:rlp

142 _rune_init_priv(_RuneLocalePriv *rlp)
148 rlp->rlp_ctype_tab [i + 1] = 0;
149 rlp->rlp_tolower_tab[i + 1] = i;
150 rlp->rlp_toupper_tab[i + 1] = i;
153 rlp->rlp_compat_bsdctype[i + 1] = 0;
157 rlp->rlp_ctype_tab [0] = 0;
158 rlp->rlp_tolower_tab[0] = EOF;
159 rlp->rlp_toupper_tab[0] = EOF;
161 rlp->rl.rl_ctype_tab = (const unsigned short *)&rlp->rlp_ctype_tab[0];
162 rlp->rl.rl_tolower_tab = (const short *)&rlp->rlp_tolower_tab[0];
163 rlp->rl.rl_toupper_tab = (const short *)&rlp->rlp_toupper_tab[0];
164 rlp->rl.rl_codeset = (const char *)&rlp->rlp_codeset[0];
166 _rune_wctype_init(&rlp->rl);
167 _rune_wctrans_init(&rlp->rl);
170 rlp->rlp_compat_bsdctype[0] = 0;
171 rlp->rl.rl_compat_bsdctype = (const unsigned char *)
172 &rlp->rlp_compat_bsdctype[0];
239 _RuneLocalePriv *rlp;
268 n = sizeof(*rlp) + (len * sizeof(*re)) + lenvar;
269 rlp = (_RuneLocalePriv *)malloc(n);
270 if (rlp == NULL)
273 rlp->rlp_ctype_tab = NULL;
274 rlp->rlp_tolower_tab = NULL;
275 rlp->rlp_toupper_tab = NULL;
276 if ((rlp->rlp_ctype_tab = alloc_guarded(sizeof(rlp->rlp_ctype_tab[0]),
278 (rlp->rlp_tolower_tab =
279 alloc_guarded(sizeof(rlp->rlp_tolower_tab[0]),
281 (rlp->rlp_toupper_tab =
282 alloc_guarded(sizeof(rlp->rlp_toupper_tab[0]),
288 _rune_init_priv(rlp);
290 rl = &rlp->rl;
291 re = (_RuneEntry *)(void *)(rlp + 1);
345 _rune_find_codeset(rlp->rlp_codeset, sizeof(rlp->rlp_codeset),
366 rlp->rlp_ctype_tab[i + 1] = 0;
367 rlp->rlp_tolower_tab[i + 1] = i;
368 rlp->rlp_toupper_tab[i + 1] = i;
371 rlp->rlp_ctype_tab[i + 1] = (unsigned short)
375 rlp->rlp_compat_bsdctype[i + 1]
388 rlp->rlp_to##name##_tab[i + 1] = (short)c; \
400 free_guarded(rlp->rlp_ctype_tab, sizeof(rlp->rlp_ctype_tab[0]),
402 free_guarded(rlp->rlp_tolower_tab, sizeof(rlp->rlp_tolower_tab[0]),
404 free_guarded(rlp->rlp_toupper_tab, sizeof(rlp->rlp_toupper_tab[0]),
407 free(rlp);