Lines Matching refs:uchar
40 #define uchar(c) ((unsigned char)(c)) macro
131 p[i] = tolower(uchar(s[i])); in str_lower()
144 p[i] = toupper(uchar(s[i])); in str_upper()
190 lua_pushinteger(L, uchar(s[posi+i-1])); in str_byte()
203 p[i - 1] = uchar(c); in str_char()
456 if (match_class(c, uchar(*p))) in matchbracketclass()
461 if (uchar(*(p-2)) <= c && c <= uchar(*p)) in matchbracketclass()
464 else if (uchar(*p) == c) return sig; in matchbracketclass()
475 int c = uchar(*s); in singlematch()
478 case L_ESC: return match_class(c, uchar(*(p+1))); in singlematch()
480 default: return (uchar(*p) == c); in singlematch()
609 if (!matchbracketclass(uchar(previous), p, ep - 1) && in match()
610 matchbracketclass(uchar(*s), p, ep - 1)) { in match()
619 s = match_capture(ms, s, uchar(*(p + 1))); in match()
884 else if (isdigit(uchar(*p))) { /* '%n' */ in add_s()
1062 buff[i] = toupper(uchar(buff[i])); in lua_number2strx()
1129 else if (iscntrl(uchar(*s))) { in addquoted()
1131 if (!isdigit(uchar(*(s+1)))) in addquoted()
1132 l_sprintf(buff, sizeof(buff), "\\%d", (int)uchar(*s)); in addquoted()
1134 l_sprintf(buff, sizeof(buff), "\\%03d", (int)uchar(*s)); in addquoted()
1217 if (isdigit(uchar(*s))) {
1219 if (isdigit(uchar(*s))) s++; /* (2 digits at most) */
1242 if (!isalpha(uchar(*spec))) /* did not go to the end? */