Class

DeleteSurroundingTextInCodePointsCommand

A variant of DeleteSurroundingTextCommand.

Source set: Common

Added in 1.11.0-rc01

class DeleteSurroundingTextInCodePointsCommand(
    val lengthBeforeCursor: Int,
    val lengthAfterCursor: Int,
) : EditCommand

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).

Parameters

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