All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.net.codinux.i18n.formatter.CurrencyFormat.kt Maven / Gradle / Ivy

Go to download

Localizing language, country, unit and currency names and formatting numbers and dates for Kotlin Multiplatform with the data from Unicode CLDR project

There is a newer version: 0.7.1
Show newest version
package net.codinux.i18n.formatter

data class CurrencyFormat(
    override val standard: String,
    val standardNoCurrency: String? = null,
    val standardAlphaNextToNumber: String? = null,

    val accounting: String? = null,
    val accountingNoCurrency: String? = null,
    val accountingAlphaNextToNumber: String? = null,

    val currencyPatternAppendISO: String? = null,

    // the following properties are also available in CLDR data, but currently not written to AvailableNumberFormats or used in code
    val currencySpacing: CurrencySpacing? = null,

    val unitPatternCountZero: String? = null,
    val unitPatternCountOne: String? = null,
    val unitPatternCountTwo: String? = null,
    val unitPatternCountFew: String? = null,
    val unitPatternCountMany: String? = null,
    val unitPatternCountOther: String? = null
) : DecimalFormat(standard)

data class CurrencySpacing(
    val beforeCurrency: CurrencySpacingValues? = null,
    val afterCurrency: CurrencySpacingValues? = null
)

data class CurrencySpacingValues(
    val currencyMatch: String,
    val surroundingMatch: String,
    val insertBetween: String
)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy