Lines Matching refs:n
48 local n = 0
53 n = n + 1
55 if n ~= #val then
167 local function codepoint_to_utf8(n)
170 if n <= 0x7f then
171 return string.char(n)
172 elseif n <= 0x7ff then
173 return string.char(f(n / 64) + 192, n % 64 + 128)
174 elseif n <= 0xffff then
175 return string.char(f(n / 4096) + 224, f(n % 4096 / 64) + 128, n % 64 + 128)
176 elseif n <= 0x10ffff then
177 return string.char(f(n / 262144) + 240, f(n % 262144 / 4096) + 128,
178 f(n % 4096 / 64) + 128, n % 64 + 128)
180 error( string.format("invalid unicode codepoint '%x'", n) )
240 local n = tonumber(s)
241 if not n then
244 return n, x
260 local n = 1
272 res[n] = x
273 n = n + 1