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

jdk7Main.common.Currency.jvm.kt Maven / Gradle / Ivy

package io.fluidsonic.stdlib

import java.util.Currency as PlatformCurrency


actual fun Currency.name(locale: Locale): String =
	PlatformCurrency.getInstance(code).getDisplayName(locale.toPlatform())


internal actual object Currency_Static {

	actual val allCurrencyCodes: Set = PlatformCurrency.getAvailableCurrencies().mapTo(hashSetOf()) { it.currencyCode }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy