tolower()
Convert text to all lowercase characters.
Syntax
tolower(text)
Parameter
Parameter | Definition |
---|---|
text | text that is to be returned as lowercase letters The text can be a text string enclosed in double quotation marks, or one or more PSL commands that produce text as output. |
Description
The tolower() function returns a copy of text with all uppercase letters converted to lowercase letters.
Example
The following is an example of the tolower() function:
function main() {
teststr = "SOME ARE UPPER, some are lower, SoMe ArE mIxEd";
printf(" original : %s\n",teststr);
printf("all lower : %s\n",tolower(teststr));
}
teststr = "SOME ARE UPPER, some are lower, SoMe ArE mIxEd";
printf(" original : %s\n",teststr);
printf("all lower : %s\n",tolower(teststr));
}
The example produces the following output:
original : SOME ARE UPPER, some are lower, SoMe ArE mIxEd
all lower : some are upper, some are lower, some are mixed
all lower : some are upper, some are lower, some are mixed
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*