Lines Matching refs:uchar
33 #define uchar(c) ((unsigned char)(c)) macro
86 p[i] = tolower(uchar(s[i])); in str_lower()
99 p[i] = toupper(uchar(s[i])); in str_upper()
147 lua_pushinteger(L, uchar(s[posi+i-1])); in str_byte()
159 luaL_argcheck(L, uchar(c) == c, i, "value out of range"); in str_char()
160 p[i - 1] = uchar(c); in str_char()
295 if (match_class(c, uchar(*p))) in matchbracketclass()
300 if (uchar(*(p-2)) <= c && c <= uchar(*p)) in matchbracketclass()
303 else if (uchar(*p) == c) return sig; in matchbracketclass()
314 int c = uchar(*s); in singlematch()
317 case L_ESC: return match_class(c, uchar(*(p+1))); in singlematch()
319 default: return (uchar(*p) == c); in singlematch()
450 if (!matchbracketclass(uchar(previous), p, ep - 1) && in match()
451 matchbracketclass(uchar(*s), p, ep - 1)) { in match()
460 s = match_capture(ms, s, uchar(*(p + 1))); in match()
687 if (!isdigit(uchar(news[i]))) { in add_s()
842 else if (*s == '\0' || iscntrl(uchar(*s))) { in addquoted()
844 if (!isdigit(uchar(*(s+1)))) in addquoted()
845 sprintf(buff, "\\%d", (int)uchar(*s)); in addquoted()
847 sprintf(buff, "\\%03d", (int)uchar(*s)); in addquoted()
862 if (isdigit(uchar(*p))) p++; /* skip width */ in scanformat()
863 if (isdigit(uchar(*p))) p++; /* (2 digits at most) */ in scanformat()
866 if (isdigit(uchar(*p))) p++; /* skip precision */ in scanformat()
867 if (isdigit(uchar(*p))) p++; /* (2 digits at most) */ in scanformat()
869 if (isdigit(uchar(*p))) in scanformat()