提交 3bb8cf1b 编写于 作者: D Denis Zharkov

Temporary restore CharSequence.get extension

上级 a76a8fcc
......@@ -191,6 +191,15 @@ public val String.indices: IntRange
public val String.lastIndex: Int
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].
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册