DeleteSurroundingTextInCodePointsCommand


A variant of DeleteSurroundingTextCommand. The difference is that

  • The lengths are supplied in code points, not in chars.

  • This command does nothing if there are one or more invalid surrogate pairs in the requested range.

See deleteSurroundingTextInCodePoints.

Summary

Public constructors

DeleteSurroundingTextInCodePointsCommand(
    lengthBeforeCursor: Int,
    lengthAfterCursor: Int
)
Cmn

Public functions

open Unit

Apply the command on the editing buffer.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

Int

The number of characters in Unicode code points after the cursor to be deleted.

Cmn
Int

The number of characters in Unicode code points before the cursor to be deleted.

Cmn

Public constructors

DeleteSurroundingTextInCodePointsCommand

DeleteSurroundingTextInCodePointsCommand(
    lengthBeforeCursor: Int,
    lengthAfterCursor: Int
)
Parameters
lengthBeforeCursor: Int

The number of characters in Unicode code points before the cursor to be deleted. Must be non-negative.

lengthAfterCursor: Int

The number of characters in Unicode code points after the cursor to be deleted. Must be non-negative.

Public functions

applyTo

open fun applyTo(buffer: EditingBuffer): Unit

Apply the command on the editing buffer.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

lengthAfterCursor

val lengthAfterCursorInt

The number of characters in Unicode code points after the cursor to be deleted. Must be non-negative.

lengthBeforeCursor

val lengthBeforeCursorInt

The number of characters in Unicode code points before the cursor to be deleted. Must be non-negative.