Lines Matching refs:uchar
30 #define uchar(c) ((unsigned char)(c))
41 #define iscntrl(C) (uchar(C) <= 0x1f || uchar(C) == 0x7f)
115 p[i] = tolower(uchar(s[i]));
128 p[i] = toupper(uchar(s[i]));
176 lua_pushinteger(L, uchar(s[posi+i-1]));
188 luaL_argcheck(L, uchar(c) == c, i, "value out of range");
189 p[i - 1] = uchar(c);
324 if (match_class(c, uchar(*p)))
329 if (uchar(*(p-2)) <= c && c <= uchar(*p))
332 else if (uchar(*p) == c) return sig;
343 int c = uchar(*s);
346 case L_ESC: return match_class(c, uchar(*(p+1)));
348 default: return (uchar(*p) == c);
479 if (!matchbracketclass(uchar(previous), p, ep - 1) &&
480 matchbracketclass(uchar(*s), p, ep - 1)) {
489 s = match_capture(ms, s, uchar(*(p + 1)));
716 if (!isdigit(uchar(news[i]))) {
871 else if (*s == '\0' || iscntrl(uchar(*s))) {
873 if (!isdigit(uchar(*(s+1))))
874 sprintf(buff, "\\%d", (int)uchar(*s));
876 sprintf(buff, "\\%03d", (int)uchar(*s));
891 if (isdigit(uchar(*p))) p++; /* skip width */
892 if (isdigit(uchar(*p))) p++; /* (2 digits at most) */
895 if (isdigit(uchar(*p))) p++; /* skip precision */
896 if (isdigit(uchar(*p))) p++; /* (2 digits at most) */
898 if (isdigit(uchar(*p)))