Methods

Static

public static define() Defines a new Wrapper instance with the provided opening, closing chars, and optional text.

public static isWrapper() The method checks if the value of any type is an instance of the Wrapper of any, or given opening, closing chars, and text.

public static replaceClosing() Replaces given closing chars with a given replacement value at the end of the given text.

public static replaceOpening() Replaces given opening chars with a given replacement value at the beginning of the given text.

public static unwrap() The method returns the given text without the given opening and closing chars.

Instance

public isClosingIn() Determines whether the provided text has the closing chars of the specified Wrapper object at the end.

public isOpeningIn() Checks whether the provided text has the opening chars of a specified Wrapper object at the beginning.

public replaceClosingIn() Replaces the closing chars of the Wrapper object in the given text with a given replacement value.

public replaceOpeningIn() Replaces the opening chars of the Wrapper object in the given text with a given replacement value.

public removeWrapIn() Returns given text without the opening and closing chars of the Wrapper object.

public textReplaceClosing() Replaces the closing chars of the Wrapper object in the text of the Wrapper object with the given closing chars.

public textReplaceOpening() Replaces the opening chars of the Wrapper object in the text of the Wrapper object with the given opening chars.

public textUnwrap() The method returns the text of the Wrapper object without its opening and closing chars or the given opening and closing chars.

public textWrap() The method returns the text of the Wrapper object wrapped by the given opening and closing chars.

public toArray() Returns an array consisting of the opening chars, text, and closing chars.

public toWrap() Returns the Wrap instance consists of the text, opening and closing chars of the Wrapper object.

public unwrap() Returns the text without the opening and closing chars.

public unwrapText() The method returns the primitive value of a specified Wrapper object with text unwrapped from the opening and closing chars of the Wrapper instance or given opening and closing chars.

public ★ wrap() The method wraps the primitive value of a specified Wrapper object by its opening and closing chars, or the given opening and closing chars.

public ★ wrapOn() The method wraps the given text with the wrap, the opening, and closing chars of the Wrapper object.

public ★ wrapText() The method returns the primitive value of the Wrapper object with text wrapped by given opening and closing chars.

Last updated