Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / codePointCount
Go to reference

codePointCount

fun Attribute<String>.codePointCount(beginIndex: Attribute<Int>, endIndex: Attribute<Int>): Attribute<Int>
fun Attribute<String>.codePointCount(beginIndex: Attribute<Int>, endIndex: Int): Attribute<Int>
fun Attribute<String>.codePointCount(beginIndex: Int, endIndex: Attribute<Int>): Attribute<Int>
fun Attribute<String>.codePointCount(beginIndex: Int, endIndex: Int): Attribute<Int>

Same as codePointCount, but accepts Attribute and returns a new Attribute.

Calling this function is equivalent to use transform and calling codePointCount in the transformation function.

This is simply a convenience function.

See Also

kotlin.text.codePointCount