DeleteSurroundingTextInCodePointsCommand
Kotlin
|Java
class DeleteSurroundingTextInCodePointsCommand : EditCommand
kotlin.Any | |
↳ | androidx.compose.ui.text.input.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.
Summary
Public constructors | |
---|---|
A variant of DeleteSurroundingTextCommand. |
Public methods | |
---|---|
Unit |
applyTo(buffer: EditingBuffer) Apply the command on the editing buffer. |
Boolean | |
Int |
hashCode() |
String |
toString() |
Properties | |
---|---|
Int |
The number of characters in Unicode code points after the cursor to be deleted. |
Int |
The number of characters in Unicode code points before the cursor to be deleted. |
Public constructors
<init>
DeleteSurroundingTextInCodePointsCommand(
lengthBeforeCursor: Int,
lengthAfterCursor: Int)
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.
Public methods
hashCode
fun hashCode(): Int
toString
fun toString(): String
Properties
lengthAfterCursor
val lengthAfterCursor: Int
The number of characters in Unicode code points after the cursor to be deleted.
lengthBeforeCursor
val lengthBeforeCursor: Int
The number of characters in Unicode code points before the cursor to be deleted.