All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.astrainteractive.astralibs.string.StringDescExt.kt Maven / Gradle / Ivy

There is a newer version: 3.16.1
Show newest version
package ru.astrainteractive.astralibs.string

object StringDescExt {
    fun StringDesc.Raw.map(block: (String) -> String): StringDesc.Raw {
        return block.invoke(this.raw).let(StringDesc::Raw)
    }

    fun StringDesc.Raw.replace(oldValue: String, newValue: String, ignoreCase: Boolean = false): StringDesc.Raw {
        return this.raw.replace(
            oldValue = oldValue,
            newValue = newValue,
            ignoreCase = ignoreCase
        ).let(StringDesc::Raw)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy