Series 2600B System SourceMeter® Instrument Reference Manual
Section 6: Instrument programming
2600BS-901-01 Rev. C / August 2016
6-27
String library functions
Function
Description
string.lower(
s
)
Receives a string and returns a copy of this string with all
uppercase letters changed to lowercase. All other characters are
left unchanged.
string.rep(
s
,
n
)
Returns a string that is the concatenation of
n
copies of the
string
s
.
string.sub(
s
,
i
)
string.sub(
s
,
i
,
j
)
Returns the substring of
s
that starts at
i
and continues until
j
;
i
and
j
can be negative. If
j
is absent, it is assumed to be equal to
-1
(which is the same as the string length). In particular, the call
string.sub(
s
, 1,
j
)
returns a prefix of
s
with length
j
, and
string.sub(
s
, -
i
)
returns a suffix of
s
with length
i
.
string.upper(
s
)
Receives a string and returns a copy of this string with all
lowercase letters changed to uppercase. All other characters are
left unchanged.