kotlin.text.substringBeforeLast
substringBeforeLast
fun String.substringBeforeLast( delimiter: Char, missingDelimiterValue: String = this ): String
fun String.substringBeforeLast( delimiter: String, missingDelimiterValue: String = this ): String
Returns a substring before the last occurrence of delimiter. If the string does not contain the delimiter, returns missingDelimiterValue登录查看完整内容