Lines Matching refs:uchar
39 #define uchar(c) ((unsigned char)(c)) macro
103 p[i] = tolower(uchar(s[i])); in str_lower()
116 p[i] = toupper(uchar(s[i])); in str_upper()
162 lua_pushinteger(L, uchar(s[posi+i-1])); in str_byte()
174 luaL_argcheck(L, uchar(c) == c, i, "value out of range"); in str_char()
175 p[i - 1] = uchar(c); in str_char()
311 if (match_class(c, uchar(*p))) in matchbracketclass()
316 if (uchar(*(p-2)) <= c && c <= uchar(*p)) in matchbracketclass()
319 else if (uchar(*p) == c) return sig; in matchbracketclass()
330 int c = uchar(*s); in singlematch()
333 case L_ESC: return match_class(c, uchar(*(p+1))); in singlematch()
335 default: return (uchar(*p) == c); in singlematch()
464 if (!matchbracketclass(uchar(previous), p, ep - 1) && in match()
465 matchbracketclass(uchar(*s), p, ep - 1)) { in match()
474 s = match_capture(ms, s, uchar(*(p + 1))); in match()
713 if (!isdigit(uchar(news[i]))) { in add_s()
879 buff[i] = toupper(uchar(buff[i])); in lua_number2strx()
915 else if (iscntrl(uchar(*s))) { in addquoted()
917 if (!isdigit(uchar(*(s+1)))) in addquoted()
918 l_sprintf(buff, sizeof(buff), "\\%d", (int)uchar(*s)); in addquoted()
920 l_sprintf(buff, sizeof(buff), "\\%03d", (int)uchar(*s)); in addquoted()
991 if (isdigit(uchar(*p))) p++; /* skip width */
992 if (isdigit(uchar(*p))) p++; /* (2 digits at most) */
995 if (isdigit(uchar(*p))) p++; /* skip precision */
996 if (isdigit(uchar(*p))) p++; /* (2 digits at most) */
998 if (isdigit(uchar(*p)))