ru.astrainteractive.astralibs.string.StringDescExt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Core utilities for spigot development
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