aboutsummaryrefslogtreecommitdiff
path: root/modules/lua/lua.luadoc
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2016-03-26 13:57:02 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2016-03-26 13:57:02 -0400
commit6be644ed9fe4fa893c0d561c6a25118aca548ae3 (patch)
treeddb6a91c8683c04c08e6dfe58ba355b142f206a4 /modules/lua/lua.luadoc
parent274e7c46f33dcbc4d8af8264e24776a5c68c565c (diff)
downloadtextadept-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.luadoc36
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