Updated on 2026-08-14

This commit is contained in:
Tangem 2025-02-04 16:43:33 +04:00
parent ce63ab2d17
commit 6a21e1a98c
3 changed files with 4 additions and 6 deletions

View file

@ -13,6 +13,7 @@ import com.google.zxing.qrcode.QRCodeWriter
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel
import com.tangem.core.res.getPluralStringSafe
import com.tangem.core.res.getStringSafe
import com.tangem.utils.StringsSigns.THREE_STARS
import java.util.Hashtable
/**
@ -79,6 +80,4 @@ fun String.capitalize(): String = replaceFirstChar { if (it.isLowerCase()) it.ti
fun String.orMaskWithStars(maskWithStars: Boolean): String {
return if (maskWithStars) THREE_STARS else this
}
internal const val THREE_STARS = "\u2217\u2217\u2217"
}

View file

@ -11,6 +11,7 @@ import androidx.compose.ui.text.AnnotatedString.Builder
import androidx.compose.ui.text.buildAnnotatedString
import com.tangem.core.res.getPluralStringSafe
import com.tangem.core.res.getStringSafe
import com.tangem.utils.StringsSigns.THREE_STARS
import org.intellij.markdown.MarkdownElementTypes
import kotlin.contracts.ExperimentalContracts
import kotlin.contracts.contract
@ -72,9 +73,6 @@ sealed interface TextReference {
/** Empty string as [TextReference] */
val EMPTY: TextReference by lazy(mode = LazyThreadSafetyMode.NONE) { Str(value = "") }
/** Stars string as [TextReference] */
val STARS: TextReference by lazy(mode = LazyThreadSafetyMode.NONE) { Str(value = THREE_STARS) }
}
}

View file

@ -11,4 +11,5 @@ object StringsSigns {
const val INFINITY_SIGN = ""
const val NON_BREAKING_SPACE = '\u00A0'
const val PERCENT = "%"
const val THREE_STARS = "\u2217\u2217\u2217"
}