LowerCase

This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics.

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

Parameter Type Definition and Requirements

value

String

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.

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]
client.query(
  [
    q.LowerCase('FiRe'),
    q.LowerCase('Fire And FireMan'),
  ]
)
.then((ret) => console.log(ret))
.catch((err) => console.error(
  'Error: [%s] %s: %s',
  err.name,
  err.message,
  err.errors()[0].description,
))
[ 'fire', 'fire and fireman' ]
result = client.query(
  [
    q.lowercase("FiRe"),
    q.lowercase("Fire And FireMan"),
  ]
)
print(result)
['fire', 'fire and fireman']
[
  LowerCase('FiRe'),
  LowerCase('Fire And FireMan'),
]
[ 'fire', 'fire and fireman' ]
Query metrics:
  •    bytesIn:  55

  •   bytesOut:  40

  • computeOps:   1

  •    readOps:   0

  •   writeOps:   0

  •  readBytes:   0

  • writeBytes:   0

  •  queryTime: 2ms

  •    retries:   0

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!