Difference between revisions of "String.rep"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
=== Description ===
 
=== Description ===
Returns a string that is the concatenation of n copies of the string s.
+
<translate>Returns a string that is the concatenation of n copies of the string s.</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(string) = string.rep(s,n)
 
(string) = string.rep(s,n)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''s''': (string) string to copy <br/>
+
'''s''': (string) <translate>string to copy</translate> <br/>
'''n''': (number) how many times to copy a string <br/>
+
'''n''': (number) <translate>how many times to copy a string</translate> <br/>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (string) concatenated by n copies<br/>
+
'''Returns''' (string) <translate>concatenated by n copies</translate><br/>

Revision as of 13:33, 23 August 2018

Available since: Gideros 2011.6

Description

Returns a string that is the concatenation of n copies of the string s.

(string) = string.rep(s,n)

Parameters

s: (string) string to copy
n: (number) how many times to copy a string

Return values

Returns (string) concatenated by n copies