UpperCase

UpperCase( value )
UpperCase( value )
UpperCase( value )
UpperCase( value )
uppercase( value )
UpperCase( value )

Description

The UpperCase function returns a string which has all lowercase characters in the string replaced by their corresponding uppercase characters.

Parameters

Argument Type Definition and Requirements

value

String

The string to be converted to uppercase.

Returns

A string value which has all characters converted to uppercase.

Examples

The query below executes an array of independent UpperCase operations and returns the results in an array. The result array position matches the execution array position. The first operation takes the string "FiRe" and converts all characters in the string to uppercase. The resultant object "FIRE" is placed in the top position of the result array. The second operation uses the string "FiRe And FireMan" and converts all characters to uppercase. The new uppercase string is placed in the second position of the result array.

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

Console.WriteLine(result);
Arr(StringV(FIRE), StringV(FIRE AND FIREMAN))
result, err := client.Query(
	f.Arr{
		f.UpperCase("FiRe"),
		f.UpperCase("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(
            UpperCase("FiRe"),
            UpperCase("Fire And FireMan")
        )
    ).get());
["FIRE", "FIRE AND FIREMAN"]
client.query(
  [
    q.UpperCase('FiRe'),
    q.UpperCase('Fire And FireMan'),
  ]
)
.then((ret) => console.log(ret))
.catch((err) => console.error('Error: %s', err))
[ 'FIRE', 'FIRE AND FIREMAN' ]
result = client.query(
  [
    q.uppercase("FiRe"),
    q.uppercase("Fire And FireMan")
  ]
)
print(result)
['FIRE', 'FIRE AND FIREMAN']
println(Await.result(
    client.query(
        Arr(
            UpperCase("FiRe"),
            UpperCase("Fire And FireMan")
        )
    ),
    5.seconds
))
["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!