Static methods
Last updated
Was this helpful?
Last updated
Was this helpful?
Wrapper.define()
Defines a new instance consisting of the allowed opening and closing.
Opening extends string
Closing extends string
opening: Opening
The allowed opening of the wrap of a generic type variable Opening
.
closing: Closing
The allowed closing of the wrap of a generic type variable Closing
.
Wrapper.getAllowedChars()
Wrapper.getWrap()
Opening extends string
Closing extends string
Wrapper.isWrapper()
Opening extends string
Closing extends string
value: any
opening?: Opening
closing?: Closing
value is Wrapper
Wrapper.setAllowedChars()
allowedChars: RegExp
Wrapper.setWrap()
Opening extends string
Closing extends string
opening: Opening
The wrap opening of a generic type variable Opening
.
closing: Closing
The wrap closing of a generic type variable Closing
.
Wrapper.wrapText()
Text extends string
Opening extends string
Closing extends string
text: Text
opening: Opening
closing: Closing
A generic type variable constrained by the , by default of the value captured from the provided opening
indicates the type of the opening in the via return type.
A generic type variable constrained by the , by default of the value captured from the provided closing
indicates the type of the closing in the via return type.
The return value is a new instance of given opening and closing.
Gets the allowed characters of the type from the static .
Good to know: The method refers to a private static property which is the default value for filtering the wrap in the static , , methods.
The return value is a an pattern of allowed characters.
Gets an instance of stored in the static .
Good to know: The method refers to a private static property that is used by the static method for wrapping the text.
A generic type variable constrained by the indicates the type of the opening in the via return type.
A generic type variable constrained by the indicates the type of the closing in the via return type.
The return value is an instance of .
The method checks if the value of any type is an instance of the .
A generic type variable constrained by the , by default of the value captured from the provided opening
indicates the type of the opening in the via return type.
A generic type variable constrained by the , by default of the value captured from the provided closing
indicates the type of the closing in the via return type.
The value of any type to test against the instance of .
An optional to check if the given value
contains.
An optional to check if the given value
contains.
The return type indicates the value
is the instance.
The return value is a type indicating whether the value is an instance of .
The method sets the default pattern of allowed characters for static .
Good to know: The allowed characters refers to a private static property, which is the default value for filtering the wrap in the static , , methods.
The allowed characters of the to set.
The return value is a static .
Sets a new instance of into the static . The wrap set by this method is used to wrap the text by the static method for wrapping the text.
Good to know: The opening
and closing
parameters are filtered by the allowed characters of static set by the static method .
A generic type variable constrained by the , by default of the value captured from the provided opening
indicates the type of the opening.
A generic type variable constrained by the , by default of the value captured from the provided closing
indicates the type of the closing.
The return value is a static .
The static method the specified text with a stored instance in the static or with a given opening or closing.
Good to know: The opening
and closing
parameters are filtered by the allowed chars of static set by the static method .
A generic type variable constrained by the indicates the type of the text in the via return type.
A generic type variable constrained by the , by default of the value captured from the provided opening
indicates the type of the opening in the via return type.
A generic type variable constrained by the , by default of the value captured from the provided closing
indicates the type of the closing in the via return type.
The text of a generic type variable Text
to wrap it with a stored in the static or provided allowed chars
.
An optional wrap opening of a generic type variable Opening
to wrap the given text
. If the opening
is not provided, then the opening from the Wrap
instance of static is used.
An optional wrap closing of a generic type variable Closing
to wrap the given text
. If the closing
is not provided, then the closing from the Wrap
instance of static is used.
The return value is a new instance of given text.