replaceFirst
open fun <Context : Any> Value<Context, String?>.replaceFirst(find: Value<Context, String?>, replacement: Value<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> Value<Context, String?>.replaceFirst(find: Value<Context, String?>, replacement: Field<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> Value<Context, String?>.replaceFirst(find: Value<Context, String?>, replacement: KProperty1<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> Value<Context, String?>.replaceFirst(find: Value<Context, String?>, replacement: String?): Value<Context, String?>(source)
open fun <Context : Any> Value<Context, String?>.replaceFirst(find: Field<Context, String?>, replacement: Value<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> Value<Context, String?>.replaceFirst(find: Field<Context, String?>, replacement: Field<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> Value<Context, String?>.replaceFirst(find: Field<Context, String?>, replacement: KProperty1<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> Value<Context, String?>.replaceFirst(find: Field<Context, String?>, replacement: String?): Value<Context, String?>(source)
open fun <Context : Any> Value<Context, String?>.replaceFirst(find: KProperty1<Context, String?>, replacement: Value<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> Value<Context, String?>.replaceFirst(find: KProperty1<Context, String?>, replacement: Field<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> Value<Context, String?>.replaceFirst(find: KProperty1<Context, String?>, replacement: KProperty1<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> Value<Context, String?>.replaceFirst(find: KProperty1<Context, String?>, replacement: String?): Value<Context, String?>(source)
inline fun <Context : Any> Value<Context, String?>.replaceFirst(find: String?, replacement: Value<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> Value<Context, String?>.replaceFirst(find: String?, replacement: Field<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> Value<Context, String?>.replaceFirst(find: String?, replacement: KProperty1<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> Value<Context, String?>.replaceFirst(find: String?, replacement: String?): Value<Context, String?>(source)
open fun <Context : Any> Field<Context, String?>.replaceFirst(find: Value<Context, String?>, replacement: Value<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> Field<Context, String?>.replaceFirst(find: Value<Context, String?>, replacement: Field<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> Field<Context, String?>.replaceFirst(find: Value<Context, String?>, replacement: KProperty1<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> Field<Context, String?>.replaceFirst(find: Value<Context, String?>, replacement: String?): Value<Context, String?>(source)
open fun <Context : Any> Field<Context, String?>.replaceFirst(find: Field<Context, String?>, replacement: Value<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> Field<Context, String?>.replaceFirst(find: Field<Context, String?>, replacement: Field<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> Field<Context, String?>.replaceFirst(find: Field<Context, String?>, replacement: KProperty1<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> Field<Context, String?>.replaceFirst(find: Field<Context, String?>, replacement: String?): Value<Context, String?>(source)
open fun <Context : Any> Field<Context, String?>.replaceFirst(find: KProperty1<Context, String?>, replacement: Value<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> Field<Context, String?>.replaceFirst(find: KProperty1<Context, String?>, replacement: Field<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> Field<Context, String?>.replaceFirst(find: KProperty1<Context, String?>, replacement: KProperty1<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> Field<Context, String?>.replaceFirst(find: KProperty1<Context, String?>, replacement: String?): Value<Context, String?>(source)
inline fun <Context : Any> Field<Context, String?>.replaceFirst(find: String?, replacement: Value<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> Field<Context, String?>.replaceFirst(find: String?, replacement: Field<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> Field<Context, String?>.replaceFirst(find: String?, replacement: KProperty1<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> Field<Context, String?>.replaceFirst(find: String?, replacement: String?): Value<Context, String?>(source)
open fun <Context : Any> KProperty1<Context, String?>.replaceFirst(find: Value<Context, String?>, replacement: Value<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> KProperty1<Context, String?>.replaceFirst(find: Value<Context, String?>, replacement: Field<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> KProperty1<Context, String?>.replaceFirst(find: Value<Context, String?>, replacement: KProperty1<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> KProperty1<Context, String?>.replaceFirst(find: Value<Context, String?>, replacement: String?): Value<Context, String?>(source)
open fun <Context : Any> KProperty1<Context, String?>.replaceFirst(find: Field<Context, String?>, replacement: Value<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> KProperty1<Context, String?>.replaceFirst(find: Field<Context, String?>, replacement: Field<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> KProperty1<Context, String?>.replaceFirst(find: Field<Context, String?>, replacement: KProperty1<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> KProperty1<Context, String?>.replaceFirst(find: Field<Context, String?>, replacement: String?): Value<Context, String?>(source)
open fun <Context : Any> KProperty1<Context, String?>.replaceFirst(find: KProperty1<Context, String?>, replacement: Value<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> KProperty1<Context, String?>.replaceFirst(find: KProperty1<Context, String?>, replacement: Field<Context, String?>): Value<Context, String?>(source)
open fun <Context : Any> KProperty1<Context, String?>.replaceFirst(find: KProperty1<Context, String?>, replacement: KProperty1<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> KProperty1<Context, String?>.replaceFirst(find: KProperty1<Context, String?>, replacement: String?): Value<Context, String?>(source)
inline fun <Context : Any> KProperty1<Context, String?>.replaceFirst(find: String?, replacement: Value<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> KProperty1<Context, String?>.replaceFirst(find: String?, replacement: Field<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> KProperty1<Context, String?>.replaceFirst(find: String?, replacement: KProperty1<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> KProperty1<Context, String?>.replaceFirst(find: String?, replacement: String?): Value<Context, String?>(source)
inline fun <Context : Any> String?.replaceFirst(find: Value<Context, String?>, replacement: Value<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> String?.replaceFirst(find: Value<Context, String?>, replacement: Field<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> String?.replaceFirst(find: Value<Context, String?>, replacement: KProperty1<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> String?.replaceFirst(find: Value<Context, String?>, replacement: String?): Value<Context, String?>(source)
inline fun <Context : Any> String?.replaceFirst(find: Field<Context, String?>, replacement: Value<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> String?.replaceFirst(find: Field<Context, String?>, replacement: Field<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> String?.replaceFirst(find: Field<Context, String?>, replacement: KProperty1<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> String?.replaceFirst(find: Field<Context, String?>, replacement: String?): Value<Context, String?>(source)
inline fun <Context : Any> String?.replaceFirst(find: KProperty1<Context, String?>, replacement: Value<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> String?.replaceFirst(find: KProperty1<Context, String?>, replacement: Field<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> String?.replaceFirst(find: KProperty1<Context, String?>, replacement: KProperty1<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> String?.replaceFirst(find: KProperty1<Context, String?>, replacement: String?): Value<Context, String?>(source)
inline fun <Context : Any> String?.replaceFirst(find: String?, replacement: Value<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> String?.replaceFirst(find: String?, replacement: Field<Context, String?>): Value<Context, String?>(source)
inline fun <Context : Any> String?.replaceFirst(find: String?, replacement: KProperty1<Context, String?>): Value<Context, String?>(source)
Replaces the first instance of find with a replacement string.
If no occurrences of find are found in the input string, the input string is returned. If any of the input, find or replacement is null, null is returned.
The input, find, and replacement expressions must evaluate to a string or a null, or $replaceOne fails with an error.
Example
class Document(
val item: String,
)
collection.aggregate()
.set {
Document::item set of(Document::item).replaceFirst(find = of("blue paint"), replacement = of("red paint"))
}.toList()Content copied to clipboard