Methods

The static methods of `Wrap` the string object.

Static

Public

hasClosing() Checks whether the text has given closing chars at the end.

hasOpening() Checks whether the text has given opening chars at the beginning.

isWrap() The method checks whether the value of any type is the Wrap instance of any or given opening and closing chars.

Instance

Public

getClosing() Gets the closing chars of the wrap by returning the #closing property of a specified object.

getOpening() Gets the opening chars of the wrap by returning the #opening property of a specified object.

getText() Gets the text of the wrap by returning the #text property of a specified object, without the opening and closing chars of the Wrap.

hasClosing() Checks whether the primitive value of a specified object has the closing chars or given closing chars.

hasOpening() Checks whether the primitive value of a specified object has the opening chars or given opening chars.

hasText() The method checks whether the text of a specified Wrap object is defined, which means it's a string of at least one char and optionally equal to the given text.

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.

★ replaceClosing() Returns the primitive value with replaced closing chars.

★ replaceOpening() Returns the primitive value with replaced opening chars.

★ replaceText() Returns the primitive value with replaced text.

toString() Gets the wrap, the primitive value of a specified Wrap object.

valueOf() Returns the wrap, primitive value of a specified Wrap object.

Last updated