LowerCase

LowerCase( value )
LowerCase( value )
LowerCase( value )
LowerCase( value )
lowercase( value )
LowerCase( value )
LowerCase( value )

Description

The LowerCase function returns a string in which all uppercase characters have been replaced by their corresponding lowercase characters.

Parameters

Argument Type Definition and Requirements

value

The String to convert to lowercase.

Returns

A String containing all of the characters from value converted to lowercase.

Examples

The following query executes an array of independent LowerCase operations and returns the results in an array. The result array position matches the execution array position. The individual operations are:

  1. The string "FiRe" is converted to all lowercase characters, which causes "fire" to be the first string in the result.

  2. The string "FiRe And FireMan" is converted to all lowercase characters which causes "fire and fireman" to be the second string in the result.

try
{
    Value result = await client.Query(
        Arr(
            LowerCase("FiRe"),
            LowerCase("Fire And FireMan")
        )
    );

    Console.WriteLine(result);
}
catch (Exception e)
{
    Console.WriteLine($"ERROR: {e.Message}");
}
Arr(StringV(fire), StringV(fire and fireman))
result, err := client.Query(
	f.Arr{
		f.LowerCase("FiRe"),
		f.LowerCase("Fire And FireMan"),
	})

if err != nil {
	fmt.Fprintln(os.Stderr, err)
} else {
	fmt.Println(result)
}
[fire fire and fireman]
System.out.println(
    client.query(
        Arr(
            LowerCase("FiRe"),
            LowerCase("Fire And FireMan")
        )
    ).get());
["fire", "fire and fireman"]
client.query(
  [
    q.LowerCase('FiRe'),
    q.LowerCase('Fire And FireMan'),
  ]
)
.then((ret) => console.log(ret))
.catch((err) => console.error('Error: %s', err))
[ 'fire', 'fire and fireman' ]
result = client.query(
  [
    q.lowercase("FiRe"),
    q.lowercase("Fire And FireMan"),
  ]
)
print(result)
['fire', 'fire and fireman']
try {
  println(Await.result(
    client.query(
        Arr(
            LowerCase("FiRe"),
            LowerCase("Fire And FireMan")
        )
    ),
    5.seconds
))} catch {
  case unknown: Throwable => println("Error: " + unknown.getMessage())
}
["fire", "fire and fireman"]
[
  LowerCase('FiRe'),
  LowerCase('Fire And FireMan'),
]
[ 'fire', 'fire and fireman' ]

Was this article helpful?

We're sorry to hear that.
Tell us how we can improve!
Visit Fauna's Discourse forums or email docs@fauna.com

Thank you for your feedback!