Skip to main content

lowercase

lowercase ( aString : string {, *} ) : string

ParameterTypeDescription
aStringstring->String to convert to lowercase
*->If passed: keep accents
Resultstring<-String in lowercase

Description

lowercase takes aString and returns the string with all alphabetic characters in lowercase.

The optional * parameter, if passed, indicates that any accented characters present in aString must be returned as accented lowercase characters. By default, when this parameter is omitted, accented characters “lose” their accents after the conversion is carried out.

Example 1

The following project method capitalizes the string or text received as parameter. For instance, Caps ("john") would return "John".

 declare (myText : string) -> myCapText : string
myCapText = lowercase(myText)
if(length(myCapText)>0)
myCapText[[1]] == uppercase(myCapText[[1]])
end

Example 2

This example compares the results obtained according to whether or not the * parameter has been passed:

 var thestring : string
thestring = lowercase("DÉJÀ VU") // thestring is "deja vu"
thestring = lowercase("DÉJÀ VU",*) // thestring is "déjà vu"

See also

uppercase