diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-12-08 10:46:50 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-12-08 10:46:50 -0500 |
commit | 778b73af8cd74791c5d2f8cc520d82e3b4e1f5de (patch) | |
tree | 7a41d068fbf90d72aa9a1aea897a2143c247f276 /src/settings.sml | |
parent | c1d821782a8d7948c52d01863508eabe42bd89e9 (diff) |
Context globals; ctype functions
Diffstat (limited to 'src/settings.sml')
-rw-r--r-- | src/settings.sml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/settings.sml b/src/settings.sml index 4b226a7b..f5d5a3ab 100644 --- a/src/settings.sml +++ b/src/settings.sml @@ -168,7 +168,18 @@ val jsFuncsBase = basisM [("alert", "alert"), ("strchr", "schr"), ("substring", "ssub"), ("strcspn", "sspn"), - ("kc", "kc")] + ("kc", "kc"), + + ("islower", "isLower"), + ("isupper", "isUpper"), + ("isalpha", "isAlpha"), + ("isdigit", "isDigit"), + ("isalnum", "isAlnum"), + ("isblank", "isBlank"), + ("isspace", "isSpace"), + ("isxdigit", "isXdigit"), + ("tolower", "toLower"), + ("toupper", "toUpper")] 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) |