summaryrefslogtreecommitdiff
path: root/lib/js
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-05-26 12:25:06 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-05-26 12:25:06 -0400
commitd8801e05ef2f81f21eb27555b626ee2e52c3365f (patch)
tree53e0b285bbcb0e28d3cbbd507da21fcc41d8995e /lib/js
parent5232b7e45cf55208a0a3ea41395bb9f87d06dd21 (diff)
Chars and more string operations
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/urweb.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js
index c031678a..2b4d2643 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -351,6 +351,9 @@ function eh(x) {
function ts(x) { return x.toString() }
function bs(b) { return (b ? "True" : "False") }
+function sub(x, i) { return x[i]; }
+function suf(x, i) { return x.substring(i); }
+
function pi(s) {
var r = parseInt(s);
if (r.toString() == s)