Lines Matching refs:uchar
30 #define uchar(c) ((unsigned char)(c)) macro
109 p[i] = tolower(uchar(s[i])); in str_lower()
122 p[i] = toupper(uchar(s[i])); in str_upper()
170 lua_pushinteger(L, uchar(s[posi+i-1])); in str_byte()
182 luaL_argcheck(L, uchar(c) == c, i, "value out of range"); in str_char()
183 p[i - 1] = uchar(c); in str_char()
325 if (match_class(c, uchar(*p))) in matchbracketclass()
330 if (uchar(*(p-2)) <= c && c <= uchar(*p)) in matchbracketclass()
333 else if (uchar(*p) == c) return sig; in matchbracketclass()
344 int c = uchar(*s); in singlematch()
347 case L_ESC: return match_class(c, uchar(*(p+1))); in singlematch()
349 default: return (uchar(*p) == c); in singlematch()
480 if (!matchbracketclass(uchar(previous), p, ep - 1) && in match()
481 matchbracketclass(uchar(*s), p, ep - 1)) { in match()
490 s = match_capture(ms, s, uchar(*(p + 1))); in match()
717 if (!isdigit(uchar(news[i]))) { in add_s()
872 else if (*s == '\0' || iscntrl(uchar(*s))) { in addquoted()
874 if (!isdigit(uchar(*(s+1)))) in addquoted()
875 sprintf(buff, "\\%d", (int)uchar(*s)); in addquoted()
877 sprintf(buff, "\\%03d", (int)uchar(*s)); in addquoted()
892 if (isdigit(uchar(*p))) p++; /* skip width */ in scanformat()
893 if (isdigit(uchar(*p))) p++; /* (2 digits at most) */ in scanformat()
896 if (isdigit(uchar(*p))) p++; /* skip precision */ in scanformat()
897 if (isdigit(uchar(*p))) p++; /* (2 digits at most) */ in scanformat()
899 if (isdigit(uchar(*p))) in scanformat()