Class

DeleteSurroundingTextInCodePointsCommand

A variant of DeleteSurroundingTextCommand.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
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.