summaryrefslogtreecommitdiff
path: root/src/settings.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-05-30 09:59:10 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-05-30 09:59:10 -0400
commit581a2290590268039cacfbe0762b343f710c3116 (patch)
treea464f8a46243a2a77f37e93ab8934b1d7d11f0fc /src/settings.sml
parent62c7b094ecf7e618a2e31658994bf648e1b36819 (diff)
String.length
Diffstat (limited to 'src/settings.sml')
-rw-r--r--src/settings.sml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/settings.sml b/src/settings.sml
index 4b2092d2..fa162660 100644
--- a/src/settings.sml
+++ b/src/settings.sml
@@ -152,7 +152,8 @@ val jsFuncsBase = basisM [("alert", "alert"),
("attrifyBool", "bs"),
("boolToString", "ts"),
("strsub", "sub"),
- ("strsuffix", "suf")]
+ ("strsuffix", "suf"),
+ ("strlen", "slen")]
val jsFuncs = ref jsFuncsBase
fun setJsFuncs ls = jsFuncs := foldl (fn ((k, v), m) => M.insert (m, k, v)) jsFuncsBase ls
fun jsFunc x = M.find (!jsFuncs, x)