Download LambdaCore Database Programmer`s Manual Version 1.3

Transcript
Chapter 1: The LambdaCore Classes
%r
%R
%n
%N
%d
%D
%i
%I
%t
%T
%(xyz)
%(Xyz)
who.pr
who.prc
who.name
who.name
dobj.name
dobj.name
iobj.name
iobj.name
this.name
this.name
who.xyz
who.xyz
67
reflexive
reflexive
himself, herself, itself
Himself, Herself, Itself
(capitalised)
(capitalised)
(capitalised)
(capitalised)
(capitalised)
str space (num num [, str str])
Verb
This verb returns a string of num occurences of str. str is optional, and defaults to
space (" ").
:space(8)
returns
"
"
:space(8, "z")
returns
"zzzzzzzz"
:space(4, "<>") returns
"<><><><>"
str right (str text, num len [, str fill])
Verb
This verb is used to right justify text in a string of length len. fill is the optional
fill character, which defaults to space. This function calls $string_utils:space
(described above). It is interesting to note that text need not be a string, as tostr()
is applied to it before justification.
:right("help", 9)
returns
"
help"
:right("me", 9, ".")
returns
".......me"
:right(200, 9, "*")
returns
"******200"
:right({1,2}, 9)
returns
"
{list}"
str centre (str text, num len [, str fill])
Verb
This verb (aka $string_utils:center) is used to centre text in a string of length
len. fill is the optional fill character, which defaults to space. This function calls
$string_utils:space, (described above).
:centre("help", 9)
returns
" help
"
:centre("me", 9, ".")
returns
"...me...."
:centre(200, 9, "*")
returns
"***200***"
:centre({1,2}, 9)
returns
" {list} "
str left (str text, num len [, str fill])
Verb
This verb is used to left justify text in a string of length len. fill is the optional
fill character, which defaults to space. This function calls $string_utils:space,
(described above). It is interesting to note that text need not be a string, as tostr()
is applied to it before justification.
:left("help", 9)
returns
"help
"
:left("me", 9, ".")
returns
"me......."
:left(200, 9, "*")
returns
"200******"
:left({1,2}, 9)
returns
"{list}
"