Converts a copy of the input string to lowercase letters.
If not of type string, string is converted to string using the default formatting rules of PV-WAVE. (These rules are described in Free Format Output in Chapter 8 of the PV-WAVE Programmer's Guide.)
a = 'A StRInG OF mIXeD CaSe'
Create a string with a mix of uppercase and lowercase characters.
PRINT, STRLOWCASE(a)
a string of mixed case
Convert the string in a to lowercase and display the result.
b = 45
Create an integer scalar variable.
INFO, STRLOWCASE(b)
Expression STRING = ' 45'
Examine the result of STRLOWCASE applied to
b
. Note that
b
is
; converted to a string.
c = STRARR(3)
Create a three-element string vector.
c(0) = 'StrInG 0' c(1) = 'sTrINg 1' c(2) = 'StrinG 2'
Assign a string with a mix of uppercase and lowercase characters
; to each element of
c
.
PRINT, TRANSPOSE(STRLOWCASE(c))
string 0
string 1
string 2
Display the
vector of strings of c
after converting them to lowercase.
; Use TRANSPOSE to view the vector as a column.