summaryrefslogtreecommitdiff
path: root/Master/texmf/asymptote/plain_strings.asy
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-07-15 00:43:13 +0000
committerKarl Berry <karl@freefriends.org>2009-07-15 00:43:13 +0000
commit181c66eec8ef64814280c5d11c6e4f92edc6c12d (patch)
tree52b0378314b83173765ad3bd3f9c1a2f7119686f /Master/texmf/asymptote/plain_strings.asy
parente355922861e2bc91176c058d563d477444c2dfd9 (diff)
asymptote 1.81 install
git-svn-id: svn://tug.org/texlive/trunk@14263 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/asymptote/plain_strings.asy')
-rw-r--r--Master/texmf/asymptote/plain_strings.asy7
1 files changed, 6 insertions, 1 deletions
diff --git a/Master/texmf/asymptote/plain_strings.asy b/Master/texmf/asymptote/plain_strings.asy
index 0fe59ba5a63..598d61e4249 100644
--- a/Master/texmf/asymptote/plain_strings.asy
+++ b/Master/texmf/asymptote/plain_strings.asy
@@ -83,7 +83,7 @@ string verbatim(string s)
}
// Split a string into an array of substrings delimited by delimiter
-string[] split(string s, string delimiter)
+string[] split(string s, string delimiter=" ")
{
string[] S;
int last=0;
@@ -100,6 +100,11 @@ string[] split(string s, string delimiter)
return S;
}
+int system(string s)
+{
+ return system(split(s));
+}
+
int[] operator ecast(string[] a)
{
return sequence(new int(int i) {return (int) a[i];},a.length);