diff options
author | 2016-03-26 13:57:02 -0400 | |
---|---|---|
committer | 2016-03-26 13:57:02 -0400 | |
commit | 6be644ed9fe4fa893c0d561c6a25118aca548ae3 (patch) | |
tree | ddb6a91c8683c04c08e6dfe58ba355b142f206a4 /modules/lua/lua.luadoc | |
parent | 274e7c46f33dcbc4d8af8264e24776a5c68c565c (diff) | |
download | textadept-6be644ed9fe4fa893c0d561c6a25118aca548ae3.tar.gz textadept-6be644ed9fe4fa893c0d561c6a25118aca548ae3.zip |
Support UTF-8 Lua pattern matching.
Makes use of an external luautf8 library, but only a subset of it.
Diffstat (limited to 'modules/lua/lua.luadoc')
-rw-r--r-- | modules/lua/lua.luadoc | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/modules/lua/lua.luadoc b/modules/lua/lua.luadoc index f92adc48..8902482d 100644 --- a/modules/lua/lua.luadoc +++ b/modules/lua/lua.luadoc @@ -2046,3 +2046,39 @@ function lfs.touch(filepath [, atime [, mtime]]) end -- Returns true if the operation was successful; in case of error, it returns -- nil plus an error string. function lfs.unlock(filehandle[, start[, length]]) end + +--- +-- UTF-8 version of `string.byte`. +function utf8.byte(s [, i [, j]]) end + +--- +-- UTF-8 version of `string.find`. +function utf8.find(s, pattern [, init [, plain]]) end + +--- +-- UTF-8 version of `string.gmatch`. +function utf8.gmatch(s, pattern) end + +--- +-- UTF-8 version of `string.gsub`. +function utf8.gsub(s, pattern, repl [, n]) end + +--- +-- UTF-8 version of `string.lower`. +function utf8.lower(s) end + +--- +-- UTF-8 version of `string.match`. +function utf8.match(s, pattern [, init]) end + +--- +-- UTF-8 version of `string.reverse`. +function utf8.reverse(s) end + +--- +-- UTF-8 version of `string.sub`. +function utf8.sub(s, i [, j]) end + +--- +-- UTF-8 version of `string.upper`. +function utf8.upper(s) end |