/usr/lib/open-axiom/input/string.input is in open-axiom-test 1.4.1+svn~2626-2ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | -- Input generated from StringXmpPage
)clear all
hello := "Hello, I'm AXIOM!"
said := "Jane said, _"Look!_""
saw := "She saw exactly one underscore: __."
gasp: String := new(32, char "x")
#gasp
hello.2
hello 2
hello(2)
hullo := copy hello
hullo.2 := char "u"; [hello, hullo]
saidsaw := concat ["alpha","---","omega"]
concat("hello ","goodbye")
"This " "is " "several " "strings " "concatenated."
hello(1..5)
hello(8..)
split(hello, char " ")
other := complement alphanumeric();
split(saidsaw, other)
trim ("## ++ relax ++ ##", char "#")
trim ("## ++ relax ++ ##", other)
leftTrim ("## ++ relax ++ ##", other)
rightTrim("## ++ relax ++ ##", other)
upperCase hello
lowerCase hello
prefix?("He", "Hello")
prefix?("Her", "Hello")
suffix?("", "Hello")
suffix?("LO", "Hello")
substring?("ll", "Hello", 3)
substring?("ll", "Hello", 4)
n := position("nd", "underground", 1)
n := position("nd", "underground", n+1)
n := position("nd", "underground", n+1)
position(char "d", "underground", 1)
position(hexDigit(), "underground", 1)
|