aboutsummaryrefslogtreecommitdiff
path: root/lptypes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-04-17 14:08:22 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-04-17 14:08:22 -0300
commit24bf757183d8bd97f6f5b43d916814f3269c8347 (patch)
tree646cd65d6e2dab57691f98f83f15f25c70685ef8 /lptypes.h
parent3f7797419e4d7493e1364290a5b127d1cb45e3bf (diff)
downloadlpeg-24bf757183d8bd97f6f5b43d916814f3269c8347.tar.gz
lpeg-24bf757183d8bd97f6f5b43d916814f3269c8347.tar.bz2
lpeg-24bf757183d8bd97f6f5b43d916814f3269c8347.zip
Implementation of UTF-8 ranges
New constructor 'lpeg.utfR(from, to)' creates a pattern that matches UTF-8 byte sequences representing code points in the range [from, to].
Diffstat (limited to 'lptypes.h')
-rw-r--r--lptypes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lptypes.h b/lptypes.h
index 223d887..eea3d0c 100644
--- a/lptypes.h
+++ b/lptypes.h
@@ -37,6 +37,8 @@
37#define luaL_setfuncs(L,f,n) luaL_register(L,NULL,f) 37#define luaL_setfuncs(L,f,n) luaL_register(L,NULL,f)
38#define luaL_newlib(L,f) luaL_register(L,"lpeg",f) 38#define luaL_newlib(L,f) luaL_register(L,"lpeg",f)
39 39
40typedef size_t lua_Unsigned;
41
40#endif 42#endif
41 43
42 44