kotlin.text.removeSurrounding

removeSurrounding

fun CharSequence.removeSurrounding(
    prefix: CharSequence, 
    suffix: CharSequence
): CharSequence

When this char sequence starts with the given prefix and ends with the given suffix, returns a new char sequence having both the given 登录查看完整内容