Methods
The `Wrap` primitive wrapper object methods
Last updated
The `Wrap` primitive wrapper object methods
Last updated
public static hasClosing()
Checks whether the text
has given closing
chars at the end.
public static hasOpening()
Checks whether the text
has given opening
chars at the beginning.
public getClosing()
Gets the closing chars of the wrap by returning the #closing
property of a specified object.
public getOpening()
Gets the opening chars of the wrap by returning the #opening
property of a specified object.
public hasClosing()
Checks whether the primitive value of a specified object has the closing
chars or given closing
chars.
public hasOpening()
Checks whether the primitive value of a specified object has the opening
chars or given opening
chars.
public isWrapped()
The method checks whether the primitive value of the specified object is wrapped by the opening and closing chars of an instance or given opening
and closing
chars.
public ★ replaceClosing()
Returns the primitive value with replaced closing
chars.
public ★ replaceOpening()
Returns the primitive value with replaced opening
chars.
public ★ replaceText()
Returns the primitive value with replaced text
.
public toString()
Gets the wrap, the primitive value of a specified Wrap
object.
public valueOf()
Returns the wrap, primitive value of a specified Wrap
object.