string.length

The calling string length.

Signature

<String>.length: Int

Description

The length property returns the string size.

The length of an empty string is 0.

Return value

Type Description

Int

Number of UTF-16 characters in the calling string.

Examples

Get the length of a String:

"HTTP/1.1 200 OK".length
15

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!