swift-foundation icon indicating copy to clipboard operation
swift-foundation copied to clipboard

PredicateExpressions for String is only available for FOUNDATION_FRAMEWORK

Open axelandersson opened this issue 1 year ago • 3 comments

Hi,

The predicate expressions StringLocalizedStandardContains and StringLocalizedCompare are under #if FOUNDATION_FRAMEWORK.

I would like to use these on Linux as well.

axelandersson avatar Apr 10 '24 12:04 axelandersson

Those two are currently unavailable because the APIs that they represent (String.localizedStandardContains and String.localizedStandardCompare) are not yet available in the package. We can add the Predicate operators as soon as the actual APIs are available. It looks like we have https://github.com/apple/swift-foundation/issues/284 open to track localized comparison, @itingliu do we have another radar tracking bringing over the string contains functions (localized in particular)?

jmschonfeld avatar Apr 10 '24 22:04 jmschonfeld

Yes we have a radar for implementing localized contain: 104656368. We can create an issue as well if we think that helps keeping things on track.

itingliu avatar Apr 12 '24 22:04 itingliu

Are there any plans to address this issue on Linux in a not too distant future ?

jhansbo avatar Oct 10 '24 11:10 jhansbo