Home | History | Annotate | Download | only in libiberty

Lines Matching refs:TRANSLATE

1175   /* Perhaps we should print the translate table?  */
1873 char *translate,
1882 char *translate,
1890 as an array index (in, e.g., `translate'). */
1891 /* ifdef MBS_SUPPORT, we translate only if character <= 0xff,
1899 if (translate && (c <= 0xff)) c = (UCHAR_T) translate[c]; \
1905 if (translate) c = (unsigned char) translate[c]; \
1921 /* If `translate' is non-null, return translate[D], else just D. We
1922 cast the subscript to translate because some data is declared as
1925 /* ifdef MBS_SUPPORT, we translate only if character <= 0xff,
1929 # ifndef TRANSLATE
1931 # define TRANSLATE(d) \
1932 ((translate && ((UCHAR_T) (d)) <= 0xff) \
1933 ? (char) translate[(unsigned char) (d)] : (d))
1935 # define TRANSLATE(d) \
1936 (translate ? (char) translate[(unsigned char) (d)] : (char) (d))
2272 Assumes the `allocated' (and perhaps `buffer') and `translate'
2336 /* How to translate the characters in the pattern. */
2337 RE_TRANSLATE_TYPE translate = bufp->translate;
2597 if (TRANSLATE (*(p - 2)) == TRANSLATE ('.')
2599 && p < pend && TRANSLATE (*p) == TRANSLATE ('\n')
2778 ret = wcs_compile_range (range_start, &p, pend, translate,
2793 ret = wcs_compile_range (c, &p, pend, translate, syntax, b,
3185 = byte_compile_range (range_start, &p, pend, translate,
3198 ret = byte_compile_range (c, &p, pend, translate, syntax, b);
3260 if (translate && (is_upper || is_lower)
3309 if ( translate && (is_upper || is_lower)
3660 /* Do not translate the character after the \, so that we can
3662 translate, e.g., B to b. */
4100 not to translate; but if we don't translate it
4102 c = TRANSLATE (c);
4375 const CHAR_T *pend, RE_TRANSLATE_TYPE translate,
4406 start_val = collseq_table_lookup(collseq, TRANSLATE(range_start_char));
4408 end_val = collseq_table_lookup (collseq, TRANSLATE (p[0]));
4424 range_start = (range_start_char >= 0)? TRANSLATE (range_start_char):
4426 range_end = TRANSLATE (p[0]);
4458 const char *pend, RE_TRANSLATE_TYPE translate,
4486 start_colseq = collseq[(unsigned char) TRANSLATE (range_start_char)];
4487 end_colseq = collseq[(unsigned char) TRANSLATE (p[0])];
4490 unsigned int this_colseq = collseq[(unsigned char) TRANSLATE (this_char)];
4494 SET_LIST_BIT (TRANSLATE (this_char));
4502 range_start_char = TRANSLATE (range_start_char);
4503 /* TRANSLATE(p[0]) is casted to char (not unsigned char) in TRANSLATE,
4506 e.g. If translate[p[0]] = 0xff, end_char may equals to 0xffffffff.
4508 end_char = ((unsigned)TRANSLATE(p[0]) & ((1 << BYTEWIDTH) - 1));
4512 SET_LIST_BIT (TRANSLATE (this_char));
5032 register RE_TRANSLATE_TYPE translate = bufp->translate;
5183 /* Written out as an if-else to avoid testing `translate'
5185 if (translate)
5188 translate[(unsigned char) *d++]])
5202 if (!fastmap[(unsigned char) TRANSLATE (c)])
5450 int len, char *translate);
5603 RE_TRANSLATE_TYPE translate = bufp->translate;
6130 testing `translate' inside the loop. */
6131 if (translate)
6139 if ((UCHAR_T) translate
6149 if ((UCHAR_T) translate[(unsigned char) *d++]
6175 if ((!(bufp->syntax & RE_DOT_NEWLINE) && TRANSLATE (*d) == '\n')
6176 || (bufp->syntax & RE_DOT_NOT_NULL && TRANSLATE (*d) == '\000'))
6203 c = TRANSLATE (*d); /* The character to match. */
6255 if (TRANSLATE(d[i]) != wextra[1 + i])
6310 str_buf[i] = TRANSLATE(*d);
6378 str_buf[i] = TRANSLATE(*(d+i));
6463 str_buf[i] = TRANSLATE(*d);
6832 if (translate
6833 ? PREFIX(bcmp_translate) (d, d2, mcnt, translate)
7750 /* Return zero if TRANSLATE[S1] and TRANSLATE[S2] are identical for LEN
7755 RE_TRANSLATE_TYPE translate)
7762 if (((*p1<=0xff)?translate[*p1++]:*p1++)
7763 != ((*p2<=0xff)?translate[*p2++]:*p2++))
7766 if (translate[*p1++] != translate[*p2++]) return 1;
7783 Assumes the `allocated' (and perhaps `buffer') and `translate' fields
7954 preg->translate
7957 if (preg->translate == NULL)
7962 preg->translate[i] = ISUPPER (i) ? TOLOWER (i) : i;
7965 preg->translate = NULL;
8147 free (preg->translate);
8148 preg->translate = NULL;
8189 #undef TRANSLATE