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

commonPrefixWith

@JvmOverloads fun Attribute<String>.commonPrefixWith(other: Attribute<String>, ignoreCase: Attribute<Boolean> = com.femastudios.dataflow.async.util.attributeOf(false)): Attribute<String>
@JvmOverloads fun Attribute<String>.commonPrefixWith(other: String, ignoreCase: Boolean = false): Attribute<String>
fun Attribute<String>.commonPrefixWith(other: Attribute<String>, ignoreCase: Boolean = false): Attribute<String>
fun Attribute<String>.commonPrefixWith(other: String, ignoreCase: Attribute<Boolean>): Attribute<String>

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

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

This is simply a convenience function.

See Also

kotlin.text.commonPrefixWith