Static

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

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.

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

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

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

Last updated