Temporary restore CharSequence.get extension

This commit is contained in:
Denis Zharkov
2015-10-11 15:35:24 +03:00
parent a76a8fcc3f
commit 3bb8cf1bff
@@ -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].
*/