Difference between revisions of "String.len"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
=== Description ===
 
=== Description ===
Receives a string and returns its length. The empty string "" has length 0. Embedded zeros are counted, so "a\000bc\000" has length 5.
+
<translate>Receives a string and returns its length. The empty string "" has length 0. Embedded zeros are counted, so "a\000bc\000" has length 5.</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(number) = string.len(s)
 
(number) = string.len(s)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''s''': (string) string for which to measure length <br/>
+
'''s''': (string) <translate>string for which to measure length</translate> <br/>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) the length of the string<br/>
+
'''Returns''' (number) <translate>the length of the string</translate><br/>

Revision as of 13:32, 23 August 2018

Available since: Gideros 2011.6

Description

Receives a string and returns its length. The empty string "" has length 0. Embedded zeros are counted, so "a\000bc\000" has length 5.

(number) = string.len(s)

Parameters

s: (string) string for which to measure length

Return values

Returns (number) the length of the string