Difference between revisions of "String.rep"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[string]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/string|string]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>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.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(string) = string.rep(s,n)
 
(string) = string.rep(s,n)
</source>
+
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''s''': (string) <translate>string to copy</translate> <br/>
+
=== Parameters ===
'''n''': (number) <translate>how many times to copy a string</translate> <br/>
+
'''s''': (string) string to copy<br/>
=== <translate>Return values</translate> ===
+
'''n''': (number) how many times to copy a string<br/>
'''<translate>Returns</translate>''' (string) <translate>concatenated by n copies</translate><br/>
+
 
 +
=== Return values ===
 +
'''Returns''' (string) concatenated by n copies<br/>
  
 
{{String}}
 
{{String}}

Latest revision as of 14:33, 13 July 2023

Available since: Gideros 2011.6
Class: string

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