Drop CharSequence.get extension
This commit is contained in:
@@ -267,15 +267,6 @@ public val CharSequence.indices: IntRange
|
|||||||
public val CharSequence.lastIndex: Int
|
public val CharSequence.lastIndex: Int
|
||||||
get() = this.length - 1
|
get() = this.length - 1
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns a character at the given index in a [CharSequence]. Allows to use the
|
|
||||||
* index operator for working with character sequences:
|
|
||||||
* ```
|
|
||||||
* val c = charSequence[5]
|
|
||||||
* ```
|
|
||||||
*/
|
|
||||||
public operator fun CharSequence.get(index: Int): Char = this.get(index)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns `true` if this CharSequence has Unicode surrogate pair at the specified [index].
|
* Returns `true` if this CharSequence has Unicode surrogate pair at the specified [index].
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user