Returns a string formed by an indicated number of repetitions of a pattern.
1 string.fill
<string.fill>
<pattern /> !
<repeats /> !
</string.fill>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Epattern | string | Characters string whicj will be repeted in the text. | |||
Erepeats | integer | Number of times which the patter, the text or string are repeat. |
Returns | |
---|---|
Type | Description |
string | Returns the text or string resulting of perform the operation. |
Exceptions
requires 2 arguments, received: ...
The 2 entry parameters has been specified.
Example
Copy
<xsql-script name='string_fill'> <body> <set name='pattern'>hello world.</set> <set name='repeats'>25</set> <println><string.fill><pattern/><repeats/></string.fill></println> </body> </xsql-script>
Returns:
Copy
hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.hello world.