Instance methods
Public
Wrapper.prototype.isTextWrapped()
Wrapper.prototype.isTextWrapped()
The method checks if the provided text
is wrapped with the wrap of the specified Wrapper
object.
Generic type variables |
---|
A generic type variable constrained by the |
Parameters
Name: type | Description |
---|---|
| The |
Returns
The return value is a boolean
indicating whether the provided text
is wrapped.
Example usage
Wrapper.prototype.textHasClosing()
Wrapper.prototype.textHasClosing()
Checks if the provided text
has a closing of the specified Wrapper
object.
Generic type variables |
---|
A generic type variable constrained by the |
Parameters
Name: type | Description |
---|---|
| The text to test against the existence of the |
Returns
The return value is a boolean
indicating whether the given text
has the closing of the wrap.
Example usage
Wrapper.prototype.textHasOpening()
Wrapper.prototype.textHasOpening()
Checks if the provided text
has an opening of the specified Wrapper
object.
Generic type variables |
---|
A generic type variable constrained by the |
Parameters
Name: type | Description |
---|---|
| The text to test against the existence of the |
Returns
The return value is a boolean
indicating whether the given text
has the opening of the wrap.
Example usage
Wrapper.prototype.unwrapText()
Wrapper.prototype.unwrapText()
Returns the unwrapped text, without the opening and closing of the Wrapper
.
Parameters
Name: type | Description |
---|---|
| The text to unwrap. |
Returns
The return value is the unwrapped text of a string
if the opening or closing is found or the given text
.
Example usage
Wrapper.prototype.wrapText()
Wrapper.prototype.wrapText()
Wraps specific text with the wrap, the opening
, and closing
of the Wrapper
object.
Generic type variables |
---|
Parameters
Name: type | Description |
---|---|
| The text of a generic type variable |
Returns
The return value is a new instance of Wrapped
type consisting of the wrapped text.
Example usage
Last updated