ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:strrepeat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
functions:strrepeat [2017/03/13 17:39] korshunfunctions:strrepeat [2017/06/12 17:27] (current) korshun
Line 1: Line 1:
-{{tag>todo}}+====== StrRepeat ====== 
 +{{tag>string todo}} 
 +''str StrRepeat(str s, int n)'' 
 + 
 +===== Description ===== 
 +Returns the string repeated n times. If n is 0, returns empty string. 
 + 
 +===== Examples ===== 
 +<code> 
 +StrRepeat("abc", 3) -> "abcabcabc" 
 +StrRepeat("abc", 0) -> "" 
 +StrRepeat("abc", 1) -> "abc" 
 +</code>
functions/strrepeat.1489419553.txt.gz · Last modified: 2017/03/13 17:39 by korshun