🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

DeleteSurroundingTextInCodePointsCommand

A variant of DeleteSurroundingTextCommand.

Source set: Common
public class DeleteSurroundingTextInCodePointsCommand(
    public val lengthBeforeCursor: Int,
    public val lengthAfterCursor: Int,
) : EditCommand

A variant of DeleteSurroundingTextCommand. The difference is that

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

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

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.