User manual
Section
6: Instrument programming Series 2600B System SourceMeterĀ® Instrument
Reference Manual
6-28 2600BS-901-01 Rev. B / May 2013
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.