Lines Matching refs:uchar
24 #define uchar(c) ((unsigned char)(c)) macro
75 luaL_addchar(&b, tolower(uchar(s[i]))); in str_lower()
88 luaL_addchar(&b, toupper(uchar(s[i]))); in str_upper()
120 lua_pushinteger(L, uchar(s[posi+i-1])); in str_byte()
132 luaL_argcheck(L, uchar(c) == c, i, "invalid value"); in str_char()
133 luaL_addchar(&b, uchar(c)); in str_char()
254 if (match_class(c, uchar(*p))) in matchbracketclass()
259 if (uchar(*(p-2)) <= c && c <= uchar(*p)) in matchbracketclass()
262 else if (uchar(*p) == c) return sig; in matchbracketclass()
271 case L_ESC: return match_class(c, uchar(*(p+1))); in singlematch()
273 default: return (uchar(*p) == c); in singlematch()
304 while ((s+i)<ms->src_end && singlematch(uchar(*(s+i)), p, ep)) in max_expand()
322 else if (s<ms->src_end && singlematch(uchar(*s), p, ep)) in min_expand()
392 if (matchbracketclass(uchar(previous), p, ep-1) || in match()
393 !matchbracketclass(uchar(*s), p, ep-1)) return NULL; in match()
397 if (isdigit(uchar(*(p+1)))) { /* capture results (%0-%9)? */ in match()
398 s = match_capture(ms, s, uchar(*(p+1))); in match()
416 int m = s<ms->src_end && singlematch(uchar(*s), p, ep); in match()
599 if (!isdigit(uchar(news[i]))) in add_s()
730 if (isdigit(uchar(*p))) p++; /* skip width */ in scanformat()
731 if (isdigit(uchar(*p))) p++; /* (2 digits at most) */ in scanformat()
734 if (isdigit(uchar(*p))) p++; /* skip precision */ in scanformat()
735 if (isdigit(uchar(*p))) p++; /* (2 digits at most) */ in scanformat()
737 if (isdigit(uchar(*p))) in scanformat()