v: Instance methods

Public

Wrapper.prototype.isClosingIn()

Checks if the provided text has the closing chars of specified Wrapper object at the end of the given text.

wrapper.class.ts
public isClosingIn(text: string): boolean {
  return Wrapper.hasClosing(text, this.closing);
}

Parameters

Name: type
Description

text: string

The text of string to test against the existence of the closing chars.

Returns

The return value is

Example usage

// Example usage.
import { Wrapper } from '@angular-package/text';

Wrapper.prototype.isOpeningIn()

Description

Parameters

Name: type
Description

Returns

The return value is

Example usage

Wrapper.prototype.replaceClosingIn()

Description

Parameters

Name: type
Description

Returns

The return value is

Example usage

Wrapper.prototype.replaceOpeningIn()

Description

Parameters

Name: type
Description

Returns

The return value is

Example usage

Wrapper.prototype.removeWrapIn()

Description

Parameters

Name: type
Description

Returns

The return value is

Example usage

Wrapper.prototype.textReplaceClosing()

Description

Parameters

Name: type
Description

Returns

The return value is

Example usage

Wrapper.prototype.textReplaceOpening()

Description

Parameters

Name: type
Description

Returns

The return value is

Example usage

Wrapper.prototype.textUnwrap()

Description

Parameters

Name: type
Description

Returns

The return value is

Example usage

Wrapper.prototype.textWrap()

Description

Parameters

Name: type
Description

Returns

The return value is

Example usage

Wrapper.prototype.toArray()

Description

Parameters

Name: type
Description

Returns

The return value is

Example usage

Wrapper.prototype.toWrap()

Description

Parameters

Name: type
Description

Returns

The return value is

Example usage

Wrapper.prototype.unwrap()

Description

Parameters

Name: type
Description

Returns

The return value is

Example usage

Wrapper.prototype.unwrapText()

Description

Parameters

Name: type
Description

Returns

The return value is

Example usage

Wrapper.prototype.wrap()

Description

Parameters

Name: type
Description

Returns

The return value is

Example usage

Wrapper.prototype.wrapOn()

Description

Parameters

Name: type
Description

Returns

The return value is

Example usage

Wrapper.prototype.wrapText()

Description

Parameters

Name: type
Description

Returns

The return value is

Example usage

------------------------

Wrapper.prototype.isTextWrapped()

Description

Parameters

Name: type
Description

Returns

The return value is

Example usage

Wrapper.prototype.textHasClosing()

Checks if the provided text has the closing of specified Wrapper object at the end of the text.

Parameters

Name: type
Description

text: string

The text of a string to test against the existence of the closing chars.

Returns

The return value is a booleanarrow-up-right indicating whether the given text has the closing of the wrap.

Example usage

Wrapper.prototype.textHasOpening()

Checks if the provided text has the opening of the specified Wrapper object at the beginning of the text.

Parameters

Name: type
Description

text: string

The text of a string to test against the existence of the opening chars.

Returns

The return value is a booleanarrow-up-right indicating whether the given text has the opening of the wrap.

Example usage

Wrapper.prototype.unwrapText()

Returns the text without the opening and closing of the Wrapper.

Parameters

Name: type
Description

text: string

The text of a string type to unwrap.

Returns

The return value is the unwrapped text of a stringarrow-up-right if the opening or closing is found or the given text.

Example usage

Wrapper.prototype.wrapText()

Wraps specific text with the wrap, the opening, and closing of the Wrapper object.

Parameters

Name: type
Description

text: Text

The text of a generic type variable Text, to be wrapped.

Returns

Return type

`${Opening}${Text}${Closing}` The return type is the template literal consists of generic type variables in order Opening, Content, and Closing.

The return value is the wrapped text of generic type variables in order Opening, Text and Closing on the template ${Opening}${Text}${Closing}.

Example usage

Last updated