Documentation Language: Swift

Function

toLowerCase(_:)

Converts a string to lowercase.

func toLowerCase(_ string: any EcoreValue) throws -> EString

Parameters

string

The string to convert

Return Value

A new string with all characters in lowercase

Discussion

The toLowerCase operation returns a new string with all characters converted to their lowercase equivalents using the current locale.

Examples

let text = "HELLO WORLD" as EString
let lower = try toLowerCase(text)  // Result: "hello world"