Skip to content

Instantly share code, notes, and snippets.

@abohomol
Created October 25, 2018 11:42
Show Gist options
  • Save abohomol/d87eef4ad1c23a90827fee9ce3c2dc5a to your computer and use it in GitHub Desktop.
Save abohomol/d87eef4ad1c23a90827fee9ce3c2dc5a to your computer and use it in GitHub Desktop.
public inline fun CharSequence?.isNullOrEmpty(): Boolean {
...
}
public inline fun String?.orEmpty(): String {
...
}
public val CharSequence.indices: IntRange {
...
}
public fun CharSequence.hasSurrogatePairAt(index: Int): Boolean {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment