replaceIndentByMargin
Требования к платформе и версии: JVM (1.0), JS (1.0), Native (1.0)
fun String.replaceIndentByMargin( newIndent: String = "", marginPrefix: String = "|" ): String
Определяет отступ с помощью marginPrefix, как это делает trimMargin, и заменяет его на newIndent.
Параметры
marginPrefix - непустая строка, которая используется в качестве разделителя отступа. По умолчанию используется | (символ трубы).
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/replace-indent-by-margin.html