Skip to main content
Version: 20 R7 BETA

Lowercase

Lowercase ( aString {; *} ) -> Function result

ParameterTypeDescription
aTextTextString to convert to lowercase
*OperatorIf passed: keep accents
Function resultStringString 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".

  //Caps project method
  //Caps ( String ) -> String
  //Caps ( Any text or string ) -> Capitalized text
 
 $0:=Lowercase($1)
 If(Length($0)>0)
    $0[[1]]:=Uppercase($0[[1]])
 End if

Example 2

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

 $thestring:=Lowercase("DÉJÀ VU") // $thestring is "deja vu"
 $thestring:=Lowercase("DÉJÀ VU";*) // $thestring is "déjà vu"

See also

Uppercase