It looks like compiling `apiLevel=1.3` prevents us...
# stdlib
m
It looks like compiling
apiLevel=1.3
prevents using
ExperimentalStdlibApi
? Is there a way to still allow that? I'd like to use
String.capitalize(locale: Locale)
which is stable in 1.4 while still making sure I don't use anything that's only 1.4
j
Capitalize is deprecated in 1.5 no?
m
Ah maybe 😅
Even the one that takes a locale?
j
I don't like it is deprecated, at the end everybody is going to create the capitalize ext fun using their suggestion
m
Yea, how do you capitalize or even upperCase something in a Locale/dependant way using Kotlin APIs? Everything I find is JVM only 🤔 (or deprecated)
j
The suggestion is JVM only?
m
Not sure what you mean by "suggestion" ?
replaceFirstChar { it.uppercase() }
?
This is MPP but doesn't allow passing a Locale
j
Ah, yeah, only in JVM
I don't know if there are plans to create a kmp locale tbh
m
Yea, looks like it has never been possible
Actually now that I think about it, the deprecation makes sense, these
toUpperCase
were dangerous on non-JVM platforms (on JVM too but at least there were the overloads so that you could implement what you want)
j
I have to check the difference between uppercase and titledcase
f
We need to port icu4j to Kotlin to unlock all locale dependent transforms correctly. 😉