This commit is contained in:
Horis
2023-04-17 21:52:59 +08:00
parent acd247eeb5
commit e90aa26c77
2 changed files with 16 additions and 0 deletions
@@ -6,6 +6,7 @@ import cn.hutool.core.codec.Base64
import cn.hutool.core.util.HexUtil
import com.github.junrar.Archive
import com.github.junrar.rarfile.FileHeader
import com.github.liuyueyi.quick.transfer.ChineseUtils
import io.legado.app.constant.AppConst
import io.legado.app.constant.AppConst.dateFormat
import io.legado.app.constant.AppLog
@@ -449,6 +450,14 @@ interface JsExtensions : JsEncodeUtils {
return HtmlFormatter.formatKeepImg(str)
}
fun t2s(text: String): String {
return ChineseUtils.t2s(text)
}
fun s2t(text: String): String {
return ChineseUtils.s2t(text)
}
//****************文件操作******************//
/**