Built-In Namespace String
Method Attributes | Method Name and Description |
---|---|
<static> |
String.fromBuffer(buffer)
turns a buffer object into a string.
|
leftPad(length, character)
fills the string with character to the left, until it reaches the desired length.
|
|
repeat(count)
extensions for strings
|
|
rightPad(length, character)
fills the string with character to the right, until it reaches the desired length.
|
Method Detail
<static>
{String}
String.fromBuffer(buffer)
turns a buffer object into a string.
Defined in: String.js.
Defined in: String.js.
- Parameters:
- buffer
- Returns:
- {String}
{String}
leftPad(length, character)
fills the string with character to the left, until it reaches the desired length.
if string.length is already >= length, the unmodified string will be returned.
Defined in: String.js.
if string.length is already >= length, the unmodified string will be returned.
Defined in: String.js.
- Parameters:
- length
- character
- Returns:
- {String}
repeat(count)
- Parameters:
- count
{String}
rightPad(length, character)
fills the string with character to the right, until it reaches the desired length.
if string.length is already >= length, the unmodified string will be returned.
Defined in: String.js.
if string.length is already >= length, the unmodified string will be returned.
Defined in: String.js.
- Parameters:
- length
- character
- Returns:
- {String}