projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-base: error404: do not access request env directly
[project/luci.git]
/
modules
/
luci-base
/
luasrc
/
util.luadoc
diff --git
a/modules/luci-base/luasrc/util.luadoc
b/modules/luci-base/luasrc/util.luadoc
index
1c09b7a
..
79a17a2
100644
(file)
--- a/
modules/luci-base/luasrc/util.luadoc
+++ b/
modules/luci-base/luasrc/util.luadoc
@@
-1,8
+1,7
@@
---[[
LuCI utility functions.
---[[
LuCI utility functions.
-
-module "luci.util"
]]
]]
+module "luci.util"
---[[
Create a Class object (Python-style object model).
---[[
Create a Class object (Python-style object model).
@@
-84,6
+83,15
@@
Strip HTML tags from given string.
]]
---[[
]]
---[[
+Safely quote value for use in shell commands.
+
+@class function
+@name shellquote
+@param value String containing the value to quote
+@return Single-quote enclosed string with embedded quotes escaped
+]]
+
+---[[
Splits given string on a defined separator sequence and return a table
containing the resulting substrings. The optional max parameter specifies
Splits given string on a defined separator sequence and return a table
containing the resulting substrings. The optional max parameter specifies
@@
-110,13
+118,13
@@
Remove leading and trailing whitespace from given string value.
]]
---[[
]]
---[[
-Count the occurences of given substring in given string.
+Count the occur
r
ences of given substring in given string.
@class function
@name cmatch
@param str String to search in
@param pattern String containing pattern to find
@class function
@name cmatch
@param str String to search in
@param pattern String containing pattern to find
-@return Number of found occurences
+@return Number of found occur
r
ences
]]
---[[
]]
---[[
@@
-182,7
+190,8
@@
Checks whether the given table contains the given value.
@name contains
@param table Table value
@param value Value to search within the given table
@name contains
@param table Table value
@param value Value to search within the given table
-@return Boolean indicating whether the given value occurs within table
+@return number indicating the first index at which the given value occurs
+-- within table or false.
]]
---[[
]]
---[[