UIZE JavaScript Framework

MODULES Uize.Str.Repeat

1. Introduction

The Uize.Str.Repeat module provides features for repeating string segments.

DEVELOPERS: Chris van Rensburg

1.1. Examples

There are no dedicated showcase example pages for the Uize.Str.Repeat module.

SEARCH FOR EXAMPLES

Use the link below to search for example pages on the UIZE Web site that reference the Uize.Str.Repeat module...

SEARCH

1.2. Implementation Info

The Uize.Str.Repeat module defines the Uize.Str.Repeat package under the Uize.Str namespace.

1.2.1. Features Introduced in This Module

The features listed in this section have been introduced in this module.

STATIC METHODS

Uize.Str.Repeat.repeat

STATIC PROPERTIES

Uize.Str.Repeat.moduleName | Uize.Str.Repeat.pathToResources

1.2.2. Features Overridden in This Module

No features have been overridden in this module.

1.2.3. Features Inherited From Other Modules

This module has no inherited features.

1.2.4. Modules Directly Under This Namespace

There are no modules directly under this namespace.

1.2.5. Unit Tests

The Uize.Str.Repeat module is unit tested by the Uize.Test.Uize.Str.Repeat test module.

2. Static Methods

2.1. Uize.Str.Repeat.repeat

Returns a string, that is the specified source string repeated the specified number of times.

SYNTAX

repeatedSTR = Uize.Str.Repeat.repeat (sourceSTR,repeatTimesINT);

EXAMPLE 1

var hundredDashes = Uize.Str.Repeat.repeat ('-',100);

EXAMPLE 2

var paddingStr = Uize.Str.Repeat.repeat (' ',paddingAmount);

EXAMPLE 3

var tenBrTags = Uize.Str.Repeat.repeat ('<br/>',10);

The value of the sourceSTR parameter can contain any number of any characters. In the above example, a string containing ten br tags is being generated.

IMPLEMENTATION INFO

this feature was introduced in this module

3. Static Properties

3.1. Uize.Str.Repeat.moduleName

IMPLEMENTATION INFO

this feature was introduced in this module

3.2. Uize.Str.Repeat.pathToResources

IMPLEMENTATION INFO

this feature was introduced in this module