summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/syst-aux.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2018-04-03 22:35:21 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2018-04-03 22:35:21 +0200
commit1e5d7f41ddede5e6400a2a7762032823d3545df4 (patch)
treebf53397fbdd2b85c94db72321e7d0e466d02acd5 /tex/context/base/mkiv/syst-aux.lua
parent0175a693fcb853ecce7d49f6564895c2dbfd11f1 (diff)
downloadcontext-1e5d7f41ddede5e6400a2a7762032823d3545df4.tar.gz
2018-04-03 22:30:00
Diffstat (limited to 'tex/context/base/mkiv/syst-aux.lua')
-rw-r--r--tex/context/base/mkiv/syst-aux.lua24
1 files changed, 12 insertions, 12 deletions
diff --git a/tex/context/base/mkiv/syst-aux.lua b/tex/context/base/mkiv/syst-aux.lua
index 06f6176b1..f9d8505f1 100644
--- a/tex/context/base/mkiv/syst-aux.lua
+++ b/tex/context/base/mkiv/syst-aux.lua
@@ -61,7 +61,7 @@ local ctx_doifelse = commands.doifelse
implement {
name = "doifelsefirstchar",
- arguments = { "string", "string" },
+ arguments = "2 strings",
actions = function(str,chr)
ctx_doifelse(lpegmatch(pattern,str) == chr)
end
@@ -69,7 +69,7 @@ implement {
implement {
name = "getsubstring",
- arguments = { "string", "string", "string" },
+ arguments = "3 strings",
actions = function(str,first,last)
context(utfsub(str,tonumber(first),tonumber(last)))
end
@@ -581,42 +581,42 @@ end
implement {
name = "doifelsecommon",
actions = doifelsecommon,
- arguments = { "string", "string" },
+ arguments = "2 strings",
}
implement {
name = "doifcommon",
actions = doifcommon,
- arguments = { "string", "string" },
+ arguments = "2 strings",
}
implement {
name = "doifnotcommon",
actions = doifnotcommon,
- arguments = { "string", "string" },
+ arguments = "2 strings",
}
implement {
name = "doifelseinset",
actions = doifelseinset,
- arguments = { "string", "string" },
+ arguments = "2 strings",
}
implement {
name = "doifinset",
actions = doifinset,
- arguments = { "string", "string" },
+ arguments = "2 strings",
}
implement {
name = "doifnotinset",
actions = doifnotinset,
- arguments = { "string", "string" },
+ arguments = "2 strings",
}
-- implement {
-- name = "stringcompare",
--- arguments = { "string", "string" },
+-- arguments = "2 strings",
-- actions = function(a,b)
-- context((a == b and 0) or (a > b and 1) or -1)
-- end
@@ -624,7 +624,7 @@ implement {
--
-- implement {
-- name = "doifelsestringafter",
--- arguments = { "string", "string" },
+-- arguments = "2 strings",
-- actions = function(a,b)
-- ctx_doifelse((a == b and 0) or (a > b and 1) or -1)
-- end
@@ -632,7 +632,7 @@ implement {
--
-- implement {
-- name = "doifelsestringbefore",
--- arguments = { "string", "string" },
+-- arguments = "2 strings",
-- actions = function(a,b)
-- ctx_doifelse((a == b and 0) or (a < b and -1) or 1)
-- end
@@ -640,7 +640,7 @@ implement {
-- implement { -- not faster than addtocommalist
-- name = "additemtolist", -- unique
--- arguments = { "string", "string" },
+-- arguments = "2 strings",
-- actions = function(l,s)
-- if l == "" or s == l then
-- -- s = s