Difference between revisions of "String.len"

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

Revision as of 11:16, 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)

's: (string) string for which to measure length '
Returns (number) the length of the string